tccli 3.0.1298.2__py2.py3-none-any.whl → 3.0.1299.2__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/batch/batch_client.py +4 -110
- tccli/services/batch/v20170312/api.json +0 -527
- tccli/services/batch/v20170312/examples.json +0 -16
- tccli/services/bi/v20220105/api.json +87 -1
- tccli/services/bi/v20220105/examples.json +7 -7
- tccli/services/cam/v20190116/api.json +84 -84
- tccli/services/cbs/v20170312/api.json +23 -23
- tccli/services/cdn/v20180606/api.json +240 -179
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +5 -3
- tccli/services/cfg/v20210820/examples.json +1 -1
- tccli/services/chdfs/v20201112/api.json +7 -1
- tccli/services/controlcenter/v20230110/api.json +63 -58
- tccli/services/dbbrain/dbbrain_client.py +106 -0
- tccli/services/dbbrain/v20191016/api.json +219 -0
- tccli/services/dbbrain/v20191016/examples.json +8 -0
- tccli/services/dbbrain/v20210527/api.json +394 -1
- tccli/services/dbbrain/v20210527/examples.json +16 -0
- tccli/services/dcdb/v20180411/api.json +102 -6
- tccli/services/dcdb/v20180411/examples.json +4 -4
- tccli/services/dnspod/v20210323/api.json +128 -127
- tccli/services/facefusion/v20220927/api.json +2 -2
- tccli/services/facefusion/v20220927/examples.json +1 -1
- tccli/services/gs/v20191118/api.json +3 -3
- tccli/services/iotexplorer/v20190423/api.json +550 -517
- tccli/services/iotexplorer/v20190423/examples.json +33 -33
- tccli/services/lkeap/v20240522/api.json +3 -3
- tccli/services/mariadb/v20170312/api.json +84 -8
- tccli/services/mariadb/v20170312/examples.json +3 -3
- tccli/services/mps/v20190612/api.json +8 -8
- tccli/services/mps/v20190612/examples.json +11 -11
- tccli/services/mqtt/v20240516/api.json +6 -6
- tccli/services/ocr/ocr_client.py +307 -360
- tccli/services/ocr/v20181119/api.json +0 -286
- tccli/services/ocr/v20181119/examples.json +0 -8
- tccli/services/organization/v20210331/api.json +9 -0
- tccli/services/sqlserver/v20180328/api.json +9 -0
- tccli/services/sqlserver/v20180328/examples.json +1 -1
- tccli/services/tcb/v20180608/api.json +11 -1
- tccli/services/teo/v20220106/api.json +4 -4
- tccli/services/tione/v20211111/api.json +25 -5
- tccli/services/tse/v20201207/api.json +34 -34
- tccli/services/vod/v20240718/api.json +9 -9
- tccli/services/vod/v20240718/examples.json +11 -11
- tccli/services/vpc/v20170312/api.json +175 -0
- tccli/services/vpc/v20170312/examples.json +8 -0
- tccli/services/vpc/vpc_client.py +53 -0
- tccli/services/wedata/v20210820/api.json +11 -1
- {tccli-3.0.1298.2.dist-info → tccli-3.0.1299.2.dist-info}/METADATA +2 -2
- {tccli-3.0.1298.2.dist-info → tccli-3.0.1299.2.dist-info}/RECORD +54 -54
- {tccli-3.0.1298.2.dist-info → tccli-3.0.1299.2.dist-info}/WHEEL +0 -0
- {tccli-3.0.1298.2.dist-info → tccli-3.0.1299.2.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1298.2.dist-info → tccli-3.0.1299.2.dist-info}/license_files/LICENSE +0 -0
@@ -292,7 +292,7 @@
|
|
292
292
|
{
|
293
293
|
"document": "",
|
294
294
|
"input": "https://cdn.tencentcloudapi.com/?Action=DescribePushTasks\n&TaskId=1533031853231313311\n&<公共请求参数>",
|
295
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"4d5a83f8-a61f-445b-8036-5636be640bef\",\n \"PushLogs\": [\n {\n \"TaskId\": \"1533031853231313311\",\n \"Url\": \"http://www.test.com/\",\n \"Status\": \"Done\",\n \"Percent\": 100,\n \"CreateTime\": \"2018-07-30 18:10:53\",\n \"Area\": \"mainland\"\n }\n ],\n \"TotalCount\": 20\n }\n}",
|
295
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"4d5a83f8-a61f-445b-8036-5636be640bef\",\n \"PushLogs\": [\n {\n \"TaskId\": \"1533031853231313311\",\n \"Url\": \"http://www.test.com/\",\n \"Status\": \"Done\",\n \"Percent\": 100,\n \"CreateTime\": \"2018-07-30 18:10:53\",\n \"UpdateTime\": \"2018-07-30 18:11:53\",\n \"Area\": \"mainland\"\n }\n ],\n \"TotalCount\": 20\n }\n}",
|
296
296
|
"title": "预热历史查询"
|
297
297
|
}
|
298
298
|
],
|
@@ -1611,7 +1611,7 @@
|
|
1611
1611
|
{
|
1612
1612
|
"disabled": false,
|
1613
1613
|
"document": "任务ID",
|
1614
|
-
"example": "
|
1614
|
+
"example": "5432",
|
1615
1615
|
"member": "int64",
|
1616
1616
|
"name": "TaskId",
|
1617
1617
|
"required": true,
|
@@ -2045,9 +2045,10 @@
|
|
2045
2045
|
{
|
2046
2046
|
"disabled": false,
|
2047
2047
|
"document": "标签键",
|
2048
|
-
"example": "
|
2048
|
+
"example": "资源归属",
|
2049
2049
|
"member": "string",
|
2050
2050
|
"name": "TagKey",
|
2051
|
+
"output_required": true,
|
2051
2052
|
"required": true,
|
2052
2053
|
"type": "string",
|
2053
2054
|
"value_allowed_null": false
|
@@ -2055,9 +2056,10 @@
|
|
2055
2056
|
{
|
2056
2057
|
"disabled": false,
|
2057
2058
|
"document": "标签值",
|
2058
|
-
"example": "
|
2059
|
+
"example": "研发组",
|
2059
2060
|
"member": "string",
|
2060
2061
|
"name": "TagValue",
|
2062
|
+
"output_required": true,
|
2061
2063
|
"required": true,
|
2062
2064
|
"type": "string",
|
2063
2065
|
"value_allowed_null": false
|
@@ -112,7 +112,7 @@
|
|
112
112
|
{
|
113
113
|
"document": "查询经验库列表",
|
114
114
|
"input": "POST / HTTP/1.1\nHost: cfg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTemplateList\n<公共请求参数>\n\n{\n \"Limit\": \"10\",\n \"Offset\": \"0\"\n}",
|
115
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"0c06dc9d-1e90-4062-a038-74abf2bbd43d\",\n \"TemplateList\": [\n {\n \"TemplateId\": 511,\n \"TemplateTitle\": \"
|
115
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"0c06dc9d-1e90-4062-a038-74abf2bbd43d\",\n \"TemplateList\": [\n {\n \"TemplateId\": 511,\n \"TemplateTitle\": \"跨AZ容灾\",\n \"TemplateDescription\": \"跨AZ容灾场景验证\",\n \"TemplateTag\": \"资源归属:研发组\",\n \"TemplateIsUsed\": 1,\n \"TemplateCreateTime\": \"2021-10-12 17:28:13\",\n \"TemplateUpdateTime\": \"2021-10-12 17:48:16\",\n \"TemplateUsedNum\": 0\n },\n {\n \"TemplateId\": 509,\n \"TemplateTitle\": \"CPU高负载\",\n \"TemplateDescription\": \"CPU高负载故障场景验证\",\n \"TemplateTag\": \"资源归属:研发组\",\n \"TemplateIsUsed\": 2,\n \"TemplateCreateTime\": \"2021-09-28 15:38:00\",\n \"TemplateUpdateTime\": \"2021-10-11 16:26:45\",\n \"TemplateUsedNum\": 0\n }\n ],\n \"Total\": 2\n }\n}",
|
116
116
|
"title": "经验库列表"
|
117
117
|
},
|
118
118
|
{
|
@@ -1916,6 +1916,7 @@
|
|
1916
1916
|
"example": "1",
|
1917
1917
|
"member": "uint64",
|
1918
1918
|
"name": "RestoreTaskId",
|
1919
|
+
"output_required": true,
|
1919
1920
|
"required": false,
|
1920
1921
|
"type": "int",
|
1921
1922
|
"value_allowed_null": false
|
@@ -1926,16 +1927,18 @@
|
|
1926
1927
|
"example": "/test/file0",
|
1927
1928
|
"member": "string",
|
1928
1929
|
"name": "FilePath",
|
1930
|
+
"output_required": true,
|
1929
1931
|
"required": false,
|
1930
1932
|
"type": "string",
|
1931
1933
|
"value_allowed_null": false
|
1932
1934
|
},
|
1933
1935
|
{
|
1934
1936
|
"disabled": false,
|
1935
|
-
"document": "回热任务类型(1:标准;2:极速;3
|
1937
|
+
"document": "回热任务类型(1:标准;2:极速;3:批量,暂时仅支持标准)",
|
1936
1938
|
"example": "1",
|
1937
1939
|
"member": "uint64",
|
1938
1940
|
"name": "Type",
|
1941
|
+
"output_required": true,
|
1939
1942
|
"required": false,
|
1940
1943
|
"type": "int",
|
1941
1944
|
"value_allowed_null": false
|
@@ -1946,6 +1949,7 @@
|
|
1946
1949
|
"example": "7",
|
1947
1950
|
"member": "uint64",
|
1948
1951
|
"name": "Days",
|
1952
|
+
"output_required": true,
|
1949
1953
|
"required": false,
|
1950
1954
|
"type": "int",
|
1951
1955
|
"value_allowed_null": false
|
@@ -1956,6 +1960,7 @@
|
|
1956
1960
|
"example": "1",
|
1957
1961
|
"member": "uint64",
|
1958
1962
|
"name": "Status",
|
1963
|
+
"output_required": true,
|
1959
1964
|
"required": false,
|
1960
1965
|
"type": "int",
|
1961
1966
|
"value_allowed_null": false
|
@@ -1966,6 +1971,7 @@
|
|
1966
1971
|
"example": "2019-07-30T16:24:38+08:00",
|
1967
1972
|
"member": "datetime_iso",
|
1968
1973
|
"name": "CreateTime",
|
1974
|
+
"output_required": true,
|
1969
1975
|
"required": false,
|
1970
1976
|
"type": "string",
|
1971
1977
|
"value_allowed_null": false
|
@@ -48,103 +48,103 @@
|
|
48
48
|
"members": [
|
49
49
|
{
|
50
50
|
"disabled": false,
|
51
|
-
"document": "账号工厂基线项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128
|
51
|
+
"document": "账号工厂基线项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。",
|
52
52
|
"example": "ACS-BP_ACCOUNT_FACTORY_RAM_USER_PASSWORD_POLICY",
|
53
53
|
"member": "string",
|
54
54
|
"name": "Identifier",
|
55
55
|
"output_required": true,
|
56
56
|
"type": "string",
|
57
|
-
"value_allowed_null":
|
57
|
+
"value_allowed_null": false
|
58
58
|
},
|
59
59
|
{
|
60
60
|
"disabled": false,
|
61
|
-
"document": "基线项名称,功能项名字唯一,仅支持英文字母、数宇、汉字、符号@、&_[]-的组合,1-25
|
61
|
+
"document": "基线项名称,功能项名字唯一,仅支持英文字母、数宇、汉字、符号@、&_[]-的组合,1-25个中文或英文字符。",
|
62
62
|
"example": "账号联系人",
|
63
63
|
"member": "string",
|
64
64
|
"name": "Name",
|
65
65
|
"output_required": true,
|
66
66
|
"type": "string",
|
67
|
-
"value_allowed_null":
|
67
|
+
"value_allowed_null": false
|
68
68
|
},
|
69
69
|
{
|
70
70
|
"disabled": false,
|
71
|
-
"document": "基线项英文名称,基线项名字唯一,仅支持英文字母、数字、空格、符号@、&_[]-的组合,1-64
|
71
|
+
"document": "基线项英文名称,基线项名字唯一,仅支持英文字母、数字、空格、符号@、&_[]-的组合,1-64个英文字符。",
|
72
72
|
"example": "protection rules",
|
73
73
|
"member": "string",
|
74
74
|
"name": "NameEn",
|
75
75
|
"output_required": false,
|
76
76
|
"type": "string",
|
77
|
-
"value_allowed_null":
|
77
|
+
"value_allowed_null": false
|
78
78
|
},
|
79
79
|
{
|
80
80
|
"disabled": false,
|
81
|
-
"document": "基线项权重,数值小权重越高,取值范围大于等于0
|
81
|
+
"document": "基线项权重,数值小权重越高,取值范围大于等于0。",
|
82
82
|
"example": "1",
|
83
83
|
"member": "int64",
|
84
84
|
"name": "Weight",
|
85
85
|
"output_required": true,
|
86
86
|
"type": "int",
|
87
|
-
"value_allowed_null":
|
87
|
+
"value_allowed_null": false
|
88
88
|
},
|
89
89
|
{
|
90
90
|
"disabled": false,
|
91
|
-
"document": "基线项是否必填,1必填,0
|
91
|
+
"document": "基线项是否必填,1必填,0非必填",
|
92
92
|
"example": "1",
|
93
93
|
"member": "int64",
|
94
94
|
"name": "Required",
|
95
95
|
"output_required": true,
|
96
96
|
"type": "int",
|
97
|
-
"value_allowed_null":
|
97
|
+
"value_allowed_null": false
|
98
98
|
},
|
99
99
|
{
|
100
100
|
"disabled": false,
|
101
|
-
"document": "基线项依赖项,N
|
101
|
+
"document": "基线项依赖项,N的取值范围与该基线项依赖的其它基线项个数有关。",
|
102
102
|
"example": "[{\"Identifier\":\"ACS-BP_GUARDRAILS\",\"Type\":\"LandingZoneItem\"},{\"Identifier\":\"ACS-BP_CLOUDSSO\",\"Type\":\"LandingZoneItem\"}]",
|
103
103
|
"member": "DependsOnItem",
|
104
104
|
"name": "DependsOn",
|
105
105
|
"output_required": true,
|
106
106
|
"type": "list",
|
107
|
-
"value_allowed_null":
|
107
|
+
"value_allowed_null": false
|
108
108
|
},
|
109
109
|
{
|
110
110
|
"disabled": false,
|
111
|
-
"document": "基线描述,长度为2~256
|
111
|
+
"document": "基线描述,长度为2~256个英文或中文字符,默认值为空。",
|
112
112
|
"example": "为新账号设置联系人,以配置消息通知。",
|
113
113
|
"member": "string",
|
114
114
|
"name": "Description",
|
115
115
|
"output_required": true,
|
116
116
|
"type": "string",
|
117
|
-
"value_allowed_null":
|
117
|
+
"value_allowed_null": false
|
118
118
|
},
|
119
119
|
{
|
120
120
|
"disabled": false,
|
121
|
-
"document": "基线项英文描述,长度为2~1024
|
121
|
+
"document": "基线项英文描述,长度为2~1024个英文字符,默认值为空。",
|
122
122
|
"example": "Add contacts for new accounts to receive notifications. ",
|
123
123
|
"member": "string",
|
124
124
|
"name": "DescriptionEn",
|
125
125
|
"output_required": false,
|
126
126
|
"type": "string",
|
127
|
-
"value_allowed_null":
|
127
|
+
"value_allowed_null": false
|
128
128
|
},
|
129
129
|
{
|
130
130
|
"disabled": false,
|
131
|
-
"document": "基线分类,长度为2~32
|
131
|
+
"document": "基线分类,长度为2~32个英文或中文字符,不能为空。",
|
132
132
|
"example": "权限",
|
133
133
|
"member": "string",
|
134
134
|
"name": "Classify",
|
135
135
|
"output_required": true,
|
136
136
|
"type": "string",
|
137
|
-
"value_allowed_null":
|
137
|
+
"value_allowed_null": false
|
138
138
|
},
|
139
139
|
{
|
140
140
|
"disabled": false,
|
141
|
-
"document": "基线英文分类,长度为2~64
|
141
|
+
"document": "基线英文分类,长度为2~64个英文字符,不能为空。",
|
142
142
|
"example": "permissions",
|
143
143
|
"member": "string",
|
144
144
|
"name": "ClassifyEn",
|
145
145
|
"output_required": false,
|
146
146
|
"type": "string",
|
147
|
-
"value_allowed_null":
|
147
|
+
"value_allowed_null": false
|
148
148
|
}
|
149
149
|
],
|
150
150
|
"usage": "out"
|
@@ -182,33 +182,36 @@
|
|
182
182
|
"members": [
|
183
183
|
{
|
184
184
|
"disabled": false,
|
185
|
-
"document": "账号工厂基线项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128
|
185
|
+
"document": "账号工厂基线项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。",
|
186
186
|
"example": "ACS-BP_ACCOUNT_FACTORY_ACCOUNT_CONTACT",
|
187
187
|
"member": "string",
|
188
188
|
"name": "Identifier",
|
189
|
+
"output_required": true,
|
189
190
|
"required": false,
|
190
191
|
"type": "string",
|
191
|
-
"value_allowed_null":
|
192
|
+
"value_allowed_null": false
|
192
193
|
},
|
193
194
|
{
|
194
195
|
"disabled": false,
|
195
|
-
"document": "
|
196
|
+
"document": "账号工厂基线项配置,不同的基线项配置参数不同。",
|
196
197
|
"example": "{\\\"Contacts\\\":[{\\\"Name\\\":\\\"dest\\\",\\\"Email\\\":\\\"ia@22.com\\\",\\\"Mobile\\\":\\\"12345678910\\\",\\\"Position\\\":\\\"Technical Director\\\"}]}",
|
197
198
|
"member": "string",
|
198
199
|
"name": "Configuration",
|
200
|
+
"output_required": true,
|
199
201
|
"required": false,
|
200
202
|
"type": "string",
|
201
|
-
"value_allowed_null":
|
203
|
+
"value_allowed_null": false
|
202
204
|
},
|
203
205
|
{
|
204
206
|
"disabled": false,
|
205
|
-
"document": "
|
207
|
+
"document": "基线应用的账号数量。",
|
206
208
|
"example": "4",
|
207
209
|
"member": "int64",
|
208
210
|
"name": "ApplyCount",
|
211
|
+
"output_required": true,
|
209
212
|
"required": false,
|
210
213
|
"type": "int",
|
211
|
-
"value_allowed_null":
|
214
|
+
"value_allowed_null": false
|
212
215
|
}
|
213
216
|
],
|
214
217
|
"usage": "both"
|
@@ -218,93 +221,93 @@
|
|
218
221
|
"members": [
|
219
222
|
{
|
220
223
|
"disabled": false,
|
221
|
-
"document": "任务唯一Id,只能包含英文字母、数字,是16
|
224
|
+
"document": "任务唯一Id,只能包含英文字母、数字,是16个字符的随机字符串。",
|
222
225
|
"example": "m7r1xzlef7lp71bo",
|
223
226
|
"member": "string",
|
224
227
|
"name": "TaskId",
|
225
228
|
"output_required": true,
|
226
229
|
"type": "string",
|
227
|
-
"value_allowed_null":
|
230
|
+
"value_allowed_null": false
|
228
231
|
},
|
229
232
|
{
|
230
233
|
"disabled": false,
|
231
|
-
"document": "基线功能项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128
|
234
|
+
"document": "基线功能项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。",
|
232
235
|
"example": "TCC-AF_CAM_USER_PASSWORD_POLICY",
|
233
236
|
"member": "string",
|
234
237
|
"name": "Identifier",
|
235
238
|
"output_required": true,
|
236
239
|
"type": "string",
|
237
|
-
"value_allowed_null":
|
240
|
+
"value_allowed_null": false
|
238
241
|
},
|
239
242
|
{
|
240
243
|
"disabled": false,
|
241
|
-
"document": "被应用基线项的成员账号uin
|
244
|
+
"document": "被应用基线项的成员账号uin",
|
242
245
|
"example": "14235424532",
|
243
246
|
"member": "int64",
|
244
247
|
"name": "MemberUin",
|
245
248
|
"output_required": true,
|
246
249
|
"type": "int",
|
247
|
-
"value_allowed_null":
|
250
|
+
"value_allowed_null": false
|
248
251
|
},
|
249
252
|
{
|
250
253
|
"disabled": false,
|
251
|
-
"document": "基线项应用的状态,Running表示基线项应用中,Success表示基线项应用成功,Failed表示基线项应用失败,Pending表示基线项待应用,Skipped
|
254
|
+
"document": "基线项应用的状态,Running表示基线项应用中,Success表示基线项应用成功,Failed表示基线项应用失败,Pending表示基线项待应用,Skipped表示基线项被跳过",
|
252
255
|
"example": "Running",
|
253
256
|
"member": "string",
|
254
257
|
"name": "Status",
|
255
258
|
"output_required": true,
|
256
259
|
"type": "string",
|
257
|
-
"value_allowed_null":
|
260
|
+
"value_allowed_null": false
|
258
261
|
},
|
259
262
|
{
|
260
263
|
"disabled": false,
|
261
|
-
"document": "
|
264
|
+
"document": "错误码",
|
262
265
|
"example": "InternalError",
|
263
266
|
"member": "string",
|
264
267
|
"name": "ErrCode",
|
265
268
|
"output_required": true,
|
266
269
|
"type": "string",
|
267
|
-
"value_allowed_null":
|
270
|
+
"value_allowed_null": false
|
268
271
|
},
|
269
272
|
{
|
270
273
|
"disabled": false,
|
271
|
-
"document": "
|
274
|
+
"document": "错误信息",
|
272
275
|
"example": "landing zone is not exist",
|
273
276
|
"member": "string",
|
274
277
|
"name": "ErrMessage",
|
275
278
|
"output_required": true,
|
276
279
|
"type": "string",
|
277
|
-
"value_allowed_null":
|
280
|
+
"value_allowed_null": false
|
278
281
|
},
|
279
282
|
{
|
280
283
|
"disabled": false,
|
281
|
-
"document": "
|
284
|
+
"document": "基线项部署输出",
|
282
285
|
"example": "[{\"Code\":\"OK\",\"Msg\":\"OK\"},{\"Code\":\"OK\",\"Msg\":\"OK\"}]",
|
283
286
|
"member": "string",
|
284
287
|
"name": "Output",
|
285
288
|
"output_required": true,
|
286
289
|
"type": "string",
|
287
|
-
"value_allowed_null":
|
290
|
+
"value_allowed_null": false
|
288
291
|
},
|
289
292
|
{
|
290
293
|
"disabled": false,
|
291
|
-
"document": "创建时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss
|
294
|
+
"document": "创建时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss。",
|
292
295
|
"example": "2022-08-18 12:00:00",
|
293
296
|
"member": "string",
|
294
297
|
"name": "CreateTime",
|
295
298
|
"output_required": true,
|
296
299
|
"type": "string",
|
297
|
-
"value_allowed_null":
|
300
|
+
"value_allowed_null": false
|
298
301
|
},
|
299
302
|
{
|
300
303
|
"disabled": false,
|
301
|
-
"document": "更新时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss
|
304
|
+
"document": "更新时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss。",
|
302
305
|
"example": "2022-08-18 12:00:00",
|
303
306
|
"member": "string",
|
304
307
|
"name": "UpdateTime",
|
305
308
|
"output_required": true,
|
306
309
|
"type": "string",
|
307
|
-
"value_allowed_null":
|
310
|
+
"value_allowed_null": false
|
308
311
|
}
|
309
312
|
],
|
310
313
|
"usage": "out"
|
@@ -350,23 +353,25 @@
|
|
350
353
|
"members": [
|
351
354
|
{
|
352
355
|
"disabled": false,
|
353
|
-
"document": "依赖项类型,只有LandingZoneSetUp或AccountFactorySetUp。LandingZoneSetUp表示landingZone的依赖项;AccountFactorySetUp
|
356
|
+
"document": "依赖项类型,只有LandingZoneSetUp或AccountFactorySetUp。LandingZoneSetUp表示landingZone的依赖项;AccountFactorySetUp表示账号工厂的依赖项",
|
354
357
|
"example": "LandingZoneItem",
|
355
358
|
"member": "string",
|
356
359
|
"name": "Type",
|
360
|
+
"output_required": true,
|
357
361
|
"required": false,
|
358
362
|
"type": "string",
|
359
|
-
"value_allowed_null":
|
363
|
+
"value_allowed_null": false
|
360
364
|
},
|
361
365
|
{
|
362
366
|
"disabled": false,
|
363
|
-
"document": "功能项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128
|
367
|
+
"document": "功能项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。",
|
364
368
|
"example": "ACS-BP_GUARDRAILS",
|
365
369
|
"member": "string",
|
366
370
|
"name": "Identifier",
|
371
|
+
"output_required": true,
|
367
372
|
"required": false,
|
368
373
|
"type": "string",
|
369
|
-
"value_allowed_null":
|
374
|
+
"value_allowed_null": false
|
370
375
|
}
|
371
376
|
],
|
372
377
|
"usage": "both"
|
@@ -381,53 +386,53 @@
|
|
381
386
|
"members": [
|
382
387
|
{
|
383
388
|
"disabled": false,
|
384
|
-
"document": "资源所属主账号uin
|
389
|
+
"document": "资源所属主账号uin。",
|
385
390
|
"example": "100000000001",
|
386
391
|
"member": "int64",
|
387
392
|
"name": "OwnerUin",
|
388
393
|
"output_required": true,
|
389
394
|
"type": "int",
|
390
|
-
"value_allowed_null":
|
395
|
+
"value_allowed_null": false
|
391
396
|
},
|
392
397
|
{
|
393
398
|
"disabled": false,
|
394
|
-
"document": "基线项名称,基线项名字唯一,仅支持英文字母、数宇、汉字、符号@、&_[]-的组合,1-25
|
399
|
+
"document": "基线项名称,基线项名字唯一,仅支持英文字母、数宇、汉字、符号@、&_[]-的组合,1-25个中文或英文字符。",
|
395
400
|
"example": "default",
|
396
401
|
"member": "string",
|
397
402
|
"name": "Name",
|
398
403
|
"output_required": true,
|
399
404
|
"type": "string",
|
400
|
-
"value_allowed_null":
|
405
|
+
"value_allowed_null": false
|
401
406
|
},
|
402
407
|
{
|
403
408
|
"disabled": false,
|
404
|
-
"document": "
|
409
|
+
"document": "基线项配置列表。",
|
405
410
|
"example": "[{\"Identifier\":\"ACS-BP_ACCOUNT_FACTORY_ACCOUNT_CONTACT\",\"Configuration\":\"{\\\"Contacts\\\":[{\\\"Name\\\":\\\"dest\\\",\\\"Email\\\":\\\"ia@22.com\\\",\\\"Mobile\\\":\\\"12345678910\\\",\\\"Position\\\":\\\"Technical Director\\\"}]}\",\"ApplyCount\":5}]",
|
406
411
|
"member": "BaselineInfoItem",
|
407
412
|
"name": "BaselineConfigItems",
|
408
413
|
"output_required": true,
|
409
414
|
"type": "list",
|
410
|
-
"value_allowed_null":
|
415
|
+
"value_allowed_null": false
|
411
416
|
},
|
412
417
|
{
|
413
418
|
"disabled": false,
|
414
|
-
"document": "创建时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss
|
419
|
+
"document": "创建时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss。",
|
415
420
|
"example": "2022-08-18 12:00:00",
|
416
421
|
"member": "string",
|
417
422
|
"name": "CreateTime",
|
418
423
|
"output_required": true,
|
419
424
|
"type": "string",
|
420
|
-
"value_allowed_null":
|
425
|
+
"value_allowed_null": false
|
421
426
|
},
|
422
427
|
{
|
423
428
|
"disabled": false,
|
424
|
-
"document": "更新时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss
|
429
|
+
"document": "更新时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss。",
|
425
430
|
"example": "2022-08-18 12:00:00",
|
426
431
|
"member": "string",
|
427
432
|
"name": "UpdateTime",
|
428
433
|
"output_required": true,
|
429
434
|
"type": "string",
|
430
|
-
"value_allowed_null":
|
435
|
+
"value_allowed_null": false
|
431
436
|
},
|
432
437
|
{
|
433
438
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
@@ -3139,6 +3139,58 @@ def doCancelDBAutonomyAction(args, parsed_globals):
|
|
3139
3139
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3140
3140
|
|
3141
3141
|
|
3142
|
+
def doDescribeRedisSlowLogTopSqls(args, parsed_globals):
|
3143
|
+
g_param = parse_global_arg(parsed_globals)
|
3144
|
+
|
3145
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3146
|
+
cred = credential.CVMRoleCredential()
|
3147
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3148
|
+
cred = credential.STSAssumeRoleCredential(
|
3149
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3150
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3151
|
+
)
|
3152
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
3153
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3154
|
+
else:
|
3155
|
+
cred = credential.Credential(
|
3156
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3157
|
+
)
|
3158
|
+
http_profile = HttpProfile(
|
3159
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3160
|
+
reqMethod="POST",
|
3161
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3162
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3163
|
+
)
|
3164
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3165
|
+
if g_param[OptionsDefine.Language]:
|
3166
|
+
profile.language = g_param[OptionsDefine.Language]
|
3167
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3168
|
+
client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
|
3169
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3170
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3171
|
+
model = models.DescribeRedisSlowLogTopSqlsRequest()
|
3172
|
+
model.from_json_string(json.dumps(args))
|
3173
|
+
start_time = time.time()
|
3174
|
+
while True:
|
3175
|
+
rsp = client.DescribeRedisSlowLogTopSqls(model)
|
3176
|
+
result = rsp.to_json_string()
|
3177
|
+
try:
|
3178
|
+
json_obj = json.loads(result)
|
3179
|
+
except TypeError as e:
|
3180
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3181
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3182
|
+
break
|
3183
|
+
cur_time = time.time()
|
3184
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3185
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3186
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3187
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3188
|
+
else:
|
3189
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3190
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3191
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3192
|
+
|
3193
|
+
|
3142
3194
|
def doCreateKillTask(args, parsed_globals):
|
3143
3195
|
g_param = parse_global_arg(parsed_globals)
|
3144
3196
|
|
@@ -3919,6 +3971,58 @@ def doDescribeAlarmTemplate(args, parsed_globals):
|
|
3919
3971
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3920
3972
|
|
3921
3973
|
|
3974
|
+
def doDescribeSlowLogQueryTimeStats(args, parsed_globals):
|
3975
|
+
g_param = parse_global_arg(parsed_globals)
|
3976
|
+
|
3977
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3978
|
+
cred = credential.CVMRoleCredential()
|
3979
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3980
|
+
cred = credential.STSAssumeRoleCredential(
|
3981
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3982
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3983
|
+
)
|
3984
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
3985
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3986
|
+
else:
|
3987
|
+
cred = credential.Credential(
|
3988
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3989
|
+
)
|
3990
|
+
http_profile = HttpProfile(
|
3991
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3992
|
+
reqMethod="POST",
|
3993
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3994
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3995
|
+
)
|
3996
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3997
|
+
if g_param[OptionsDefine.Language]:
|
3998
|
+
profile.language = g_param[OptionsDefine.Language]
|
3999
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4000
|
+
client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
|
4001
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4002
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4003
|
+
model = models.DescribeSlowLogQueryTimeStatsRequest()
|
4004
|
+
model.from_json_string(json.dumps(args))
|
4005
|
+
start_time = time.time()
|
4006
|
+
while True:
|
4007
|
+
rsp = client.DescribeSlowLogQueryTimeStats(model)
|
4008
|
+
result = rsp.to_json_string()
|
4009
|
+
try:
|
4010
|
+
json_obj = json.loads(result)
|
4011
|
+
except TypeError as e:
|
4012
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4013
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4014
|
+
break
|
4015
|
+
cur_time = time.time()
|
4016
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4017
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4018
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4019
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4020
|
+
else:
|
4021
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4022
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4023
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4024
|
+
|
4025
|
+
|
3922
4026
|
CLIENT_MAP = {
|
3923
4027
|
"v20210527": dbbrain_client_v20210527,
|
3924
4028
|
"v20191016": dbbrain_client_v20191016,
|
@@ -3992,6 +4096,7 @@ ACTION_MAP = {
|
|
3992
4096
|
"DescribeIndexRecommendAggregationSlowLogs": doDescribeIndexRecommendAggregationSlowLogs,
|
3993
4097
|
"ModifyDiagDBInstanceConf": doModifyDiagDBInstanceConf,
|
3994
4098
|
"CancelDBAutonomyAction": doCancelDBAutonomyAction,
|
4099
|
+
"DescribeRedisSlowLogTopSqls": doDescribeRedisSlowLogTopSqls,
|
3995
4100
|
"CreateKillTask": doCreateKillTask,
|
3996
4101
|
"UpdateAgentSwitch": doUpdateAgentSwitch,
|
3997
4102
|
"UpdateMonitorSwitch": doUpdateMonitorSwitch,
|
@@ -4007,6 +4112,7 @@ ACTION_MAP = {
|
|
4007
4112
|
"DescribeProxySessionKillTasks": doDescribeProxySessionKillTasks,
|
4008
4113
|
"ModifyUserAutonomyProfile": doModifyUserAutonomyProfile,
|
4009
4114
|
"DescribeAlarmTemplate": doDescribeAlarmTemplate,
|
4115
|
+
"DescribeSlowLogQueryTimeStats": doDescribeSlowLogQueryTimeStats,
|
4010
4116
|
|
4011
4117
|
}
|
4012
4118
|
|