tccli 3.0.1184.1__py2.py3-none-any.whl → 3.0.1185.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/bi/v20220105/api.json +9 -0
- tccli/services/cdb/v20170320/api.json +2 -2
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cynosdb/cynosdb_client.py +65 -12
- tccli/services/cynosdb/v20190107/api.json +99 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dlc/v20210125/api.json +48 -11
- tccli/services/dlc/v20210125/examples.json +4 -4
- tccli/services/dsgc/v20190723/api.json +9 -0
- tccli/services/ecc/v20181213/api.json +14 -12
- tccli/services/ecc/v20181213/examples.json +3 -3
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/redis/v20180412/api.json +18 -13
- tccli/services/redis/v20180412/examples.json +2 -2
- tccli/services/tcr/v20190924/api.json +3 -3
- tccli/services/tcr/v20190924/examples.json +1 -1
- tccli/services/thpc/thpc_client.py +227 -68
- tccli/services/thpc/v20230321/api.json +313 -0
- tccli/services/thpc/v20230321/examples.json +24 -0
- tccli/services/waf/v20180125/api.json +3 -3
- tccli/services/waf/v20180125/examples.json +1 -1
- {tccli-3.0.1184.1.dist-info → tccli-3.0.1185.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1184.1.dist-info → tccli-3.0.1185.1.dist-info}/RECORD +29 -29
- {tccli-3.0.1184.1.dist-info → tccli-3.0.1185.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1184.1.dist-info → tccli-3.0.1185.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1184.1.dist-info → tccli-3.0.1185.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1185.1'
|
@@ -3788,6 +3788,15 @@
|
|
3788
3788
|
"name": "AppUserId",
|
3789
3789
|
"required": false,
|
3790
3790
|
"type": "string"
|
3791
|
+
},
|
3792
|
+
{
|
3793
|
+
"disabled": false,
|
3794
|
+
"document": "是否开启手机验证码登录(0 关闭,1 开启)",
|
3795
|
+
"example": "无",
|
3796
|
+
"member": "int64",
|
3797
|
+
"name": "LoginSecurityStatus",
|
3798
|
+
"required": false,
|
3799
|
+
"type": "int"
|
3791
3800
|
}
|
3792
3801
|
],
|
3793
3802
|
"type": "object"
|
@@ -3046,7 +3046,7 @@
|
|
3046
3046
|
},
|
3047
3047
|
{
|
3048
3048
|
"disabled": false,
|
3049
|
-
"document": "存储方式,0-常规存储,1
|
3049
|
+
"document": "存储方式,0-常规存储,1-归档存储,2-标准存储,默认为0",
|
3050
3050
|
"example": "无",
|
3051
3051
|
"member": "int64",
|
3052
3052
|
"name": "CosStorageType",
|
@@ -3387,7 +3387,7 @@
|
|
3387
3387
|
},
|
3388
3388
|
{
|
3389
3389
|
"disabled": false,
|
3390
|
-
"document": "存储方式,0-常规存储,1
|
3390
|
+
"document": "存储方式,0-常规存储,1-归档存储,2-标准存储,默认为0",
|
3391
3391
|
"example": "无",
|
3392
3392
|
"member": "int64",
|
3393
3393
|
"name": "CosStorageType",
|
@@ -14107,7 +14107,7 @@
|
|
14107
14107
|
},
|
14108
14108
|
{
|
14109
14109
|
"disabled": false,
|
14110
|
-
"document": "日志主题id所在的地域id。\n\nid,地域,简称信息如下:\n- 1, 广州,ap-guangzhou\n- 4, 上海,ap-shanghai\n- 5, 中国香港,ap-hongkong\n-
|
14110
|
+
"document": "日志主题id所在的地域id。\n\nid,地域,简称信息如下:\n- 1, 广州,ap-guangzhou\n- 4, 上海,ap-shanghai\n- 5, 中国香港,ap-hongkong\n- 7, 上海金融,ap-shanghai-fsi\n- 8, 北京,ap-beijing\n- 9, 新加坡,ap-singapore\n- 11, 深圳金融,ap-shenzhen-fsi\n- 15, 硅谷,na-siliconvalley\n- 16, 成都,ap-chengdu\n- 17, 法兰克福,eu-frankfurt\n- 18, 首尔,ap-seoul\n- 19, 重庆,ap-chongqing\n- 21, 孟买,ap-mumbai\n- 22, 弗吉尼亚,na-ashburn\n- 23, 曼谷,ap-bangkok\n- 25, 东京,ap-tokyo\n- 33, 南京,ap-nanjing\n- 46, 北京金融,ap-beijing-fsi\n- 72, 雅加达,ap-jakarta\n- 74, 圣保罗,sa-saopaulo",
|
14111
14111
|
"example": "19",
|
14112
14112
|
"member": "uint64",
|
14113
14113
|
"name": "RegionId",
|
@@ -1369,6 +1369,58 @@ def doDisassociateSecurityGroups(args, parsed_globals):
|
|
1369
1369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
1370
|
|
1371
1371
|
|
1372
|
+
def doOpenReadOnlyInstanceExclusiveAccess(args, parsed_globals):
|
1373
|
+
g_param = parse_global_arg(parsed_globals)
|
1374
|
+
|
1375
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1376
|
+
cred = credential.CVMRoleCredential()
|
1377
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1378
|
+
cred = credential.STSAssumeRoleCredential(
|
1379
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1380
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1381
|
+
)
|
1382
|
+
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):
|
1383
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1384
|
+
else:
|
1385
|
+
cred = credential.Credential(
|
1386
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1387
|
+
)
|
1388
|
+
http_profile = HttpProfile(
|
1389
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1390
|
+
reqMethod="POST",
|
1391
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1392
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1393
|
+
)
|
1394
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1395
|
+
if g_param[OptionsDefine.Language]:
|
1396
|
+
profile.language = g_param[OptionsDefine.Language]
|
1397
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1398
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1400
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
+
model = models.OpenReadOnlyInstanceExclusiveAccessRequest()
|
1402
|
+
model.from_json_string(json.dumps(args))
|
1403
|
+
start_time = time.time()
|
1404
|
+
while True:
|
1405
|
+
rsp = client.OpenReadOnlyInstanceExclusiveAccess(model)
|
1406
|
+
result = rsp.to_json_string()
|
1407
|
+
try:
|
1408
|
+
json_obj = json.loads(result)
|
1409
|
+
except TypeError as e:
|
1410
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1411
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1412
|
+
break
|
1413
|
+
cur_time = time.time()
|
1414
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1415
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1416
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1417
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1418
|
+
else:
|
1419
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1420
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1421
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
|
+
|
1423
|
+
|
1372
1424
|
def doExportInstanceSlowQueries(args, parsed_globals):
|
1373
1425
|
g_param = parse_global_arg(parsed_globals)
|
1374
1426
|
|
@@ -5425,7 +5477,7 @@ def doReloadBalanceProxyNode(args, parsed_globals):
|
|
5425
5477
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5426
5478
|
|
5427
5479
|
|
5428
|
-
def
|
5480
|
+
def doDescribeIsolatedInstances(args, parsed_globals):
|
5429
5481
|
g_param = parse_global_arg(parsed_globals)
|
5430
5482
|
|
5431
5483
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5454,11 +5506,11 @@ def doOfflineCluster(args, parsed_globals):
|
|
5454
5506
|
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
5455
5507
|
client._sdkVersion += ("_CLI_" + __version__)
|
5456
5508
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5457
|
-
model = models.
|
5509
|
+
model = models.DescribeIsolatedInstancesRequest()
|
5458
5510
|
model.from_json_string(json.dumps(args))
|
5459
5511
|
start_time = time.time()
|
5460
5512
|
while True:
|
5461
|
-
rsp = client.
|
5513
|
+
rsp = client.DescribeIsolatedInstances(model)
|
5462
5514
|
result = rsp.to_json_string()
|
5463
5515
|
try:
|
5464
5516
|
json_obj = json.loads(result)
|
@@ -6049,7 +6101,7 @@ def doModifyBackupConfig(args, parsed_globals):
|
|
6049
6101
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6050
6102
|
|
6051
6103
|
|
6052
|
-
def
|
6104
|
+
def doOfflineCluster(args, parsed_globals):
|
6053
6105
|
g_param = parse_global_arg(parsed_globals)
|
6054
6106
|
|
6055
6107
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6078,11 +6130,11 @@ def doDescribeInstances(args, parsed_globals):
|
|
6078
6130
|
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
6079
6131
|
client._sdkVersion += ("_CLI_" + __version__)
|
6080
6132
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6081
|
-
model = models.
|
6133
|
+
model = models.OfflineClusterRequest()
|
6082
6134
|
model.from_json_string(json.dumps(args))
|
6083
6135
|
start_time = time.time()
|
6084
6136
|
while True:
|
6085
|
-
rsp = client.
|
6137
|
+
rsp = client.OfflineCluster(model)
|
6086
6138
|
result = rsp.to_json_string()
|
6087
6139
|
try:
|
6088
6140
|
json_obj = json.loads(result)
|
@@ -7037,7 +7089,7 @@ def doDescribeAccountAllGrantPrivileges(args, parsed_globals):
|
|
7037
7089
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7038
7090
|
|
7039
7091
|
|
7040
|
-
def
|
7092
|
+
def doDescribeInstances(args, parsed_globals):
|
7041
7093
|
g_param = parse_global_arg(parsed_globals)
|
7042
7094
|
|
7043
7095
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -7066,11 +7118,11 @@ def doOpenReadOnlyInstanceExclusiveAccess(args, parsed_globals):
|
|
7066
7118
|
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
7067
7119
|
client._sdkVersion += ("_CLI_" + __version__)
|
7068
7120
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7069
|
-
model = models.
|
7121
|
+
model = models.DescribeInstancesRequest()
|
7070
7122
|
model.from_json_string(json.dumps(args))
|
7071
7123
|
start_time = time.time()
|
7072
7124
|
while True:
|
7073
|
-
rsp = client.
|
7125
|
+
rsp = client.DescribeInstances(model)
|
7074
7126
|
result = rsp.to_json_string()
|
7075
7127
|
try:
|
7076
7128
|
json_obj = json.loads(result)
|
@@ -7750,6 +7802,7 @@ ACTION_MAP = {
|
|
7750
7802
|
"ActivateInstance": doActivateInstance,
|
7751
7803
|
"DescribeProxyNodes": doDescribeProxyNodes,
|
7752
7804
|
"DisassociateSecurityGroups": doDisassociateSecurityGroups,
|
7805
|
+
"OpenReadOnlyInstanceExclusiveAccess": doOpenReadOnlyInstanceExclusiveAccess,
|
7753
7806
|
"ExportInstanceSlowQueries": doExportInstanceSlowQueries,
|
7754
7807
|
"DeleteCLSDelivery": doDeleteCLSDelivery,
|
7755
7808
|
"DescribeChangedParamsAfterUpgrade": doDescribeChangedParamsAfterUpgrade,
|
@@ -7828,7 +7881,7 @@ ACTION_MAP = {
|
|
7828
7881
|
"InquirePriceRenew": doInquirePriceRenew,
|
7829
7882
|
"StartCLSDelivery": doStartCLSDelivery,
|
7830
7883
|
"ReloadBalanceProxyNode": doReloadBalanceProxyNode,
|
7831
|
-
"
|
7884
|
+
"DescribeIsolatedInstances": doDescribeIsolatedInstances,
|
7832
7885
|
"ModifyAuditRuleTemplates": doModifyAuditRuleTemplates,
|
7833
7886
|
"StopCLSDelivery": doStopCLSDelivery,
|
7834
7887
|
"DescribeBackupList": doDescribeBackupList,
|
@@ -7840,7 +7893,7 @@ ACTION_MAP = {
|
|
7840
7893
|
"DescribeAuditRuleTemplates": doDescribeAuditRuleTemplates,
|
7841
7894
|
"DescribeResourcePackageDetail": doDescribeResourcePackageDetail,
|
7842
7895
|
"ModifyBackupConfig": doModifyBackupConfig,
|
7843
|
-
"
|
7896
|
+
"OfflineCluster": doOfflineCluster,
|
7844
7897
|
"DescribeParamTemplateDetail": doDescribeParamTemplateDetail,
|
7845
7898
|
"UpgradeClusterVersion": doUpgradeClusterVersion,
|
7846
7899
|
"SearchClusterDatabases": doSearchClusterDatabases,
|
@@ -7859,7 +7912,7 @@ ACTION_MAP = {
|
|
7859
7912
|
"CreateCLSDelivery": doCreateCLSDelivery,
|
7860
7913
|
"ModifyBinlogSaveDays": doModifyBinlogSaveDays,
|
7861
7914
|
"DescribeAccountAllGrantPrivileges": doDescribeAccountAllGrantPrivileges,
|
7862
|
-
"
|
7915
|
+
"DescribeInstances": doDescribeInstances,
|
7863
7916
|
"DescribeClusterPasswordComplexity": doDescribeClusterPasswordComplexity,
|
7864
7917
|
"DeleteParamTemplate": doDeleteParamTemplate,
|
7865
7918
|
"UpgradeInstance": doUpgradeInstance,
|
@@ -434,6 +434,13 @@
|
|
434
434
|
"output": "DescribeInstancesResponse",
|
435
435
|
"status": "online"
|
436
436
|
},
|
437
|
+
"DescribeIsolatedInstances": {
|
438
|
+
"document": "本接口(DescribeIsolatedInstances)用于查询回收站实例列表。",
|
439
|
+
"input": "DescribeIsolatedInstancesRequest",
|
440
|
+
"name": "查询回收站实例列表",
|
441
|
+
"output": "DescribeIsolatedInstancesResponse",
|
442
|
+
"status": "online"
|
443
|
+
},
|
437
444
|
"DescribeMaintainPeriod": {
|
438
445
|
"document": "查询实例维护时间窗",
|
439
446
|
"input": "DescribeMaintainPeriodRequest",
|
@@ -10436,6 +10443,98 @@
|
|
10436
10443
|
],
|
10437
10444
|
"type": "object"
|
10438
10445
|
},
|
10446
|
+
"DescribeIsolatedInstancesRequest": {
|
10447
|
+
"document": "DescribeIsolatedInstances请求参数结构体",
|
10448
|
+
"members": [
|
10449
|
+
{
|
10450
|
+
"disabled": false,
|
10451
|
+
"document": "返回数量,默认为 20,最大值为 100",
|
10452
|
+
"example": "20",
|
10453
|
+
"member": "int64",
|
10454
|
+
"name": "Limit",
|
10455
|
+
"required": false,
|
10456
|
+
"type": "int"
|
10457
|
+
},
|
10458
|
+
{
|
10459
|
+
"disabled": false,
|
10460
|
+
"document": "记录偏移量,默认值为0",
|
10461
|
+
"example": "0",
|
10462
|
+
"member": "int64",
|
10463
|
+
"name": "Offset",
|
10464
|
+
"required": false,
|
10465
|
+
"type": "int"
|
10466
|
+
},
|
10467
|
+
{
|
10468
|
+
"disabled": false,
|
10469
|
+
"document": "排序字段,取值范围:\n<li> CREATETIME:创建时间</li>\n<li> PERIODENDTIME:过期时间</li>",
|
10470
|
+
"example": "CREATETIME",
|
10471
|
+
"member": "string",
|
10472
|
+
"name": "OrderBy",
|
10473
|
+
"required": false,
|
10474
|
+
"type": "string"
|
10475
|
+
},
|
10476
|
+
{
|
10477
|
+
"disabled": false,
|
10478
|
+
"document": "排序类型,取值范围:\n<li> ASC:升序排序 </li>\n<li> DESC:降序排序 </li>",
|
10479
|
+
"example": "ASC",
|
10480
|
+
"member": "string",
|
10481
|
+
"name": "OrderByType",
|
10482
|
+
"required": false,
|
10483
|
+
"type": "string"
|
10484
|
+
},
|
10485
|
+
{
|
10486
|
+
"disabled": false,
|
10487
|
+
"document": "搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。",
|
10488
|
+
"example": "无",
|
10489
|
+
"member": "QueryFilter",
|
10490
|
+
"name": "Filters",
|
10491
|
+
"required": false,
|
10492
|
+
"type": "list"
|
10493
|
+
},
|
10494
|
+
{
|
10495
|
+
"disabled": false,
|
10496
|
+
"document": "引擎类型:目前支持“MYSQL”, “POSTGRESQL”",
|
10497
|
+
"example": "MYSQL",
|
10498
|
+
"member": "string",
|
10499
|
+
"name": "DbType",
|
10500
|
+
"required": false,
|
10501
|
+
"type": "string"
|
10502
|
+
}
|
10503
|
+
],
|
10504
|
+
"type": "object"
|
10505
|
+
},
|
10506
|
+
"DescribeIsolatedInstancesResponse": {
|
10507
|
+
"document": "DescribeIsolatedInstances返回参数结构体",
|
10508
|
+
"members": [
|
10509
|
+
{
|
10510
|
+
"disabled": false,
|
10511
|
+
"document": "实例个数",
|
10512
|
+
"example": "1",
|
10513
|
+
"member": "int64",
|
10514
|
+
"name": "TotalCount",
|
10515
|
+
"output_required": true,
|
10516
|
+
"type": "int",
|
10517
|
+
"value_allowed_null": false
|
10518
|
+
},
|
10519
|
+
{
|
10520
|
+
"disabled": false,
|
10521
|
+
"document": "实例列表",
|
10522
|
+
"example": "无",
|
10523
|
+
"member": "CynosdbInstance",
|
10524
|
+
"name": "InstanceSet",
|
10525
|
+
"output_required": true,
|
10526
|
+
"type": "list",
|
10527
|
+
"value_allowed_null": false
|
10528
|
+
},
|
10529
|
+
{
|
10530
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
10531
|
+
"member": "string",
|
10532
|
+
"name": "RequestId",
|
10533
|
+
"type": "string"
|
10534
|
+
}
|
10535
|
+
],
|
10536
|
+
"type": "object"
|
10537
|
+
},
|
10439
10538
|
"DescribeMaintainPeriodRequest": {
|
10440
10539
|
"document": "DescribeMaintainPeriod请求参数结构体",
|
10441
10540
|
"members": [
|
@@ -514,6 +514,14 @@
|
|
514
514
|
"title": "查询实例列表"
|
515
515
|
}
|
516
516
|
],
|
517
|
+
"DescribeIsolatedInstances": [
|
518
|
+
{
|
519
|
+
"document": "",
|
520
|
+
"input": "https://cynosdb.tencentcloudapi.com/?Action=DescribeIsolatedInstances\n&Limit=20\n&Offset=0\n&Filters.0.Names.0=InstanceId\n&Filters.0.Values.0=cynosdbpg-ins-bzkxxrmt\n&DbType=MYSQL\n&<公共请求参数>",
|
521
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"InstanceSet\": [\n {\n \"Uin\": \"abc\",\n \"AppId\": 0,\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\",\n \"ProjectId\": 0,\n \"Region\": \"abc\",\n \"Zone\": \"abc\",\n \"Status\": \"abc\",\n \"StatusDesc\": \"abc\",\n \"DbMode\": \"abc\",\n \"DbType\": \"abc\",\n \"DbVersion\": \"abc\",\n \"Cpu\": 0,\n \"Memory\": 0,\n \"Storage\": 0,\n \"InstanceType\": \"abc\",\n \"InstanceRole\": \"abc\",\n \"UpdateTime\": \"2020-09-22 00:00:00\",\n \"CreateTime\": \"2020-09-22 00:00:00\",\n \"VpcId\": \"abc\",\n \"SubnetId\": \"abc\",\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"PayMode\": 0,\n \"PeriodEndTime\": \"2020-09-22 00:00:00\",\n \"DestroyDeadlineText\": \"abc\",\n \"IsolateTime\": \"2020-09-22 00:00:00\",\n \"NetType\": 0,\n \"WanDomain\": \"abc\",\n \"WanIP\": \"abc\",\n \"WanPort\": 0,\n \"WanStatus\": \"abc\",\n \"DestroyTime\": \"abc\",\n \"CynosVersion\": \"abc\",\n \"ProcessingTask\": \"abc\",\n \"RenewFlag\": 0,\n \"MinCpu\": 0,\n \"MaxCpu\": 0,\n \"ServerlessStatus\": \"abc\",\n \"StorageId\": \"abc\",\n \"StoragePayMode\": 0,\n \"PhysicalZone\": \"abc\",\n \"BusinessType\": \"abc\",\n \"Tasks\": [\n {\n \"TaskId\": 0,\n \"TaskType\": \"abc\",\n \"TaskStatus\": \"abc\",\n \"ObjectId\": \"abc\",\n \"ObjectType\": \"abc\"\n }\n ],\n \"IsFreeze\": \"abc\",\n \"ResourceTags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"MasterZone\": \"abc\",\n \"SlaveZones\": [\n \"abc\"\n ],\n \"InstanceNetInfo\": [\n {\n \"InstanceGroupType\": \"abc\",\n \"InstanceGroupId\": \"abc\",\n \"VpcId\": \"abc\",\n \"SubnetId\": \"abc\",\n \"NetType\": 0,\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"WanDomain\": \"abc\",\n \"WanIP\": \"abc\",\n \"WanPort\": 0,\n \"WanStatus\": \"abc\"\n }\n ],\n \"ResourcePackages\": [\n {\n \"PackageId\": \"abc\",\n \"PackageType\": \"abc\",\n \"DeductionPriority\": 0\n }\n ],\n \"InstanceIndexMode\": \"abc\",\n \"InstanceAbility\": {\n \"IsSupportForceRestart\": \"abc\",\n \"NonsupportForceRestartReason\": \"abc\"\n },\n \"DeviceType\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
522
|
+
"title": "查询回收站实例列表"
|
523
|
+
}
|
524
|
+
],
|
517
525
|
"DescribeMaintainPeriod": [
|
518
526
|
{
|
519
527
|
"document": "",
|
@@ -1602,6 +1602,16 @@
|
|
1602
1602
|
"AssignMangedTablePropertiesResponse": {
|
1603
1603
|
"document": "AssignMangedTableProperties返回参数结构体",
|
1604
1604
|
"members": [
|
1605
|
+
{
|
1606
|
+
"disabled": false,
|
1607
|
+
"document": "分配的原生表表属性",
|
1608
|
+
"example": "无",
|
1609
|
+
"member": "Property",
|
1610
|
+
"name": "Properties",
|
1611
|
+
"output_required": true,
|
1612
|
+
"type": "list",
|
1613
|
+
"value_allowed_null": false
|
1614
|
+
},
|
1605
1615
|
{
|
1606
1616
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1607
1617
|
"member": "string",
|
@@ -11064,7 +11074,7 @@
|
|
11064
11074
|
},
|
11065
11075
|
{
|
11066
11076
|
"disabled": false,
|
11067
|
-
"document": "
|
11077
|
+
"document": "必传字段,查询的信息类型,Group:工作组 DataAuth:数据权限 EngineAuth:引擎权限 RowFilter:行级别权限",
|
11068
11078
|
"example": "Group",
|
11069
11079
|
"member": "string",
|
11070
11080
|
"name": "Type",
|
@@ -11128,7 +11138,7 @@
|
|
11128
11138
|
"example": "无",
|
11129
11139
|
"member": "UserDetailInfo",
|
11130
11140
|
"name": "UserInfo",
|
11131
|
-
"
|
11141
|
+
"output_required": true,
|
11132
11142
|
"type": "object",
|
11133
11143
|
"value_allowed_null": true
|
11134
11144
|
},
|
@@ -14632,6 +14642,7 @@
|
|
14632
14642
|
"example": "test_database",
|
14633
14643
|
"member": "string",
|
14634
14644
|
"name": "Database",
|
14645
|
+
"output_required": true,
|
14635
14646
|
"required": true,
|
14636
14647
|
"type": "string",
|
14637
14648
|
"value_allowed_null": false
|
@@ -14642,6 +14653,7 @@
|
|
14642
14653
|
"example": "DataLakeCatalog",
|
14643
14654
|
"member": "string",
|
14644
14655
|
"name": "Catalog",
|
14656
|
+
"output_required": true,
|
14645
14657
|
"required": true,
|
14646
14658
|
"type": "string",
|
14647
14659
|
"value_allowed_null": false
|
@@ -14652,6 +14664,7 @@
|
|
14652
14664
|
"example": "test_table",
|
14653
14665
|
"member": "string",
|
14654
14666
|
"name": "Table",
|
14667
|
+
"output_required": true,
|
14655
14668
|
"required": true,
|
14656
14669
|
"type": "string",
|
14657
14670
|
"value_allowed_null": false
|
@@ -14662,6 +14675,7 @@
|
|
14662
14675
|
"example": "ALL",
|
14663
14676
|
"member": "string",
|
14664
14677
|
"name": "Operation",
|
14678
|
+
"output_required": true,
|
14665
14679
|
"required": true,
|
14666
14680
|
"type": "string",
|
14667
14681
|
"value_allowed_null": false
|
@@ -14672,6 +14686,7 @@
|
|
14672
14686
|
"example": "ADMIN",
|
14673
14687
|
"member": "string",
|
14674
14688
|
"name": "PolicyType",
|
14689
|
+
"output_required": true,
|
14675
14690
|
"required": false,
|
14676
14691
|
"type": "string",
|
14677
14692
|
"value_allowed_null": false
|
@@ -14682,6 +14697,7 @@
|
|
14682
14697
|
"example": "fun1",
|
14683
14698
|
"member": "string",
|
14684
14699
|
"name": "Function",
|
14700
|
+
"output_required": true,
|
14685
14701
|
"required": false,
|
14686
14702
|
"type": "string",
|
14687
14703
|
"value_allowed_null": true
|
@@ -14692,6 +14708,7 @@
|
|
14692
14708
|
"example": "view1",
|
14693
14709
|
"member": "string",
|
14694
14710
|
"name": "View",
|
14711
|
+
"output_required": true,
|
14695
14712
|
"required": false,
|
14696
14713
|
"type": "string",
|
14697
14714
|
"value_allowed_null": true
|
@@ -14702,6 +14719,7 @@
|
|
14702
14719
|
"example": "column1",
|
14703
14720
|
"member": "string",
|
14704
14721
|
"name": "Column",
|
14722
|
+
"output_required": true,
|
14705
14723
|
"required": false,
|
14706
14724
|
"type": "string",
|
14707
14725
|
"value_allowed_null": true
|
@@ -14712,6 +14730,7 @@
|
|
14712
14730
|
"example": "dataEngine1",
|
14713
14731
|
"member": "string",
|
14714
14732
|
"name": "DataEngine",
|
14733
|
+
"output_required": true,
|
14715
14734
|
"required": false,
|
14716
14735
|
"type": "string",
|
14717
14736
|
"value_allowed_null": true
|
@@ -14722,6 +14741,7 @@
|
|
14722
14741
|
"example": "false",
|
14723
14742
|
"member": "bool",
|
14724
14743
|
"name": "ReAuth",
|
14744
|
+
"output_required": true,
|
14725
14745
|
"required": false,
|
14726
14746
|
"type": "bool",
|
14727
14747
|
"value_allowed_null": true
|
@@ -14732,6 +14752,7 @@
|
|
14732
14752
|
"example": "USER",
|
14733
14753
|
"member": "string",
|
14734
14754
|
"name": "Source",
|
14755
|
+
"output_required": true,
|
14735
14756
|
"required": false,
|
14736
14757
|
"type": "string",
|
14737
14758
|
"value_allowed_null": true
|
@@ -14742,6 +14763,7 @@
|
|
14742
14763
|
"example": "COMMON",
|
14743
14764
|
"member": "string",
|
14744
14765
|
"name": "Mode",
|
14766
|
+
"output_required": true,
|
14745
14767
|
"required": false,
|
14746
14768
|
"type": "string",
|
14747
14769
|
"value_allowed_null": true
|
@@ -14752,6 +14774,7 @@
|
|
14752
14774
|
"example": "12345678",
|
14753
14775
|
"member": "string",
|
14754
14776
|
"name": "Operator",
|
14777
|
+
"output_required": true,
|
14755
14778
|
"required": false,
|
14756
14779
|
"type": "string",
|
14757
14780
|
"value_allowed_null": true
|
@@ -14762,6 +14785,7 @@
|
|
14762
14785
|
"example": "2021-07-28 16:19:32",
|
14763
14786
|
"member": "string",
|
14764
14787
|
"name": "CreateTime",
|
14788
|
+
"output_required": true,
|
14765
14789
|
"required": false,
|
14766
14790
|
"type": "string",
|
14767
14791
|
"value_allowed_null": true
|
@@ -14772,6 +14796,7 @@
|
|
14772
14796
|
"example": "1",
|
14773
14797
|
"member": "int64",
|
14774
14798
|
"name": "SourceId",
|
14799
|
+
"output_required": true,
|
14775
14800
|
"required": false,
|
14776
14801
|
"type": "int",
|
14777
14802
|
"value_allowed_null": true
|
@@ -14782,6 +14807,7 @@
|
|
14782
14807
|
"example": "test_group",
|
14783
14808
|
"member": "string",
|
14784
14809
|
"name": "SourceName",
|
14810
|
+
"output_required": true,
|
14785
14811
|
"required": false,
|
14786
14812
|
"type": "string",
|
14787
14813
|
"value_allowed_null": true
|
@@ -14792,6 +14818,7 @@
|
|
14792
14818
|
"example": "1",
|
14793
14819
|
"member": "int64",
|
14794
14820
|
"name": "Id",
|
14821
|
+
"output_required": true,
|
14795
14822
|
"required": false,
|
14796
14823
|
"type": "int",
|
14797
14824
|
"value_allowed_null": true
|
@@ -18393,7 +18420,7 @@
|
|
18393
18420
|
"example": "1208763821",
|
18394
18421
|
"member": "string",
|
18395
18422
|
"name": "UserId",
|
18396
|
-
"
|
18423
|
+
"output_required": true,
|
18397
18424
|
"type": "string",
|
18398
18425
|
"value_allowed_null": true
|
18399
18426
|
},
|
@@ -18403,7 +18430,7 @@
|
|
18403
18430
|
"example": "Group",
|
18404
18431
|
"member": "string",
|
18405
18432
|
"name": "Type",
|
18406
|
-
"
|
18433
|
+
"output_required": true,
|
18407
18434
|
"type": "string",
|
18408
18435
|
"value_allowed_null": true
|
18409
18436
|
},
|
@@ -18413,7 +18440,7 @@
|
|
18413
18440
|
"example": "ADMIN",
|
18414
18441
|
"member": "string",
|
18415
18442
|
"name": "UserType",
|
18416
|
-
"
|
18443
|
+
"output_required": true,
|
18417
18444
|
"type": "string",
|
18418
18445
|
"value_allowed_null": true
|
18419
18446
|
},
|
@@ -18423,7 +18450,7 @@
|
|
18423
18450
|
"example": "testUser",
|
18424
18451
|
"member": "string",
|
18425
18452
|
"name": "UserDescription",
|
18426
|
-
"
|
18453
|
+
"output_required": true,
|
18427
18454
|
"type": "string",
|
18428
18455
|
"value_allowed_null": true
|
18429
18456
|
},
|
@@ -18433,7 +18460,7 @@
|
|
18433
18460
|
"example": "无",
|
18434
18461
|
"member": "Policys",
|
18435
18462
|
"name": "DataPolicyInfo",
|
18436
|
-
"
|
18463
|
+
"output_required": true,
|
18437
18464
|
"type": "object",
|
18438
18465
|
"value_allowed_null": true
|
18439
18466
|
},
|
@@ -18443,7 +18470,7 @@
|
|
18443
18470
|
"example": "无",
|
18444
18471
|
"member": "Policys",
|
18445
18472
|
"name": "EnginePolicyInfo",
|
18446
|
-
"
|
18473
|
+
"output_required": true,
|
18447
18474
|
"type": "object",
|
18448
18475
|
"value_allowed_null": true
|
18449
18476
|
},
|
@@ -18453,7 +18480,7 @@
|
|
18453
18480
|
"example": "无",
|
18454
18481
|
"member": "WorkGroups",
|
18455
18482
|
"name": "WorkGroupInfo",
|
18456
|
-
"
|
18483
|
+
"output_required": true,
|
18457
18484
|
"type": "object",
|
18458
18485
|
"value_allowed_null": true
|
18459
18486
|
},
|
@@ -18463,7 +18490,7 @@
|
|
18463
18490
|
"example": "testname",
|
18464
18491
|
"member": "string",
|
18465
18492
|
"name": "UserAlias",
|
18466
|
-
"
|
18493
|
+
"output_required": true,
|
18467
18494
|
"type": "string",
|
18468
18495
|
"value_allowed_null": true
|
18469
18496
|
},
|
@@ -18473,9 +18500,19 @@
|
|
18473
18500
|
"example": "无",
|
18474
18501
|
"member": "Policys",
|
18475
18502
|
"name": "RowFilterInfo",
|
18476
|
-
"
|
18503
|
+
"output_required": true,
|
18477
18504
|
"type": "object",
|
18478
18505
|
"value_allowed_null": true
|
18506
|
+
},
|
18507
|
+
{
|
18508
|
+
"disabled": false,
|
18509
|
+
"document": "账号类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
18510
|
+
"example": "UserAccount",
|
18511
|
+
"member": "string",
|
18512
|
+
"name": "AccountType",
|
18513
|
+
"output_required": false,
|
18514
|
+
"type": "string",
|
18515
|
+
"value_allowed_null": true
|
18479
18516
|
}
|
18480
18517
|
],
|
18481
18518
|
"usage": "out"
|
@@ -52,7 +52,7 @@
|
|
52
52
|
{
|
53
53
|
"document": "示例一",
|
54
54
|
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AssignMangedTableProperties\n<公共请求参数>\n\n{\n \"TableBaseInfo\": {\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"DatasourceConnectionName\": \"abc\",\n \"TableComment\": \"abc\",\n \"Type\": \"abc\",\n \"TableFormat\": \"abc\",\n \"UserAlias\": \"abc\",\n \"UserSubUin\": \"abc\",\n \"GovernPolicy\": {\n \"RuleType\": \"abc\",\n \"GovernEngine\": \"abc\"\n },\n \"DbGovernPolicyIsDisable\": \"abc\",\n \"SmartPolicy\": {\n \"BaseInfo\": {\n \"Uin\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Catalog\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"AppId\": \"abc\"\n },\n \"Policy\": {\n \"Inherit\": \"abc\",\n \"Resources\": [\n {\n \"AttributionType\": \"abc\",\n \"ResourceType\": \"abc\",\n \"Name\": \"abc\",\n \"Instance\": \"abc\",\n \"Favor\": [\n {\n \"Priority\": 0,\n \"Catalog\": \"abc\",\n \"DataBase\": \"abc\",\n \"Table\": \"abc\"\n }\n ],\n \"Status\": 0\n }\n ],\n \"Written\": {\n \"WrittenEnable\": \"abc\"\n },\n \"Lifecycle\": {\n \"LifecycleEnable\": \"abc\",\n \"Expiration\": 0,\n \"DropTable\": true\n },\n \"Index\": {\n \"IndexEnable\": \"abc\"\n }\n }\n }\n },\n \"Columns\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Default\": \"abc\",\n \"NotNull\": true,\n \"Precision\": 0,\n \"Scale\": 0\n }\n ],\n \"Partitions\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"PartitionType\": \"abc\",\n \"PartitionFormat\": \"abc\",\n \"PartitionDot\": 0,\n \"Transform\": \"abc\",\n \"TransformArgs\": [\n \"abc\"\n ]\n }\n ],\n \"Properties\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"UpsertKeys\": [\n \"abc\"\n ]\n}",
|
55
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"Properties\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
56
56
|
"title": "示例一"
|
57
57
|
}
|
58
58
|
],
|
@@ -785,9 +785,9 @@
|
|
785
785
|
"DescribeUserInfo": [
|
786
786
|
{
|
787
787
|
"document": "",
|
788
|
-
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserInfo\n<公共请求参数>\n\n{}",
|
789
|
-
"output": "{\n \"Response\": {\n \"UserInfo\": {\n \"UserId\": \"
|
790
|
-
"title": "
|
788
|
+
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserInfo\n<公共请求参数>\n\n{\n \"UserId\": \"abc\",\n \"Type\": \"abc\",\n \"Filters\": [\n {\n \"Name\": \"abc\",\n \"Values\": [\n \"abc\"\n ]\n }\n ],\n \"SortBy\": \"abc\",\n \"Sorting\": \"abc\",\n \"Limit\": 0,\n \"Offset\": 0\n}",
|
789
|
+
"output": "{\n \"Response\": {\n \"UserInfo\": {\n \"UserId\": \"abc\",\n \"Type\": \"abc\",\n \"UserType\": \"abc\",\n \"UserDescription\": \"abc\",\n \"DataPolicyInfo\": {\n \"PolicySet\": [\n {\n \"Database\": \"abc\",\n \"Catalog\": \"abc\",\n \"Table\": \"abc\",\n \"Operation\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Function\": \"abc\",\n \"View\": \"abc\",\n \"Column\": \"abc\",\n \"DataEngine\": \"abc\",\n \"ReAuth\": true,\n \"Source\": \"abc\",\n \"Mode\": \"abc\",\n \"Operator\": \"abc\",\n \"CreateTime\": \"abc\",\n \"SourceId\": 0,\n \"SourceName\": \"abc\",\n \"Id\": 0\n }\n ],\n \"TotalCount\": 0\n },\n \"EnginePolicyInfo\": {\n \"PolicySet\": [\n {\n \"Database\": \"abc\",\n \"Catalog\": \"abc\",\n \"Table\": \"abc\",\n \"Operation\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Function\": \"abc\",\n \"View\": \"abc\",\n \"Column\": \"abc\",\n \"DataEngine\": \"abc\",\n \"ReAuth\": true,\n \"Source\": \"abc\",\n \"Mode\": \"abc\",\n \"Operator\": \"abc\",\n \"CreateTime\": \"abc\",\n \"SourceId\": 0,\n \"SourceName\": \"abc\",\n \"Id\": 0\n }\n ],\n \"TotalCount\": 0\n },\n \"WorkGroupInfo\": {\n \"WorkGroupSet\": [\n {\n \"WorkGroupId\": 0,\n \"WorkGroupName\": \"abc\",\n \"WorkGroupDescription\": \"abc\",\n \"Creator\": \"abc\",\n \"CreateTime\": \"abc\"\n }\n ],\n \"TotalCount\": 0\n },\n \"UserAlias\": \"abc\",\n \"RowFilterInfo\": {\n \"PolicySet\": [\n {\n \"Database\": \"abc\",\n \"Catalog\": \"abc\",\n \"Table\": \"abc\",\n \"Operation\": \"abc\",\n \"PolicyType\": \"abc\",\n \"Function\": \"abc\",\n \"View\": \"abc\",\n \"Column\": \"abc\",\n \"DataEngine\": \"abc\",\n \"ReAuth\": true,\n \"Source\": \"abc\",\n \"Mode\": \"abc\",\n \"Operator\": \"abc\",\n \"CreateTime\": \"abc\",\n \"SourceId\": 0,\n \"SourceName\": \"abc\",\n \"Id\": 0\n }\n ],\n \"TotalCount\": 0\n }\n },\n \"RequestId\": \"abc\"\n }\n}",
|
790
|
+
"title": "test"
|
791
791
|
}
|
792
792
|
],
|
793
793
|
"DescribeUserRoles": [
|