tccli 3.0.1278.1__py2.py3-none-any.whl → 3.0.1280.1__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/aiart/v20221229/api.json +1 -1
- tccli/services/antiddos/v20200309/api.json +5 -1
- tccli/services/apm/v20210622/api.json +32 -32
- tccli/services/apm/v20210622/examples.json +1 -1
- tccli/services/billing/v20180709/api.json +550 -529
- tccli/services/billing/v20180709/examples.json +4 -4
- tccli/services/cat/v20180409/api.json +2 -2
- tccli/services/cdwdoris/v20211228/api.json +15 -1
- tccli/services/cdwpg/cdwpg_client.py +866 -18
- tccli/services/cdwpg/v20201230/api.json +2888 -551
- tccli/services/cdwpg/v20201230/examples.json +138 -10
- tccli/services/cfs/v20190719/examples.json +8 -2
- tccli/services/ciam/v20220331/api.json +111 -111
- tccli/services/ciam/v20220331/examples.json +8 -8
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/controlcenter/v20230110/api.json +7 -5
- tccli/services/csip/v20221121/api.json +66 -6
- tccli/services/cvm/v20170312/api.json +282 -267
- tccli/services/cvm/v20170312/examples.json +2 -2
- tccli/services/dbbrain/v20191016/api.json +12 -8
- tccli/services/dbbrain/v20210527/api.json +20 -20
- tccli/services/dlc/v20210125/api.json +19 -0
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +11 -0
- tccli/services/es/v20180416/api.json +13 -0
- tccli/services/ess/v20201111/api.json +2 -2
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/goosefs/v20220519/api.json +16 -15
- tccli/services/goosefs/v20220519/examples.json +2 -2
- tccli/services/gwlb/v20240906/api.json +22 -3
- tccli/services/gwlb/v20240906/examples.json +1 -1
- tccli/services/iotcloud/v20210408/api.json +243 -245
- tccli/services/iotcloud/v20210408/examples.json +64 -64
- tccli/services/keewidb/v20220308/api.json +92 -92
- tccli/services/live/v20180801/api.json +287 -274
- tccli/services/lke/lke_client.py +114 -8
- tccli/services/lke/v20231130/api.json +220 -0
- tccli/services/lke/v20231130/examples.json +16 -0
- tccli/services/mongodb/v20190725/api.json +4 -3
- tccli/services/mongodb/v20190725/examples.json +2 -2
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/mps/v20190612/api.json +20 -9
- tccli/services/mqtt/mqtt_client.py +57 -4
- tccli/services/mqtt/v20240516/api.json +88 -0
- tccli/services/mqtt/v20240516/examples.json +8 -0
- tccli/services/ocr/v20181119/api.json +4 -4
- tccli/services/pts/v20210728/api.json +44 -6
- tccli/services/redis/v20180412/api.json +66 -66
- tccli/services/rum/v20210622/api.json +90 -0
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tag/v20180813/examples.json +1 -1
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +93 -0
- tccli/services/tdmq/v20200217/examples.json +8 -0
- tccli/services/teo/v20220901/api.json +1 -1
- tccli/services/tke/v20180525/api.json +20 -20
- tccli/services/tms/v20201229/api.json +9 -0
- tccli/services/trp/v20210515/api.json +8 -8
- tccli/services/trp/v20210515/examples.json +1 -1
- tccli/services/tsf/v20180326/api.json +884 -884
- tccli/services/vod/v20180717/api.json +11 -11
- tccli/services/waf/v20180125/api.json +7 -7
- tccli/services/waf/v20180125/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +107 -0
- {tccli-3.0.1278.1.dist-info → tccli-3.0.1280.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1278.1.dist-info → tccli-3.0.1280.1.dist-info}/RECORD +70 -70
- {tccli-3.0.1278.1.dist-info → tccli-3.0.1280.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1278.1.dist-info → tccli-3.0.1280.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1278.1.dist-info → tccli-3.0.1280.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/lke/lke_client.py
CHANGED
@@ -121,6 +121,58 @@ def doDeleteAttributeLabel(args, parsed_globals):
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
122
|
|
123
123
|
|
124
|
+
def doGetVarList(args, parsed_globals):
|
125
|
+
g_param = parse_global_arg(parsed_globals)
|
126
|
+
|
127
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
128
|
+
cred = credential.CVMRoleCredential()
|
129
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
130
|
+
cred = credential.STSAssumeRoleCredential(
|
131
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
132
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
133
|
+
)
|
134
|
+
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):
|
135
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
136
|
+
else:
|
137
|
+
cred = credential.Credential(
|
138
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
139
|
+
)
|
140
|
+
http_profile = HttpProfile(
|
141
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
142
|
+
reqMethod="POST",
|
143
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
144
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
145
|
+
)
|
146
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
147
|
+
if g_param[OptionsDefine.Language]:
|
148
|
+
profile.language = g_param[OptionsDefine.Language]
|
149
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
150
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
151
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
152
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
153
|
+
model = models.GetVarListRequest()
|
154
|
+
model.from_json_string(json.dumps(args))
|
155
|
+
start_time = time.time()
|
156
|
+
while True:
|
157
|
+
rsp = client.GetVarList(model)
|
158
|
+
result = rsp.to_json_string()
|
159
|
+
try:
|
160
|
+
json_obj = json.loads(result)
|
161
|
+
except TypeError as e:
|
162
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
163
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
164
|
+
break
|
165
|
+
cur_time = time.time()
|
166
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
167
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
168
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
169
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
170
|
+
else:
|
171
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
172
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
173
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
|
+
|
175
|
+
|
124
176
|
def doDescribeKnowledgeUsagePieGraph(args, parsed_globals):
|
125
177
|
g_param = parse_global_arg(parsed_globals)
|
126
178
|
|
@@ -1265,7 +1317,7 @@ def doDescribeSearchStatsGraph(args, parsed_globals):
|
|
1265
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
1318
|
|
1267
1319
|
|
1268
|
-
def
|
1320
|
+
def doQueryParseDocResult(args, parsed_globals):
|
1269
1321
|
g_param = parse_global_arg(parsed_globals)
|
1270
1322
|
|
1271
1323
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1294,11 +1346,11 @@ def doDeleteDocCate(args, parsed_globals):
|
|
1294
1346
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
1295
1347
|
client._sdkVersion += ("_CLI_" + __version__)
|
1296
1348
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1297
|
-
model = models.
|
1349
|
+
model = models.QueryParseDocResultRequest()
|
1298
1350
|
model.from_json_string(json.dumps(args))
|
1299
1351
|
start_time = time.time()
|
1300
1352
|
while True:
|
1301
|
-
rsp = client.
|
1353
|
+
rsp = client.QueryParseDocResult(model)
|
1302
1354
|
result = rsp.to_json_string()
|
1303
1355
|
try:
|
1304
1356
|
json_obj = json.loads(result)
|
@@ -2201,7 +2253,7 @@ def doDescribeTokenUsage(args, parsed_globals):
|
|
2201
2253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2254
|
|
2203
2255
|
|
2204
|
-
def
|
2256
|
+
def doDeleteDocCate(args, parsed_globals):
|
2205
2257
|
g_param = parse_global_arg(parsed_globals)
|
2206
2258
|
|
2207
2259
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2230,11 +2282,11 @@ def doQueryParseDocResult(args, parsed_globals):
|
|
2230
2282
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
2283
|
client._sdkVersion += ("_CLI_" + __version__)
|
2232
2284
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
-
model = models.
|
2285
|
+
model = models.DeleteDocCateRequest()
|
2234
2286
|
model.from_json_string(json.dumps(args))
|
2235
2287
|
start_time = time.time()
|
2236
2288
|
while True:
|
2237
|
-
rsp = client.
|
2289
|
+
rsp = client.DeleteDocCate(model)
|
2238
2290
|
result = rsp.to_json_string()
|
2239
2291
|
try:
|
2240
2292
|
json_obj = json.loads(result)
|
@@ -2877,6 +2929,58 @@ def doListQA(args, parsed_globals):
|
|
2877
2929
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
2930
|
|
2879
2931
|
|
2932
|
+
def doCreateVar(args, parsed_globals):
|
2933
|
+
g_param = parse_global_arg(parsed_globals)
|
2934
|
+
|
2935
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2936
|
+
cred = credential.CVMRoleCredential()
|
2937
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2938
|
+
cred = credential.STSAssumeRoleCredential(
|
2939
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2940
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2941
|
+
)
|
2942
|
+
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):
|
2943
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2944
|
+
else:
|
2945
|
+
cred = credential.Credential(
|
2946
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2947
|
+
)
|
2948
|
+
http_profile = HttpProfile(
|
2949
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2950
|
+
reqMethod="POST",
|
2951
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2952
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2953
|
+
)
|
2954
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2955
|
+
if g_param[OptionsDefine.Language]:
|
2956
|
+
profile.language = g_param[OptionsDefine.Language]
|
2957
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2958
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
2959
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2960
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2961
|
+
model = models.CreateVarRequest()
|
2962
|
+
model.from_json_string(json.dumps(args))
|
2963
|
+
start_time = time.time()
|
2964
|
+
while True:
|
2965
|
+
rsp = client.CreateVar(model)
|
2966
|
+
result = rsp.to_json_string()
|
2967
|
+
try:
|
2968
|
+
json_obj = json.loads(result)
|
2969
|
+
except TypeError as e:
|
2970
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2971
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2972
|
+
break
|
2973
|
+
cur_time = time.time()
|
2974
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2975
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2976
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2977
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2978
|
+
else:
|
2979
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2980
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2981
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2982
|
+
|
2983
|
+
|
2880
2984
|
def doGetLikeDataCount(args, parsed_globals):
|
2881
2985
|
g_param = parse_global_arg(parsed_globals)
|
2882
2986
|
|
@@ -5178,6 +5282,7 @@ MODELS_MAP = {
|
|
5178
5282
|
ACTION_MAP = {
|
5179
5283
|
"ListUnsatisfiedReply": doListUnsatisfiedReply,
|
5180
5284
|
"DeleteAttributeLabel": doDeleteAttributeLabel,
|
5285
|
+
"GetVarList": doGetVarList,
|
5181
5286
|
"DescribeKnowledgeUsagePieGraph": doDescribeKnowledgeUsagePieGraph,
|
5182
5287
|
"ModifyQAAttrRange": doModifyQAAttrRange,
|
5183
5288
|
"GetReconstructDocumentResult": doGetReconstructDocumentResult,
|
@@ -5200,7 +5305,7 @@ ACTION_MAP = {
|
|
5200
5305
|
"ListAttributeLabel": doListAttributeLabel,
|
5201
5306
|
"ListReleaseConfigPreview": doListReleaseConfigPreview,
|
5202
5307
|
"DescribeSearchStatsGraph": doDescribeSearchStatsGraph,
|
5203
|
-
"
|
5308
|
+
"QueryParseDocResult": doQueryParseDocResult,
|
5204
5309
|
"VerifyQA": doVerifyQA,
|
5205
5310
|
"CreateDocCate": doCreateDocCate,
|
5206
5311
|
"CheckAttributeLabelExist": doCheckAttributeLabelExist,
|
@@ -5218,7 +5323,7 @@ ACTION_MAP = {
|
|
5218
5323
|
"GroupDoc": doGroupDoc,
|
5219
5324
|
"ListApp": doListApp,
|
5220
5325
|
"DescribeTokenUsage": doDescribeTokenUsage,
|
5221
|
-
"
|
5326
|
+
"DeleteDocCate": doDeleteDocCate,
|
5222
5327
|
"ListQACate": doListQACate,
|
5223
5328
|
"ListAppCategory": doListAppCategory,
|
5224
5329
|
"DescribeQA": doDescribeQA,
|
@@ -5231,6 +5336,7 @@ ACTION_MAP = {
|
|
5231
5336
|
"DescribeRobotBizIDByAppKey": doDescribeRobotBizIDByAppKey,
|
5232
5337
|
"ListDoc": doListDoc,
|
5233
5338
|
"ListQA": doListQA,
|
5339
|
+
"CreateVar": doCreateVar,
|
5234
5340
|
"GetLikeDataCount": doGetLikeDataCount,
|
5235
5341
|
"ModifyDocCate": doModifyDocCate,
|
5236
5342
|
"ExportQAList": doExportQAList,
|
@@ -84,6 +84,13 @@
|
|
84
84
|
"output": "CreateReleaseResponse",
|
85
85
|
"status": "online"
|
86
86
|
},
|
87
|
+
"CreateVar": {
|
88
|
+
"document": "创建变量",
|
89
|
+
"input": "CreateVarRequest",
|
90
|
+
"name": "创建变量",
|
91
|
+
"output": "CreateVarResponse",
|
92
|
+
"status": "online"
|
93
|
+
},
|
87
94
|
"DeleteApp": {
|
88
95
|
"document": "删除应用",
|
89
96
|
"input": "DeleteAppRequest",
|
@@ -364,6 +371,13 @@
|
|
364
371
|
"output": "GetTaskStatusResponse",
|
365
372
|
"status": "online"
|
366
373
|
},
|
374
|
+
"GetVarList": {
|
375
|
+
"document": "查询自定义变量列表",
|
376
|
+
"input": "GetVarListRequest",
|
377
|
+
"name": "获取变量列表",
|
378
|
+
"output": "GetVarListResponse",
|
379
|
+
"status": "online"
|
380
|
+
},
|
367
381
|
"GetWsToken": {
|
368
382
|
"document": "获取ws token",
|
369
383
|
"input": "GetWsTokenRequest",
|
@@ -3024,6 +3038,70 @@
|
|
3024
3038
|
],
|
3025
3039
|
"type": "object"
|
3026
3040
|
},
|
3041
|
+
"CreateVarRequest": {
|
3042
|
+
"document": "CreateVar请求参数结构体",
|
3043
|
+
"members": [
|
3044
|
+
{
|
3045
|
+
"disabled": false,
|
3046
|
+
"document": "应用ID",
|
3047
|
+
"example": "1793260396881641472",
|
3048
|
+
"member": "string",
|
3049
|
+
"name": "AppBizId",
|
3050
|
+
"required": true,
|
3051
|
+
"type": "string"
|
3052
|
+
},
|
3053
|
+
{
|
3054
|
+
"disabled": false,
|
3055
|
+
"document": "变量名称,不允许重复,最大支持50个字符",
|
3056
|
+
"example": "TimeID",
|
3057
|
+
"member": "string",
|
3058
|
+
"name": "VarName",
|
3059
|
+
"required": true,
|
3060
|
+
"type": "string"
|
3061
|
+
},
|
3062
|
+
{
|
3063
|
+
"disabled": false,
|
3064
|
+
"document": "变量描述,最大支持120个字符",
|
3065
|
+
"example": "TimeID变量表示时间",
|
3066
|
+
"member": "string",
|
3067
|
+
"name": "VarDesc",
|
3068
|
+
"required": false,
|
3069
|
+
"type": "string"
|
3070
|
+
},
|
3071
|
+
{
|
3072
|
+
"disabled": false,
|
3073
|
+
"document": "变量类型定义,支持类型如下:(STRING,INT,FLOAT,BOOL,OBJECT,ARRAY_STRING,ARRAY_INT,ARRAY_FLOAT,ARRAY_BOOL,ARRAY_OBJECT,FILE,DOCUMENT,IMAGE,AUDIO);传输过程是json字符串,标签中仅支持\"STRING\"类型使用",
|
3074
|
+
"example": "STRING",
|
3075
|
+
"member": "string",
|
3076
|
+
"name": "VarType",
|
3077
|
+
"required": false,
|
3078
|
+
"type": "string"
|
3079
|
+
}
|
3080
|
+
],
|
3081
|
+
"type": "object"
|
3082
|
+
},
|
3083
|
+
"CreateVarResponse": {
|
3084
|
+
"document": "CreateVar返回参数结构体",
|
3085
|
+
"members": [
|
3086
|
+
{
|
3087
|
+
"disabled": false,
|
3088
|
+
"document": "变量ID",
|
3089
|
+
"example": "55127e9e-6e9e-4c11-bcf8-b524959cd841",
|
3090
|
+
"member": "string",
|
3091
|
+
"name": "VarId",
|
3092
|
+
"output_required": false,
|
3093
|
+
"type": "string",
|
3094
|
+
"value_allowed_null": false
|
3095
|
+
},
|
3096
|
+
{
|
3097
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3098
|
+
"member": "string",
|
3099
|
+
"name": "RequestId",
|
3100
|
+
"type": "string"
|
3101
|
+
}
|
3102
|
+
],
|
3103
|
+
"type": "object"
|
3104
|
+
},
|
3027
3105
|
"Credentials": {
|
3028
3106
|
"document": "临时密钥结构",
|
3029
3107
|
"members": [
|
@@ -7062,6 +7140,98 @@
|
|
7062
7140
|
],
|
7063
7141
|
"type": "object"
|
7064
7142
|
},
|
7143
|
+
"GetVarListRequest": {
|
7144
|
+
"document": "GetVarList请求参数结构体",
|
7145
|
+
"members": [
|
7146
|
+
{
|
7147
|
+
"disabled": false,
|
7148
|
+
"document": "应用ID",
|
7149
|
+
"example": "1793260396881641472",
|
7150
|
+
"member": "string",
|
7151
|
+
"name": "AppBizId",
|
7152
|
+
"required": true,
|
7153
|
+
"type": "string"
|
7154
|
+
},
|
7155
|
+
{
|
7156
|
+
"disabled": false,
|
7157
|
+
"document": "变量ID数组",
|
7158
|
+
"example": "[\"d125c28b-55db-4478-9066-6115ab97ee17\"]",
|
7159
|
+
"member": "string",
|
7160
|
+
"name": "VarIds",
|
7161
|
+
"required": false,
|
7162
|
+
"type": "list"
|
7163
|
+
},
|
7164
|
+
{
|
7165
|
+
"disabled": false,
|
7166
|
+
"document": "按变量名称关键词搜索",
|
7167
|
+
"example": "UserID",
|
7168
|
+
"member": "string",
|
7169
|
+
"name": "Keyword",
|
7170
|
+
"required": false,
|
7171
|
+
"type": "string"
|
7172
|
+
},
|
7173
|
+
{
|
7174
|
+
"disabled": false,
|
7175
|
+
"document": "起始偏移量(默认0)",
|
7176
|
+
"example": "0",
|
7177
|
+
"member": "uint64",
|
7178
|
+
"name": "Offset",
|
7179
|
+
"required": false,
|
7180
|
+
"type": "int"
|
7181
|
+
},
|
7182
|
+
{
|
7183
|
+
"disabled": false,
|
7184
|
+
"document": "限定数量(默认15)",
|
7185
|
+
"example": "15",
|
7186
|
+
"member": "uint64",
|
7187
|
+
"name": "Limit",
|
7188
|
+
"required": false,
|
7189
|
+
"type": "int"
|
7190
|
+
},
|
7191
|
+
{
|
7192
|
+
"disabled": false,
|
7193
|
+
"document": "按变量类型过滤,默认查询所有类型(STRING,INT,FLOAT,BOOL,OBJECT,ARRAY_STRING,ARRAY_INT,ARRAY_FLOAT,ARRAY_BOOL,ARRAY_OBJECT,FILE,DOCUMENT,IMAGE,AUDIO)",
|
7194
|
+
"example": "STRING",
|
7195
|
+
"member": "string",
|
7196
|
+
"name": "VarType",
|
7197
|
+
"required": false,
|
7198
|
+
"type": "string"
|
7199
|
+
}
|
7200
|
+
],
|
7201
|
+
"type": "object"
|
7202
|
+
},
|
7203
|
+
"GetVarListResponse": {
|
7204
|
+
"document": "GetVarList返回参数结构体",
|
7205
|
+
"members": [
|
7206
|
+
{
|
7207
|
+
"disabled": false,
|
7208
|
+
"document": "变量总数",
|
7209
|
+
"example": "1",
|
7210
|
+
"member": "uint64",
|
7211
|
+
"name": "Total",
|
7212
|
+
"output_required": false,
|
7213
|
+
"type": "int",
|
7214
|
+
"value_allowed_null": false
|
7215
|
+
},
|
7216
|
+
{
|
7217
|
+
"disabled": false,
|
7218
|
+
"document": "变量信息列表",
|
7219
|
+
"example": "[{\"VarId\":\"d125c28b-55db-4478-9066-6115ab97ee17\",\"VarName\":\"UserID\"}]",
|
7220
|
+
"member": "TaskFLowVar",
|
7221
|
+
"name": "List",
|
7222
|
+
"output_required": false,
|
7223
|
+
"type": "list",
|
7224
|
+
"value_allowed_null": false
|
7225
|
+
},
|
7226
|
+
{
|
7227
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7228
|
+
"member": "string",
|
7229
|
+
"name": "RequestId",
|
7230
|
+
"type": "string"
|
7231
|
+
}
|
7232
|
+
],
|
7233
|
+
"type": "object"
|
7234
|
+
},
|
7065
7235
|
"GetWsTokenReq_Label": {
|
7066
7236
|
"document": "获取ws token label",
|
7067
7237
|
"members": [
|
@@ -14169,6 +14339,56 @@
|
|
14169
14339
|
],
|
14170
14340
|
"usage": "both"
|
14171
14341
|
},
|
14342
|
+
"TaskFLowVar": {
|
14343
|
+
"document": "变量详情",
|
14344
|
+
"members": [
|
14345
|
+
{
|
14346
|
+
"disabled": false,
|
14347
|
+
"document": "变量ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
14348
|
+
"example": "d125c28b-55db-4478-9066-6115ab97ee17",
|
14349
|
+
"member": "string",
|
14350
|
+
"name": "VarId",
|
14351
|
+
"output_required": false,
|
14352
|
+
"required": false,
|
14353
|
+
"type": "string",
|
14354
|
+
"value_allowed_null": true
|
14355
|
+
},
|
14356
|
+
{
|
14357
|
+
"disabled": false,
|
14358
|
+
"document": "变量名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
14359
|
+
"example": "TimeID",
|
14360
|
+
"member": "string",
|
14361
|
+
"name": "VarName",
|
14362
|
+
"output_required": false,
|
14363
|
+
"required": false,
|
14364
|
+
"type": "string",
|
14365
|
+
"value_allowed_null": true
|
14366
|
+
},
|
14367
|
+
{
|
14368
|
+
"disabled": false,
|
14369
|
+
"document": "变量描述(默认为\"-\")",
|
14370
|
+
"example": "发票类型包括纸质和电子",
|
14371
|
+
"member": "string",
|
14372
|
+
"name": "VarDesc",
|
14373
|
+
"output_required": false,
|
14374
|
+
"required": false,
|
14375
|
+
"type": "string",
|
14376
|
+
"value_allowed_null": false
|
14377
|
+
},
|
14378
|
+
{
|
14379
|
+
"disabled": false,
|
14380
|
+
"document": "变量类型 (STRING,INT,FLOAT,BOOL,OBJECT,ARRAY_STRING,ARRAY_INT,ARRAY_FLOAT,ARRAY_BOOL,ARRAY_OBJECT,FILE,DOCUMENT,IMAGE,AUDIO)\n",
|
14381
|
+
"example": "STRING",
|
14382
|
+
"member": "string",
|
14383
|
+
"name": "VarType",
|
14384
|
+
"output_required": false,
|
14385
|
+
"required": false,
|
14386
|
+
"type": "string",
|
14387
|
+
"value_allowed_null": false
|
14388
|
+
}
|
14389
|
+
],
|
14390
|
+
"usage": "both"
|
14391
|
+
},
|
14172
14392
|
"TaskFlowInfo": {
|
14173
14393
|
"document": "任务流程信息",
|
14174
14394
|
"members": [
|
@@ -96,6 +96,14 @@
|
|
96
96
|
"title": "创建发布"
|
97
97
|
}
|
98
98
|
],
|
99
|
+
"CreateVar": [
|
100
|
+
{
|
101
|
+
"document": "创建变量",
|
102
|
+
"input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateVar\n<公共请求参数>\n\n{\n \"AppBizId\": \"1793260396881641472\",\n \"VarName\": \"TimeID\",\n \"VarDesc\": \"这个参数要来传时间\",\n \"VarType\": \"STRING\"\n}",
|
103
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"aa7b90b3-bca5-4666-8bb8-e76b0374137c\",\n \"VarId\": \"55127e9e-6e9e-4c11-bcf8-b524959cd841\"\n }\n}",
|
104
|
+
"title": "创建变量"
|
105
|
+
}
|
106
|
+
],
|
99
107
|
"DeleteApp": [
|
100
108
|
{
|
101
109
|
"document": "删除应用",
|
@@ -422,6 +430,14 @@
|
|
422
430
|
"title": "获取任务状态"
|
423
431
|
}
|
424
432
|
],
|
433
|
+
"GetVarList": [
|
434
|
+
{
|
435
|
+
"document": "获取应用下的变量列表",
|
436
|
+
"input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetVarList\n<公共请求参数>\n\n{\n \"AppBizId\": \"1793260396881641472\"\n}",
|
437
|
+
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"VarId\": \"55127e9e-6e9e-4c11-bcf8-b524959cd841\",\n \"VarName\": \"TimeIDUpdate\",\n \"VarDesc\": \"时间ID描述\",\n \"VarType\": \"STRING\"\n },\n {\n \"VarId\": \"d125c28b-55db-4478-9066-6115ab97ee17\",\n \"VarName\": \"UserID\",\n \"VarDesc\": \"用户ID描述\",\n \"VarType\": \"STRING\"\n }\n ],\n \"RequestId\": \"925208e7-46fa-43b3-a429-ddcbccad24f6\",\n \"Total\": 2\n }\n}",
|
438
|
+
"title": "获取应用下的变量列表"
|
439
|
+
}
|
440
|
+
],
|
425
441
|
"GetWsToken": [
|
426
442
|
{
|
427
443
|
"document": "获取 WS Token",
|
@@ -1869,6 +1869,7 @@
|
|
1869
1869
|
"example": "1",
|
1870
1870
|
"member": "int64",
|
1871
1871
|
"name": "FlowId",
|
1872
|
+
"output_required": true,
|
1872
1873
|
"type": "int",
|
1873
1874
|
"value_allowed_null": false
|
1874
1875
|
},
|
@@ -2712,7 +2713,7 @@
|
|
2712
2713
|
},
|
2713
2714
|
{
|
2714
2715
|
"disabled": false,
|
2715
|
-
"document": "
|
2716
|
+
"document": "根据版本号查询参数模板,具体支持的售卖版本,请参见[DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567)查询云数据库的售卖规格的返回结果。参数与版本对应关系如下所示:\n- MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本。\n- MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本。\n- MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。",
|
2716
2717
|
"example": "[\"MONGO_42_WT\"]",
|
2717
2718
|
"member": "string",
|
2718
2719
|
"name": "MongoVersion",
|
@@ -3415,7 +3416,7 @@
|
|
3415
3416
|
{
|
3416
3417
|
"disabled": false,
|
3417
3418
|
"document": "密钥 ID。若不设置该参数,不指定具体的密钥 ID,由腾讯云自动生成密钥。",
|
3418
|
-
"example": "
|
3419
|
+
"example": "AKIDnRsa6OfiW8**********************",
|
3419
3420
|
"member": "string",
|
3420
3421
|
"name": "KeyId",
|
3421
3422
|
"required": false,
|
@@ -5150,7 +5151,7 @@
|
|
5150
5151
|
},
|
5151
5152
|
{
|
5152
5153
|
"disabled": false,
|
5153
|
-
"document": "实例变更后mongod的节点数(不包含readonly节点数)。\n- 变更mongod CPU与内存规格时,该参数可以不配置或者输入当前 mongod(不包含readonly) 节点数量。\n- 变更 mongos CPU与内存规格时,该参数可以不配置或者输入当前 mongod(不包含readonly) 节点数量。\n- 节点变更时(全部类型),该参数可不配置或输入变更后的 mongod(不包含
|
5154
|
+
"document": "实例变更后mongod的节点数(不包含readonly节点数)。\n- 变更mongod CPU与内存规格时,该参数可以不配置或者输入当前 mongod(不包含readonly) 节点数量。\n- 变更 mongos CPU与内存规格时,该参数可以不配置或者输入当前 mongod(不包含readonly) 节点数量。\n- 节点变更时(全部类型),该参数可不配置或输入变更后的 mongod(不包含readonly) 节点数量。\n- 副本集节点数:请确认节点数量取值范围,通过云数据库的售卖规格 [DescribeSpecInfo ](https://cloud.tencent.com/document/product/240/38565)接口返回的参数 MinNodeNum 与 MaxNodeNum 获取。\n- 分片集群每个分片节点数:请确认节点数量取值范围,通过云数据库的售卖规格 [DescribeSpecInfo ](https://cloud.tencent.com/document/product/240/38565)接口返回的参数 MinReplicateSetNodeNum 与 MaxReplicateSetNodeNum 获取。",
|
5154
5155
|
"example": "3",
|
5155
5156
|
"member": "uint64",
|
5156
5157
|
"name": "NodeNum",
|
@@ -58,10 +58,10 @@
|
|
58
58
|
],
|
59
59
|
"DeleteAccountUser": [
|
60
60
|
{
|
61
|
-
"document": "
|
61
|
+
"document": "删除实例账号",
|
62
62
|
"input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAccountUser\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-9d0p****\",\n \"UserName\": \"test_user\",\n \"MongoUserPassword\": \"Abc@123\"\n}",
|
63
63
|
"output": "{\n \"Response\": {\n \"FlowId\": 0,\n \"RequestId\": \"1df930fb-eb7e-4e3f-bcab-15a1aa5fede0\"\n }\n}",
|
64
|
-
"title": "
|
64
|
+
"title": "删除实例账号"
|
65
65
|
}
|
66
66
|
],
|
67
67
|
"DescribeAccountUsers": [
|
@@ -317,7 +317,7 @@
|
|
317
317
|
"CreatePrometheusTemp": [
|
318
318
|
{
|
319
319
|
"document": "创建一个模板",
|
320
|
-
"input": "https://monitor.tencentcloudapi.com/?Action=CreatePrometheusTemp\n&Template.Name=t1\n&Template.Describe=一个模板\n&Template.ServiceMonitors.0.Name=
|
320
|
+
"input": "https://monitor.tencentcloudapi.com/?Action=CreatePrometheusTemp\n&Template.Name=t1\n&Template.Describe=一个模板\n&Template.ServiceMonitors.0.Name=name\n&Template.ServiceMonitors.0.Config=config\n&Template.Level=cluster\n&<公共请求参数>\n\n{\n \"Template\": {\n \"Name\": \"test\",\n \"Describe\": \"test\",\n \"Level\": \"instance\",\n \"RecordRules\": [\n {\n \"Name\": \"testRule\",\n \"Config\": \"abc\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"RawJobs\": [\n {\n \"Name\": \"abc\",\n \"Config\": \"abc\",\n \"TemplateId\": \"abc\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"ServiceMonitors\": [\n {\n \"Name\": \"test-sm\",\n \"Config\": \"abc\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"PodMonitors\": [\n {\n \"Name\": \"test-pm\",\n \"Config\": \"abc\",\n \"TemplateId\": \"temp-asdj\",\n \"Targets\": {\n \"Total\": 1,\n \"Up\": 1,\n \"Down\": 1,\n \"Unknown\": 1\n }\n }\n ],\n \"TemplateId\": \"temp-asdj\",\n \"UpdateTime\": \"2024-07-16T08:28:54Z\",\n \"Version\": \"v1\",\n \"IsDefault\": true,\n \"AlertDetailRules\": [\n {\n \"Id\": \"rule-asdk\",\n \"Name\": \"testAlert\",\n \"TemplateId\": \"temp-asdj\",\n \"Notification\": {\n \"Enabled\": true,\n \"Type\": \"amp\",\n \"WebHook\": \"abc\",\n \"AlertManager\": {\n \"ClusterType\": \"tke\",\n \"ClusterId\": \"cls-askj\",\n \"Url\": \"http://asasdkfh:9000\"\n },\n \"RepeatInterval\": \"5m\",\n \"TimeRangeStart\": \"00:00:00\",\n \"TimeRangeEnd\": \"23:59:59\",\n \"NotifyWay\": [\n \"abc\"\n ],\n \"ReceiverGroups\": [\n \"notice-yakj\"\n ],\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneCircleTimes\": 0,\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"PhoneArriveNotice\": true\n },\n \"Rules\": [\n {\n \"Name\": \"rule-ajdb\",\n \"Rule\": \"avg by (abc) skdj\",\n \"Labels\": [\n {\n \"Name\": \"label-name\",\n \"Value\": \"label-value\"\n }\n ],\n \"Template\": \"temp-asdj\",\n \"For\": \"5m\",\n \"Describe\": \"test-temp\",\n \"Annotations\": [\n {\n \"Name\": \"label-name\",\n \"Value\": \"label-value\"\n }\n ],\n \"RuleState\": 0\n }\n ],\n \"UpdatedAt\": \"2024-07-16 16:28:54\",\n \"ClusterId\": \"cls-djfb\",\n \"Interval\": \"5m\"\n }\n ],\n \"TargetsTotal\": 0\n }\n}",
|
321
321
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"TemplateId\": \"temp-lejrh\"\n }\n}",
|
322
322
|
"title": "创建一个模板"
|
323
323
|
}
|
@@ -838,7 +838,7 @@
|
|
838
838
|
{
|
839
839
|
"document": "查询实例告警列表",
|
840
840
|
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-as3d2s1a\",\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Name\": \"Name\",\n \"Values\": [\n \"alert-test\"\n ]\n }\n ],\n \"Offset\": 0\n}",
|
841
|
-
"output": "{\n \"Response\": {\n \"AlertRules\": [\n {\n \"Id\": \"alert-23a6d2ga\",\n \"Name\": \"alert-test\",\n \"TemplateId\": \"temp-as12sf12\",\n \"ClusterId\": \"\",\n \"Notification\": {\n \"Enabled\": true,\n \"Type\": \"amp\",\n \"RepeatInterval\": \"5m\",\n \"TimeRangeStart\": \"0:00:00\",\n \"TimeRangeEnd\": \"23:59:59\",\n \"ReceiverGroups\": [\n \"notice-13hs61s2\"\n ],\n \"WebHook\": \"http://127.0.0.1:9090/alert\",\n \"AlertManager\": {\n \"ClusterType\": \"tke\",\n \"ClusterId\": \"cls-a2df21xa\",\n \"Url\": \"http://127.0.0.1:9090\"\n },\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneCircleTimes\": 0,\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"PhoneArriveNotice\": true,\n \"NotifyWay\": [\n \"
|
841
|
+
"output": "{\n \"Response\": {\n \"AlertRules\": [\n {\n \"Id\": \"alert-23a6d2ga\",\n \"Name\": \"alert-test\",\n \"TemplateId\": \"temp-as12sf12\",\n \"ClusterId\": \"\",\n \"Notification\": {\n \"Enabled\": true,\n \"Type\": \"amp\",\n \"RepeatInterval\": \"5m\",\n \"TimeRangeStart\": \"0:00:00\",\n \"TimeRangeEnd\": \"23:59:59\",\n \"ReceiverGroups\": [\n \"notice-13hs61s2\"\n ],\n \"WebHook\": \"http://127.0.0.1:9090/alert\",\n \"AlertManager\": {\n \"ClusterType\": \"tke\",\n \"ClusterId\": \"cls-a2df21xa\",\n \"Url\": \"http://127.0.0.1:9090\"\n },\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneCircleTimes\": 0,\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"PhoneArriveNotice\": true,\n \"NotifyWay\": [\n \"notify\"\n ]\n },\n \"Rules\": [\n {\n \"Name\": \"rule-1\",\n \"Rule\": \"up{} != 1\",\n \"Labels\": [\n {\n \"Name\": \"level\",\n \"Value\": \"warnning\"\n }\n ],\n \"Template\": \"test alert\",\n \"For\": \"5m\",\n \"Describe\": \"test alert\",\n \"Annotations\": [\n {\n \"Name\": \"creator\",\n \"Value\": \"programer\"\n }\n ],\n \"RuleState\": 1\n }\n ],\n \"UpdatedAt\": \"2024-07-21 18:10:14\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"3f04883c-eda1-4498-b024-d266baec6040\"\n }\n}",
|
842
842
|
"title": "查询实例告警列表"
|
843
843
|
}
|
844
844
|
],
|