tccli 3.0.966.1__py2.py3-none-any.whl → 3.0.968.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/bi/v20220105/ModifyUserRole.md +53 -0
- tccli/examples/cdwpg/v20201230/CreateInstanceByApi.md +40 -0
- tccli/examples/cdwpg/v20201230/DestroyInstanceByApi.md +22 -0
- tccli/examples/csip/v20221121/DescribeDbAssets.md +258 -65
- tccli/examples/dbbrain/v20210527/DescribeIndexRecommendAggregationSlowLogs.md +34 -0
- tccli/examples/dbbrain/v20210527/DescribeIndexRecommendInfo.md +57 -0
- tccli/examples/dbbrain/v20210527/DescribeRedisProcessList.md +46 -0
- tccli/examples/ess/v20201111/CreateDocument.md +1 -1
- tccli/examples/ess/v20201111/DescribeFileUrls.md +30 -0
- tccli/examples/ess/v20201111/UploadFiles.md +46 -14
- tccli/examples/sms/v20210111/AddSmsSign.md +4 -4
- tccli/examples/sms/v20210111/AddSmsTemplate.md +1 -1
- tccli/examples/sms/v20210111/DescribeSmsSignList.md +2 -2
- tccli/examples/sms/v20210111/DescribeSmsTemplateList.md +2 -2
- tccli/examples/sms/v20210111/ModifySmsSign.md +4 -4
- tccli/examples/sms/v20210111/ModifySmsTemplate.md +1 -1
- tccli/examples/sms/v20210111/PullSmsReplyStatus.md +3 -3
- tccli/examples/sms/v20210111/PullSmsReplyStatusByPhoneNumber.md +2 -2
- tccli/examples/sms/v20210111/PullSmsSendStatus.md +1 -1
- tccli/examples/sms/v20210111/SendSms.md +3 -3
- tccli/examples/tat/v20201028/DescribeInvocationTasks.md +12 -6
- tccli/examples/teo/v20220901/VerifyOwnership.md +66 -0
- tccli/examples/trtc/v20190722/DescribeTRTCMarketQualityData.md +2 -2
- tccli/examples/trtc/v20190722/DescribeTRTCMarketScaleData.md +27 -45
- tccli/examples/trtc/v20190722/DescribeTRTCRealTimeQualityData.md +202 -6
- tccli/examples/trtc/v20190722/DescribeTRTCRealTimeScaleData.md +214 -7
- tccli/examples/tse/v20201207/CreateCloudNativeAPIGatewayCanaryRule.md +2 -2
- tccli/examples/tse/v20201207/DeleteCloudNativeAPIGatewayCanaryRule.md +3 -3
- tccli/examples/tse/v20201207/DescribeCloudNativeAPIGatewayCanaryRules.md +10 -10
- tccli/examples/tse/v20201207/DescribeNacosReplicas.md +13 -10
- tccli/examples/tse/v20201207/DescribeNacosServerInterfaces.md +4 -4
- tccli/examples/tse/v20201207/DescribeZookeeperReplicas.md +12 -10
- tccli/examples/tse/v20201207/ModifyCloudNativeAPIGatewayCanaryRule.md +5 -5
- tccli/examples/vpc/v20170312/DescribeVpcPeeringConnections.md +29 -1
- tccli/services/__init__.py +3 -0
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/bi/bi_client.py +53 -0
- tccli/services/bi/v20220105/api.json +109 -0
- tccli/services/bi/v20220105/examples.json +14 -0
- tccli/services/cdwpg/__init__.py +4 -0
- tccli/services/cdwpg/cdwpg_client.py +247 -0
- tccli/services/cdwpg/v20201230/api.json +354 -0
- tccli/services/cdwpg/v20201230/examples.json +21 -0
- tccli/services/clb/v20180317/api.json +4 -4
- tccli/services/csip/v20221121/api.json +66 -26
- tccli/services/csip/v20221121/examples.json +4 -4
- tccli/services/dbbrain/dbbrain_client.py +171 -12
- tccli/services/dbbrain/v20210527/api.json +614 -0
- tccli/services/dbbrain/v20210527/examples.json +24 -0
- tccli/services/ess/v20201111/api.json +158 -28
- tccli/services/ess/v20201111/examples.json +20 -8
- tccli/services/essbasic/v20210526/api.json +140 -2
- tccli/services/lcic/v20220817/api.json +7 -7
- tccli/services/lighthouse/v20200324/api.json +3 -3
- tccli/services/mps/v20190612/api.json +2 -1
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/sms/v20210111/api.json +84 -81
- tccli/services/sms/v20210111/examples.json +11 -11
- tccli/services/tat/v20201028/api.json +9 -9
- tccli/services/tat/v20201028/examples.json +1 -1
- tccli/services/teo/teo_client.py +65 -12
- tccli/services/teo/v20220901/api.json +169 -1
- tccli/services/teo/v20220901/examples.json +20 -0
- tccli/services/tmt/v20180321/api.json +5 -2
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/trtc/v20190722/examples.json +8 -8
- tccli/services/tse/v20201207/api.json +7 -6
- tccli/services/tse/v20201207/examples.json +13 -13
- tccli/services/vod/v20180717/api.json +18 -5
- tccli/services/vpc/v20170312/api.json +206 -0
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +22 -0
- {tccli-3.0.966.1.dist-info → tccli-3.0.968.1.dist-info}/METADATA +2 -2
- {tccli-3.0.966.1.dist-info → tccli-3.0.968.1.dist-info}/RECORD +78 -67
- {tccli-3.0.966.1.dist-info → tccli-3.0.968.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.966.1.dist-info → tccli-3.0.968.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.966.1.dist-info → tccli-3.0.968.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.968.1'
|
@@ -0,0 +1,53 @@
|
|
1
|
+
**Example 1: 修改用户角色信息**
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli bi ModifyUserRole --cli-unfold-argument \
|
9
|
+
--RoleIdList 100090 \
|
10
|
+
--UserId joshshzho \
|
11
|
+
--Email abc@qq.com
|
12
|
+
```
|
13
|
+
|
14
|
+
Output:
|
15
|
+
```
|
16
|
+
{
|
17
|
+
"Response": {
|
18
|
+
"RequestId": "933660c5-a247-4068-a852-c3eaf0e93684",
|
19
|
+
"Extra": "",
|
20
|
+
"Data": null,
|
21
|
+
"Msg": "success"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
```
|
25
|
+
|
26
|
+
**Example 2: demo**
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
Input:
|
31
|
+
|
32
|
+
```
|
33
|
+
tccli bi ModifyUserRole --cli-unfold-argument \
|
34
|
+
--UserName tommyho \
|
35
|
+
--AreaCode 086 \
|
36
|
+
--UserId tommyho \
|
37
|
+
--PhoneNumber 123456 \
|
38
|
+
--RoleIdList 100099 \
|
39
|
+
--Email 123@qq.com
|
40
|
+
```
|
41
|
+
|
42
|
+
Output:
|
43
|
+
```
|
44
|
+
{
|
45
|
+
"Response": {
|
46
|
+
"Msg": "success",
|
47
|
+
"RequestId": "6b573965-cda5-4c95-a66a-fd1bd6d77c5c",
|
48
|
+
"Extra": "",
|
49
|
+
"Data": null
|
50
|
+
}
|
51
|
+
}
|
52
|
+
```
|
53
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
**Example 1: 创建集群**
|
2
|
+
|
3
|
+
创建集群
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli cdwpg CreateInstanceByApi --cli-unfold-argument \
|
9
|
+
--InstanceName abc \
|
10
|
+
--Zone abc \
|
11
|
+
--UserVPCId abc \
|
12
|
+
--UserSubnetId abc \
|
13
|
+
--ChargeProperties.PayMode 0 \
|
14
|
+
--ChargeProperties.RenewFlag 0 \
|
15
|
+
--ChargeProperties.TimeSpan 0 \
|
16
|
+
--ChargeProperties.TimeUnit abc \
|
17
|
+
--ChargeProperties.ChargeType abc \
|
18
|
+
--AdminPassword abc \
|
19
|
+
--Tags.TagKey abc \
|
20
|
+
--Tags.TagValue abc \
|
21
|
+
--Resources.0.SpecName abc \
|
22
|
+
--Resources.0.Count 0 \
|
23
|
+
--Resources.0.DiskSpec.DiskType abc \
|
24
|
+
--Resources.0.DiskSpec.DiskSize 0 \
|
25
|
+
--Resources.0.DiskSpec.DiskCount 0 \
|
26
|
+
--Resources.0.Type abc
|
27
|
+
```
|
28
|
+
|
29
|
+
Output:
|
30
|
+
```
|
31
|
+
{
|
32
|
+
"Response": {
|
33
|
+
"FlowId": "abc",
|
34
|
+
"InstanceId": "abc",
|
35
|
+
"ErrorMsg": "abc",
|
36
|
+
"RequestId": "abc"
|
37
|
+
}
|
38
|
+
}
|
39
|
+
```
|
40
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
**Example 1: 销毁集群**
|
2
|
+
|
3
|
+
销毁集群
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli cdwpg DestroyInstanceByApi --cli-unfold-argument \
|
9
|
+
--InstanceId abc
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Response": {
|
16
|
+
"FlowId": "abc",
|
17
|
+
"ErrorMsg": "abc",
|
18
|
+
"RequestId": "abc"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
```
|
22
|
+
|
@@ -1,6 +1,6 @@
|
|
1
|
-
**Example 1:
|
1
|
+
**Example 1: 所有db资产示例**
|
2
2
|
|
3
|
-
|
3
|
+
所有db资产示例
|
4
4
|
|
5
5
|
Input:
|
6
6
|
|
@@ -13,119 +13,312 @@ Output:
|
|
13
13
|
"Response": {
|
14
14
|
"AppIdList": [
|
15
15
|
{
|
16
|
-
"Text": "
|
17
|
-
"Value": "
|
16
|
+
"Text": "1300846651",
|
17
|
+
"Value": "1300846651"
|
18
18
|
}
|
19
19
|
],
|
20
20
|
"AssetTypeList": [
|
21
|
+
{
|
22
|
+
"Text": "COS",
|
23
|
+
"Value": "COS"
|
24
|
+
},
|
21
25
|
{
|
22
26
|
"Text": "MySQL",
|
23
27
|
"Value": "MYSQL"
|
24
28
|
},
|
25
29
|
{
|
26
|
-
"Text": "
|
27
|
-
"Value": "
|
30
|
+
"Text": "CFS",
|
31
|
+
"Value": "CFS"
|
28
32
|
},
|
29
33
|
{
|
30
|
-
"Text": "
|
31
|
-
"Value": "
|
34
|
+
"Text": "CBS",
|
35
|
+
"Value": "CBS"
|
32
36
|
}
|
33
37
|
],
|
34
38
|
"Data": [
|
35
39
|
{
|
36
|
-
"
|
37
|
-
"
|
40
|
+
"Access": 0,
|
41
|
+
"AppId": 1300846651,
|
42
|
+
"AssetCreateTime": "2023-08-31 19:37:18",
|
43
|
+
"AssetId": "cdb-pxwani6r",
|
44
|
+
"AssetName": "cdb115086",
|
38
45
|
"AssetType": "MYSQL",
|
39
|
-
"VpcId": "vpc-ds7fl5xn",
|
40
|
-
"VpcName": "illnggao-test01",
|
41
|
-
"Region": "ap-guangzhou",
|
42
|
-
"Domain": "",
|
43
|
-
"AssetCreateTime": "2023-01-18 09:42:24",
|
44
|
-
"LastScanTime": "2023-02-01 15:43:45",
|
45
46
|
"Attack": 0,
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"
|
47
|
+
"ConfigurationRisk": 0,
|
48
|
+
"Domain": "",
|
49
|
+
"IsCore": 1,
|
50
|
+
"IsNewAsset": 0,
|
51
|
+
"LastScanTime": "-",
|
52
|
+
"NickName": "焦糖小蛋糕",
|
51
53
|
"Port": 0,
|
54
|
+
"PrivateIp": "10.25.25.2:3306",
|
55
|
+
"PublicIp": "",
|
56
|
+
"Region": "ap-chongqing",
|
57
|
+
"ScanTask": 0,
|
58
|
+
"Status": 1,
|
52
59
|
"Tag": null,
|
53
|
-
"
|
60
|
+
"Uin": "100011949846",
|
61
|
+
"VpcId": "vpc-h2i9m8xh",
|
62
|
+
"VpcName": "fengqqian"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"Access": 0,
|
66
|
+
"AppId": 1300846651,
|
67
|
+
"AssetCreateTime": "2023-08-31 10:15:36",
|
68
|
+
"AssetId": "disk-51a0diaa",
|
69
|
+
"AssetName": "未命名_系统盘",
|
70
|
+
"AssetType": "CBS",
|
71
|
+
"Attack": 0,
|
72
|
+
"ConfigurationRisk": 0,
|
73
|
+
"Domain": "",
|
74
|
+
"IsCore": 2,
|
75
|
+
"IsNewAsset": 0,
|
76
|
+
"LastScanTime": "-",
|
77
|
+
"NickName": "焦糖小蛋糕",
|
78
|
+
"Port": 0,
|
79
|
+
"PrivateIp": "",
|
54
80
|
"PublicIp": "",
|
81
|
+
"Region": "ap-chongqing",
|
82
|
+
"ScanTask": 0,
|
55
83
|
"Status": 1,
|
56
|
-
"
|
84
|
+
"Tag": null,
|
85
|
+
"Uin": "100011949846",
|
86
|
+
"VpcId": "",
|
87
|
+
"VpcName": ""
|
57
88
|
},
|
58
89
|
{
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"
|
64
|
-
"
|
90
|
+
"Access": 0,
|
91
|
+
"AppId": 1300846651,
|
92
|
+
"AssetCreateTime": "2020-10-09 16:46:52",
|
93
|
+
"AssetId": "disk-jckoxu4h",
|
94
|
+
"AssetName": "NAT_VPC autotest,勿删_系统盘",
|
95
|
+
"AssetType": "CBS",
|
96
|
+
"Attack": 0,
|
97
|
+
"ConfigurationRisk": 0,
|
65
98
|
"Domain": "",
|
66
|
-
"
|
67
|
-
"
|
99
|
+
"IsCore": 2,
|
100
|
+
"IsNewAsset": 0,
|
101
|
+
"LastScanTime": "2023-09-04 16:59:17",
|
102
|
+
"NickName": "焦糖小蛋糕",
|
103
|
+
"Port": 0,
|
104
|
+
"PrivateIp": "",
|
105
|
+
"PublicIp": "",
|
106
|
+
"Region": "ap-shanghai",
|
107
|
+
"ScanTask": 14,
|
108
|
+
"Status": 1,
|
109
|
+
"Tag": null,
|
110
|
+
"Uin": "100011949846",
|
111
|
+
"VpcId": "",
|
112
|
+
"VpcName": ""
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"Access": 0,
|
116
|
+
"AppId": 1300846651,
|
117
|
+
"AssetCreateTime": "2022-12-05 10:39:35",
|
118
|
+
"AssetId": "disk-hq4yircx",
|
119
|
+
"AssetName": "数据盘漏扫测试",
|
120
|
+
"AssetType": "CBS",
|
68
121
|
"Attack": 0,
|
122
|
+
"ConfigurationRisk": 0,
|
123
|
+
"Domain": "",
|
124
|
+
"IsCore": 2,
|
125
|
+
"IsNewAsset": 0,
|
126
|
+
"LastScanTime": "2023-09-04 16:59:17",
|
127
|
+
"NickName": "焦糖小蛋糕",
|
128
|
+
"Port": 0,
|
129
|
+
"PrivateIp": "",
|
130
|
+
"PublicIp": "",
|
131
|
+
"Region": "ap-beijing",
|
132
|
+
"ScanTask": 14,
|
133
|
+
"Status": 1,
|
134
|
+
"Tag": null,
|
135
|
+
"Uin": "100011949846",
|
136
|
+
"VpcId": "",
|
137
|
+
"VpcName": ""
|
138
|
+
},
|
139
|
+
{
|
69
140
|
"Access": 0,
|
70
|
-
"
|
71
|
-
"
|
72
|
-
"
|
73
|
-
"
|
141
|
+
"AppId": 1300846651,
|
142
|
+
"AssetCreateTime": "2020-10-16 17:30:35",
|
143
|
+
"AssetId": "disk-haamhu15",
|
144
|
+
"AssetName": "VPC-autotest2,勿删_系统盘",
|
145
|
+
"AssetType": "CBS",
|
146
|
+
"Attack": 0,
|
147
|
+
"ConfigurationRisk": 0,
|
148
|
+
"Domain": "",
|
149
|
+
"IsCore": 2,
|
150
|
+
"IsNewAsset": 0,
|
151
|
+
"LastScanTime": "2023-09-04 16:59:17",
|
152
|
+
"NickName": "焦糖小蛋糕",
|
74
153
|
"Port": 0,
|
154
|
+
"PrivateIp": "",
|
155
|
+
"PublicIp": "",
|
156
|
+
"Region": "ap-shanghai",
|
157
|
+
"ScanTask": 14,
|
158
|
+
"Status": 1,
|
75
159
|
"Tag": null,
|
76
|
-
"
|
160
|
+
"Uin": "100011949846",
|
161
|
+
"VpcId": "",
|
162
|
+
"VpcName": ""
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"Access": 0,
|
166
|
+
"AppId": 1300846651,
|
167
|
+
"AssetCreateTime": "2023-08-31 19:15:48",
|
168
|
+
"AssetId": "disk-g3lx4gh0",
|
169
|
+
"AssetName": "私有网络广州3区v_tximtantest_系统盘",
|
170
|
+
"AssetType": "CBS",
|
171
|
+
"Attack": 0,
|
172
|
+
"ConfigurationRisk": 0,
|
173
|
+
"Domain": "",
|
174
|
+
"IsCore": 2,
|
175
|
+
"IsNewAsset": 0,
|
176
|
+
"LastScanTime": "-",
|
177
|
+
"NickName": "焦糖小蛋糕",
|
178
|
+
"Port": 0,
|
179
|
+
"PrivateIp": "",
|
77
180
|
"PublicIp": "",
|
181
|
+
"Region": "ap-guangzhou",
|
182
|
+
"ScanTask": 0,
|
78
183
|
"Status": 1,
|
79
|
-
"
|
184
|
+
"Tag": null,
|
185
|
+
"Uin": "100011949846",
|
186
|
+
"VpcId": "",
|
187
|
+
"VpcName": ""
|
80
188
|
},
|
81
189
|
{
|
82
|
-
"
|
83
|
-
"
|
84
|
-
"
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"
|
190
|
+
"Access": 0,
|
191
|
+
"AppId": 1300846651,
|
192
|
+
"AssetCreateTime": "2023-06-30 15:06:08",
|
193
|
+
"AssetId": "disk-dh874mht",
|
194
|
+
"AssetName": "未命名_系统盘",
|
195
|
+
"AssetType": "CBS",
|
196
|
+
"Attack": 0,
|
197
|
+
"ConfigurationRisk": 0,
|
88
198
|
"Domain": "",
|
89
|
-
"
|
90
|
-
"
|
199
|
+
"IsCore": 2,
|
200
|
+
"IsNewAsset": 0,
|
201
|
+
"LastScanTime": "2023-09-04 16:59:17",
|
202
|
+
"NickName": "焦糖小蛋糕",
|
203
|
+
"Port": 0,
|
204
|
+
"PrivateIp": "",
|
205
|
+
"PublicIp": "",
|
206
|
+
"Region": "ap-beijing",
|
207
|
+
"ScanTask": 12,
|
208
|
+
"Status": 1,
|
209
|
+
"Tag": null,
|
210
|
+
"Uin": "100011949846",
|
211
|
+
"VpcId": "",
|
212
|
+
"VpcName": ""
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"Access": 0,
|
216
|
+
"AppId": 1300846651,
|
217
|
+
"AssetCreateTime": "2023-08-30 18:10:46",
|
218
|
+
"AssetId": "disk-dcyyxrhk",
|
219
|
+
"AssetName": " v_tximtantest_系统盘",
|
220
|
+
"AssetType": "CBS",
|
91
221
|
"Attack": 0,
|
222
|
+
"ConfigurationRisk": 0,
|
223
|
+
"Domain": "",
|
224
|
+
"IsCore": 2,
|
225
|
+
"IsNewAsset": 0,
|
226
|
+
"LastScanTime": "-",
|
227
|
+
"NickName": "焦糖小蛋糕",
|
228
|
+
"Port": 0,
|
229
|
+
"PrivateIp": "",
|
230
|
+
"PublicIp": "",
|
231
|
+
"Region": "ap-guangzhou",
|
232
|
+
"ScanTask": 0,
|
233
|
+
"Status": 1,
|
234
|
+
"Tag": null,
|
235
|
+
"Uin": "100011949846",
|
236
|
+
"VpcId": "",
|
237
|
+
"VpcName": ""
|
238
|
+
},
|
239
|
+
{
|
92
240
|
"Access": 0,
|
93
|
-
"
|
94
|
-
"
|
95
|
-
"
|
96
|
-
"
|
241
|
+
"AppId": 1300846651,
|
242
|
+
"AssetCreateTime": "2020-10-16 17:20:32",
|
243
|
+
"AssetId": "disk-d5emuwa3",
|
244
|
+
"AssetName": "VPC-autotest,勿删_系统盘",
|
245
|
+
"AssetType": "CBS",
|
246
|
+
"Attack": 0,
|
247
|
+
"ConfigurationRisk": 0,
|
248
|
+
"Domain": "",
|
249
|
+
"IsCore": 2,
|
250
|
+
"IsNewAsset": 0,
|
251
|
+
"LastScanTime": "2023-09-04 16:59:17",
|
252
|
+
"NickName": "焦糖小蛋糕",
|
97
253
|
"Port": 0,
|
254
|
+
"PrivateIp": "",
|
255
|
+
"PublicIp": "",
|
256
|
+
"Region": "ap-shanghai",
|
257
|
+
"ScanTask": 14,
|
258
|
+
"Status": 1,
|
98
259
|
"Tag": null,
|
99
|
-
"
|
260
|
+
"Uin": "100011949846",
|
261
|
+
"VpcId": "",
|
262
|
+
"VpcName": ""
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"Access": 0,
|
266
|
+
"AppId": 1300846651,
|
267
|
+
"AssetCreateTime": "2020-06-18 17:24:02",
|
268
|
+
"AssetId": "disk-8ve9yxot",
|
269
|
+
"AssetName": "未命名_系统盘",
|
270
|
+
"AssetType": "CBS",
|
271
|
+
"Attack": 0,
|
272
|
+
"ConfigurationRisk": 0,
|
273
|
+
"Domain": "",
|
274
|
+
"IsCore": 2,
|
275
|
+
"IsNewAsset": 0,
|
276
|
+
"LastScanTime": "2023-09-04 16:59:17",
|
277
|
+
"NickName": "焦糖小蛋糕",
|
278
|
+
"Port": 0,
|
279
|
+
"PrivateIp": "",
|
100
280
|
"PublicIp": "",
|
281
|
+
"Region": "ap-shanghai",
|
282
|
+
"ScanTask": 14,
|
101
283
|
"Status": 1,
|
102
|
-
"
|
284
|
+
"Tag": null,
|
285
|
+
"Uin": "100011949846",
|
286
|
+
"VpcId": "",
|
287
|
+
"VpcName": ""
|
103
288
|
}
|
104
289
|
],
|
105
290
|
"RegionList": [
|
291
|
+
{
|
292
|
+
"Text": "上海",
|
293
|
+
"Value": "ap-shanghai"
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"Text": "重庆",
|
297
|
+
"Value": "ap-chongqing"
|
298
|
+
},
|
106
299
|
{
|
107
300
|
"Text": "广州",
|
108
301
|
"Value": "ap-guangzhou"
|
109
302
|
},
|
110
303
|
{
|
111
|
-
"Text": "
|
112
|
-
"Value": "ap-
|
113
|
-
}
|
114
|
-
],
|
115
|
-
"RequestId": "ddec8747-5f31-4eec-9343-ef7fc337fa4f",
|
116
|
-
"Total": 3,
|
117
|
-
"VpcList": [
|
118
|
-
{
|
119
|
-
"Text": "illnggao-test01",
|
120
|
-
"Value": "vpc-ds7fl5xn"
|
304
|
+
"Text": "中国香港",
|
305
|
+
"Value": "ap-hongkong"
|
121
306
|
},
|
122
307
|
{
|
123
|
-
"Text": "
|
124
|
-
"Value": "
|
308
|
+
"Text": "北京",
|
309
|
+
"Value": "ap-beijing"
|
125
310
|
},
|
126
311
|
{
|
127
|
-
"Text": "
|
128
|
-
"Value": "
|
312
|
+
"Text": "南京",
|
313
|
+
"Value": "ap-nanjing"
|
314
|
+
}
|
315
|
+
],
|
316
|
+
"RequestId": "7899491b-9407-4bca-8363-ddddbbb3486c",
|
317
|
+
"Total": 29,
|
318
|
+
"VpcList": [
|
319
|
+
{
|
320
|
+
"Text": "fengqqian",
|
321
|
+
"Value": "vpc-h2i9m8xh"
|
129
322
|
}
|
130
323
|
]
|
131
324
|
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
**Example 1: 查询实例慢查询聚合结果**
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dbbrain DescribeIndexRecommendAggregationSlowLogs --cli-unfold-argument \
|
9
|
+
--Product abc \
|
10
|
+
--InstanceId abc \
|
11
|
+
--Db abc \
|
12
|
+
--Collection abc \
|
13
|
+
--Signs abc
|
14
|
+
```
|
15
|
+
|
16
|
+
Output:
|
17
|
+
```
|
18
|
+
{
|
19
|
+
"Response": {
|
20
|
+
"RequestId": "asdfaskldfanhasdfsd",
|
21
|
+
"Aggregation": {
|
22
|
+
"AvgExecTime": 8205,
|
23
|
+
"AvgDocsExamined": 2765962,
|
24
|
+
"SlowLogCount": 0,
|
25
|
+
"SlowLogs": [
|
26
|
+
"{\"t\":{\"$date\":\"2023-09-18T10:57:32.072+08:00\"},\"s\":\"I\", \"c\":\"COMMAND\", \"id\":51803, \"ctx\":\"conn7221917\",\"msg\":\"Slow query\",\"attr\":{\"type\":\"command\",\"ns\":\"welabel.ground_truth_data\",\"appName\":\"MongoDB Compass\",\"command\":{\"aggregate\":\"ground_truth_data\",\"pipeline\":[{\"$match\":{\"is_skip\":{\"$ne\":true}}},{\"$project\":{\"labels\":{\"$filter\":{\"input\":\"$comments.data.error_labels\",\"as\":\"com\",\"cond\":{\"$eq\":[\"$$com.questionType\",\"single\"]}}},\"ground_truth_id\":1}},{\"$unwind\":{\"path\":\"$labels\"}},{\"$match\":{\"labels.relationshipType\":\"multi_image_group\"}},{\"$limit\":100000},{\"$group\":{\"_id\":{\"uid\":\"$labels.questionId\",\"element_id\":\"$labels.elementId\",\"gt_id\":\"$ground_truth_id\"}}},{\"$limit\":10}],\"allowDiskUse\":true,\"cursor\":{},\"maxTimeMS\":60000,\"lsid\":{\"id\":{\"$uuid\":\"dcda39f2-cb81-47be-ba04-b0078cf6cc7f\"}},\"$clusterTime\":{\"clusterTime\":{\"$timestamp\":{\"t\":1695005847,\"i\":9}},\"signature\":{\"hash\":{\"$binary\":{\"base64\":\"04MsomRxChDbiOVh1kjTHEsL644=\",\"subType\":\"0\"}},\"keyId\":7218831488945487874}},\"$db\":\"welabel\"},\"planSummary\":\"COLLSCAN\",\"numYields\":1067,\"queryHash\":\"A480F99A\",\"planCacheKey\":\"E2805889\",\"ok\":0,\"errMsg\":\"Error in $cursor stage :: caused by :: operation was interrupted\",\"errName\":\"Interrupted\",\"errCode\":11601,\"reslen\":276,\"locks\":{\"ReplicationStateTransition\":{\"acquireCount\":{\"w\":1144}},\"Global\":{\"acquireCount\":{\"r\":1144}},\"Database\":{\"acquireCount\":{\"r\":1144}},\"Collection\":{\"acquireCount\":{\"r\":1144}},\"Mutex\":{\"acquireCount\":{\"r\":77}}},\"protocol\":\"op_msg\",\"durationMillis\":3663}}",
|
27
|
+
"{\"t\":{\"$date\":\"2023-09-18T10:57:27.730+08:00\"},\"s\":\"I\", \"c\":\"COMMAND\", \"id\":51803, \"ctx\":\"conn7221917\",\"msg\":\"Slow query\",\"attr\":{\"type\":\"command\",\"ns\":\"welabel.ground_truth_data\",\"appName\":\"MongoDB Compass\",\"command\":{\"aggregate\":\"ground_truth_data\",\"pipeline\":[{\"$match\":{\"is_skip\":{\"$ne\":true}}},{\"$unwind\":{\"path\":\"$comments\"}},{\"$project\":{\"labels\":{\"$filter\":{\"input\":\"$comments.data.error_labels\",\"as\":\"com\",\"cond\":{\"$eq\":[\"$$com.questionType\",\"single\"]}}},\"ground_truth_id\":1}},{\"$unwind\":{\"path\":\"$labels\"}},{\"$match\":{\"labels.relationshipType\":\"multi_image_group\"}},{\"$limit\":100000},{\"$group\":{\"_id\":{\"uid\":\"$labels.questionId\",\"element_id\":\"$labels.elementId\",\"gt_id\":\"$ground_truth_id\"}}},{\"$limit\":10}],\"allowDiskUse\":true,\"cursor\":{},\"maxTimeMS\":60000,\"lsid\":{\"id\":{\"$uuid\":\"8532ddbf-2f1c-4bdd-a4f0-af0217f42607\"}},\"$clusterTime\":{\"clusterTime\":{\"$timestamp\":{\"t\":1695005524,\"i\":8}},\"signature\":{\"hash\":{\"$binary\":{\"base64\":\"60J0bCCsS5xTPDOE2yE4yWuxNr0=\",\"subType\":\"0\"}},\"keyId\":7218831488945487874}},\"$db\":\"welabel\"},\"planSummary\":\"COLLSCAN\",\"numYields\":2887,\"queryHash\":\"A1933E73\",\"planCacheKey\":\"77FB924F\",\"ok\":0,\"errMsg\":\"operation was interrupted\",\"errName\":\"Interrupted\",\"errCode\":11601,\"reslen\":237,\"locks\":{\"ReplicationStateTransition\":{\"acquireCount\":{\"w\":3004}},\"Global\":{\"acquireCount\":{\"r\":3004}},\"Database\":{\"acquireCount\":{\"r\":3004}},\"Collection\":{\"acquireCount\":{\"r\":3004}},\"Mutex\":{\"acquireCount\":{\"r\":117}}},\"protocol\":\"op_msg\",\"durationMillis\":10483}}"
|
28
|
+
],
|
29
|
+
"SortCount": 0
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
**Example 1: mongodb索引推荐**
|
2
|
+
|
3
|
+
查询mongodb数据比较慢的时候,可以通过该接口进行获取推荐的索引列表
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dbbrain DescribeIndexRecommendInfo --cli-unfold-argument \
|
9
|
+
--Product mongodb \
|
10
|
+
--InstanceId cmog-ahshjbdwe
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"CollectionNum": 0,
|
18
|
+
"IndexNum": 0,
|
19
|
+
"Items": [
|
20
|
+
{
|
21
|
+
"ClusterId": "abc",
|
22
|
+
"Collection": "abc",
|
23
|
+
"Db": "abc",
|
24
|
+
"Level": 0,
|
25
|
+
"Score": 0,
|
26
|
+
"IndexesToBuild": [
|
27
|
+
{
|
28
|
+
"Id": 0,
|
29
|
+
"IndexCommand": "abc",
|
30
|
+
"IndexStr": "abc",
|
31
|
+
"Level": 0,
|
32
|
+
"Score": 0,
|
33
|
+
"Signs": [
|
34
|
+
"abc"
|
35
|
+
],
|
36
|
+
"Status": 0
|
37
|
+
}
|
38
|
+
],
|
39
|
+
"IndexesToDrop": [
|
40
|
+
{
|
41
|
+
"IndexStr": "abc",
|
42
|
+
"Score": 0,
|
43
|
+
"Reason": "abc",
|
44
|
+
"IndexCommand": "abc",
|
45
|
+
"IndexName": "abc"
|
46
|
+
}
|
47
|
+
]
|
48
|
+
}
|
49
|
+
],
|
50
|
+
"Level": 0,
|
51
|
+
"Optimized": 0,
|
52
|
+
"OptimizedCount": 0,
|
53
|
+
"RequestId": "abc"
|
54
|
+
}
|
55
|
+
}
|
56
|
+
```
|
57
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
**Example 1: 获取 Redis 实例 Proxy 实时会话详情列表**
|
2
|
+
|
3
|
+
指定 Offset 分页获取实例 Proxy 实时会话详情列表。
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dbbrain DescribeRedisProcessList --cli-unfold-argument \
|
9
|
+
--InstanceId crs-qylqks3c \
|
10
|
+
--Product redis \
|
11
|
+
--Offset 50 \
|
12
|
+
--Limit 50
|
13
|
+
```
|
14
|
+
|
15
|
+
Output:
|
16
|
+
```
|
17
|
+
{
|
18
|
+
"Response": {
|
19
|
+
"RequestId": "8108c1c0-bbcc-11ec-adb9-eb9c1358e02b",
|
20
|
+
"ProxyCount": 198,
|
21
|
+
"Processes": [
|
22
|
+
{
|
23
|
+
"Address": "100.12.168.216:33064",
|
24
|
+
"Age": 11788,
|
25
|
+
"FileDescriptor": 3,
|
26
|
+
"Id": -522451396107420,
|
27
|
+
"Idle": 0,
|
28
|
+
"LastCommand": "client",
|
29
|
+
"Name": "",
|
30
|
+
"ProxyId": "49c4c738a3398cb0a41914396e24db2dee29d1e3"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"Address": "100.1.168.115:36938",
|
34
|
+
"Age": 47,
|
35
|
+
"FileDescriptor": 7,
|
36
|
+
"Id": -803926372818076,
|
37
|
+
"Idle": 47,
|
38
|
+
"LastCommand": "command",
|
39
|
+
"Name": "",
|
40
|
+
"ProxyId": "49c4c538a3397cb0a41914796e24db3dee29d1e3"
|
41
|
+
}
|
42
|
+
]
|
43
|
+
}
|
44
|
+
}
|
45
|
+
```
|
46
|
+
|