tccli 3.0.1180.1__py2.py3-none-any.whl → 3.0.1182.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/__init__.py +3 -0
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +185 -0
- tccli/services/cdb/v20170320/examples.json +17 -1
- tccli/services/cdwdoris/v20211228/api.json +27 -0
- tccli/services/clb/v20180317/api.json +59 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/controlcenter/__init__.py +4 -0
- tccli/services/controlcenter/controlcenter_client.py +195 -0
- tccli/services/controlcenter/v20230110/api.json +82 -0
- tccli/services/controlcenter/v20230110/examples.json +13 -0
- tccli/services/csip/v20221121/api.json +308 -1
- tccli/services/cvm/v20170312/api.json +20 -20
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cwp/v20180228/api.json +3 -3
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +51 -12
- tccli/services/cynosdb/v20190107/examples.json +3 -3
- tccli/services/dasb/v20191018/api.json +11 -1
- tccli/services/dsgc/v20190723/api.json +18 -0
- tccli/services/es/v20180416/api.json +39 -1
- tccli/services/ess/v20201111/api.json +12 -2
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +12 -2
- tccli/services/essbasic/v20210526/examples.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +106 -0
- tccli/services/hunyuan/v20230901/api.json +235 -0
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/iotexplorer/v20190423/api.json +2 -2
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/organization/organization_client.py +53 -0
- tccli/services/organization/v20210331/api.json +43 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +16 -16
- tccli/services/scf/v20180416/api.json +29 -9
- tccli/services/ses/v20201002/api.json +148 -11
- tccli/services/sqlserver/v20180328/api.json +2 -2
- tccli/services/sqlserver/v20180328/examples.json +1 -1
- tccli/services/ssl/v20191205/api.json +10 -0
- tccli/services/tdmq/v20200217/api.json +10 -0
- tccli/services/tms/tms_client.py +0 -53
- tccli/services/tms/v20201229/api.json +2 -46
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +3 -3
- tccli/services/wedata/v20210820/api.json +1568 -0
- tccli/services/wedata/v20210820/examples.json +54 -0
- tccli/services/wedata/wedata_client.py +334 -16
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/RECORD +54 -50
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1182.1'
|
tccli/services/__init__.py
CHANGED
@@ -6199,7 +6199,7 @@
|
|
6199
6199
|
},
|
6200
6200
|
{
|
6201
6201
|
"disabled": false,
|
6202
|
-
"document": "是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:<
|
6202
|
+
"document": "是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:<li>true:表示用作公网网关</li><li>false:表示不作为公网网关</li>默认取值:false。",
|
6203
6203
|
"example": "false",
|
6204
6204
|
"member": "bool",
|
6205
6205
|
"name": "AsVpcGateway",
|
tccli/services/cdb/cdb_client.py
CHANGED
@@ -641,6 +641,58 @@ def doDescribeTimeWindow(args, parsed_globals):
|
|
641
641
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
642
|
|
643
643
|
|
644
|
+
def doDescribeInstanceUpgradeCheckJob(args, parsed_globals):
|
645
|
+
g_param = parse_global_arg(parsed_globals)
|
646
|
+
|
647
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
648
|
+
cred = credential.CVMRoleCredential()
|
649
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
650
|
+
cred = credential.STSAssumeRoleCredential(
|
651
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
652
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
653
|
+
)
|
654
|
+
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):
|
655
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
656
|
+
else:
|
657
|
+
cred = credential.Credential(
|
658
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
659
|
+
)
|
660
|
+
http_profile = HttpProfile(
|
661
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
662
|
+
reqMethod="POST",
|
663
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
664
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
665
|
+
)
|
666
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
667
|
+
if g_param[OptionsDefine.Language]:
|
668
|
+
profile.language = g_param[OptionsDefine.Language]
|
669
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
670
|
+
client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
|
671
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
672
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
+
model = models.DescribeInstanceUpgradeCheckJobRequest()
|
674
|
+
model.from_json_string(json.dumps(args))
|
675
|
+
start_time = time.time()
|
676
|
+
while True:
|
677
|
+
rsp = client.DescribeInstanceUpgradeCheckJob(model)
|
678
|
+
result = rsp.to_json_string()
|
679
|
+
try:
|
680
|
+
json_obj = json.loads(result)
|
681
|
+
except TypeError as e:
|
682
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
683
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
684
|
+
break
|
685
|
+
cur_time = time.time()
|
686
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
687
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
688
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
689
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
690
|
+
else:
|
691
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
692
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
693
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
|
+
|
695
|
+
|
644
696
|
def doDescribeBackupOverview(args, parsed_globals):
|
645
697
|
g_param = parse_global_arg(parsed_globals)
|
646
698
|
|
@@ -6621,6 +6673,58 @@ def doModifyAuditRuleTemplates(args, parsed_globals):
|
|
6621
6673
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6622
6674
|
|
6623
6675
|
|
6676
|
+
def doSubmitInstanceUpgradeCheckJob(args, parsed_globals):
|
6677
|
+
g_param = parse_global_arg(parsed_globals)
|
6678
|
+
|
6679
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6680
|
+
cred = credential.CVMRoleCredential()
|
6681
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6682
|
+
cred = credential.STSAssumeRoleCredential(
|
6683
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6684
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6685
|
+
)
|
6686
|
+
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):
|
6687
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6688
|
+
else:
|
6689
|
+
cred = credential.Credential(
|
6690
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6691
|
+
)
|
6692
|
+
http_profile = HttpProfile(
|
6693
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6694
|
+
reqMethod="POST",
|
6695
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6696
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6697
|
+
)
|
6698
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6699
|
+
if g_param[OptionsDefine.Language]:
|
6700
|
+
profile.language = g_param[OptionsDefine.Language]
|
6701
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6702
|
+
client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
|
6703
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6704
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6705
|
+
model = models.SubmitInstanceUpgradeCheckJobRequest()
|
6706
|
+
model.from_json_string(json.dumps(args))
|
6707
|
+
start_time = time.time()
|
6708
|
+
while True:
|
6709
|
+
rsp = client.SubmitInstanceUpgradeCheckJob(model)
|
6710
|
+
result = rsp.to_json_string()
|
6711
|
+
try:
|
6712
|
+
json_obj = json.loads(result)
|
6713
|
+
except TypeError as e:
|
6714
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6715
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6716
|
+
break
|
6717
|
+
cur_time = time.time()
|
6718
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6719
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6720
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6721
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6722
|
+
else:
|
6723
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6724
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6725
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6726
|
+
|
6727
|
+
|
6624
6728
|
def doDeleteRotationPassword(args, parsed_globals):
|
6625
6729
|
g_param = parse_global_arg(parsed_globals)
|
6626
6730
|
|
@@ -8776,6 +8880,7 @@ ACTION_MAP = {
|
|
8776
8880
|
"DescribeAccounts": doDescribeAccounts,
|
8777
8881
|
"ModifyInstanceTag": doModifyInstanceTag,
|
8778
8882
|
"DescribeTimeWindow": doDescribeTimeWindow,
|
8883
|
+
"DescribeInstanceUpgradeCheckJob": doDescribeInstanceUpgradeCheckJob,
|
8779
8884
|
"DescribeBackupOverview": doDescribeBackupOverview,
|
8780
8885
|
"StopReplication": doStopReplication,
|
8781
8886
|
"ModifyDBInstanceLogToCLS": doModifyDBInstanceLogToCLS,
|
@@ -8891,6 +8996,7 @@ ACTION_MAP = {
|
|
8891
8996
|
"DescribeBackupDownloadRestriction": doDescribeBackupDownloadRestriction,
|
8892
8997
|
"ResetRootAccount": doResetRootAccount,
|
8893
8998
|
"ModifyAuditRuleTemplates": doModifyAuditRuleTemplates,
|
8999
|
+
"SubmitInstanceUpgradeCheckJob": doSubmitInstanceUpgradeCheckJob,
|
8894
9000
|
"DeleteRotationPassword": doDeleteRotationPassword,
|
8895
9001
|
"ModifyAccountPassword": doModifyAccountPassword,
|
8896
9002
|
"DescribeInstanceAlarmEvents": doDescribeInstanceAlarmEvents,
|
@@ -602,6 +602,13 @@
|
|
602
602
|
"output": "DescribeInstanceParamsResponse",
|
603
603
|
"status": "online"
|
604
604
|
},
|
605
|
+
"DescribeInstanceUpgradeCheckJob": {
|
606
|
+
"document": "该接口(DescribeInstanceUpgradeCheckJob)查询实例版本升级校验任务。",
|
607
|
+
"input": "DescribeInstanceUpgradeCheckJobRequest",
|
608
|
+
"name": "查询实例版本升级校验任务",
|
609
|
+
"output": "DescribeInstanceUpgradeCheckJobResponse",
|
610
|
+
"status": "online"
|
611
|
+
},
|
605
612
|
"DescribeInstanceUpgradeType": {
|
606
613
|
"document": "本接口(DescribeInstanceUpgradeType)用于查询数据库实例升级类型。",
|
607
614
|
"input": "DescribeInstanceUpgradeTypeRequest",
|
@@ -1120,6 +1127,13 @@
|
|
1120
1127
|
"output": "StopRollbackResponse",
|
1121
1128
|
"status": "online"
|
1122
1129
|
},
|
1130
|
+
"SubmitInstanceUpgradeCheckJob": {
|
1131
|
+
"document": "该接口(SubmitInstanceUpgradeCheckJob)提交实例版本升级校验任务。",
|
1132
|
+
"input": "SubmitInstanceUpgradeCheckJobRequest",
|
1133
|
+
"name": "提交实例版本升级检查任务",
|
1134
|
+
"output": "SubmitInstanceUpgradeCheckJobResponse",
|
1135
|
+
"status": "online"
|
1136
|
+
},
|
1123
1137
|
"SwitchCDBProxy": {
|
1124
1138
|
"document": "数据库代理配置变更或则升级版本后手动发起立即切换",
|
1125
1139
|
"input": "SwitchCDBProxyRequest",
|
@@ -4194,6 +4208,45 @@
|
|
4194
4208
|
],
|
4195
4209
|
"type": "object"
|
4196
4210
|
},
|
4211
|
+
"ClusterInfo": {
|
4212
|
+
"document": "集群版节点信息",
|
4213
|
+
"members": [
|
4214
|
+
{
|
4215
|
+
"disabled": false,
|
4216
|
+
"document": "节点id\n注意:此字段可能返回 null,表示取不到有效值。",
|
4217
|
+
"example": "\"dbn-ipffzoum\"",
|
4218
|
+
"member": "string",
|
4219
|
+
"name": "NodeId",
|
4220
|
+
"output_required": false,
|
4221
|
+
"required": false,
|
4222
|
+
"type": "string",
|
4223
|
+
"value_allowed_null": true
|
4224
|
+
},
|
4225
|
+
{
|
4226
|
+
"disabled": false,
|
4227
|
+
"document": "节点类型:主节点,从节点\n注意:此字段可能返回 null,表示取不到有效值。",
|
4228
|
+
"example": "\"master\"",
|
4229
|
+
"member": "string",
|
4230
|
+
"name": "Role",
|
4231
|
+
"output_required": false,
|
4232
|
+
"required": false,
|
4233
|
+
"type": "string",
|
4234
|
+
"value_allowed_null": true
|
4235
|
+
},
|
4236
|
+
{
|
4237
|
+
"disabled": false,
|
4238
|
+
"document": "地域\n注意:此字段可能返回 null,表示取不到有效值。",
|
4239
|
+
"example": "\"ap-guangzhou\"",
|
4240
|
+
"member": "string",
|
4241
|
+
"name": "Zone",
|
4242
|
+
"output_required": false,
|
4243
|
+
"required": false,
|
4244
|
+
"type": "string",
|
4245
|
+
"value_allowed_null": true
|
4246
|
+
}
|
4247
|
+
],
|
4248
|
+
"usage": "both"
|
4249
|
+
},
|
4197
4250
|
"ClusterNodeInfo": {
|
4198
4251
|
"document": "集群版实例节点信息",
|
4199
4252
|
"members": [
|
@@ -10072,6 +10125,15 @@
|
|
10072
10125
|
"name": "EngineTypes",
|
10073
10126
|
"required": false,
|
10074
10127
|
"type": "list"
|
10128
|
+
},
|
10129
|
+
{
|
10130
|
+
"disabled": false,
|
10131
|
+
"document": "是否获取集群版实例节点信息,可填:true或false",
|
10132
|
+
"example": "无",
|
10133
|
+
"member": "bool",
|
10134
|
+
"name": "QueryClusterInfo",
|
10135
|
+
"required": false,
|
10136
|
+
"type": "bool"
|
10075
10137
|
}
|
10076
10138
|
],
|
10077
10139
|
"type": "object"
|
@@ -11067,6 +11129,62 @@
|
|
11067
11129
|
],
|
11068
11130
|
"type": "object"
|
11069
11131
|
},
|
11132
|
+
"DescribeInstanceUpgradeCheckJobRequest": {
|
11133
|
+
"document": "DescribeInstanceUpgradeCheckJob请求参数结构体",
|
11134
|
+
"members": [
|
11135
|
+
{
|
11136
|
+
"disabled": false,
|
11137
|
+
"document": "实例ID",
|
11138
|
+
"example": "\"cdb-g3rbtabc\"",
|
11139
|
+
"member": "string",
|
11140
|
+
"name": "InstanceId",
|
11141
|
+
"required": true,
|
11142
|
+
"type": "string"
|
11143
|
+
},
|
11144
|
+
{
|
11145
|
+
"disabled": false,
|
11146
|
+
"document": "目标数据库版本",
|
11147
|
+
"example": "\"8.0\"",
|
11148
|
+
"member": "string",
|
11149
|
+
"name": "DstMysqlVersion",
|
11150
|
+
"required": true,
|
11151
|
+
"type": "string"
|
11152
|
+
}
|
11153
|
+
],
|
11154
|
+
"type": "object"
|
11155
|
+
},
|
11156
|
+
"DescribeInstanceUpgradeCheckJobResponse": {
|
11157
|
+
"document": "DescribeInstanceUpgradeCheckJob返回参数结构体",
|
11158
|
+
"members": [
|
11159
|
+
{
|
11160
|
+
"disabled": false,
|
11161
|
+
"document": "24小时内是否存在历史升级校验任务",
|
11162
|
+
"example": "true",
|
11163
|
+
"member": "bool",
|
11164
|
+
"name": "ExistUpgradeCheckJob",
|
11165
|
+
"output_required": true,
|
11166
|
+
"type": "bool",
|
11167
|
+
"value_allowed_null": false
|
11168
|
+
},
|
11169
|
+
{
|
11170
|
+
"disabled": false,
|
11171
|
+
"document": "任务id",
|
11172
|
+
"example": "123",
|
11173
|
+
"member": "int64",
|
11174
|
+
"name": "JobId",
|
11175
|
+
"output_required": true,
|
11176
|
+
"type": "int",
|
11177
|
+
"value_allowed_null": false
|
11178
|
+
},
|
11179
|
+
{
|
11180
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11181
|
+
"member": "string",
|
11182
|
+
"name": "RequestId",
|
11183
|
+
"type": "string"
|
11184
|
+
}
|
11185
|
+
],
|
11186
|
+
"type": "object"
|
11187
|
+
},
|
11070
11188
|
"DescribeInstanceUpgradeTypeRequest": {
|
11071
11189
|
"document": "DescribeInstanceUpgradeType请求参数结构体",
|
11072
11190
|
"members": [
|
@@ -12570,6 +12688,7 @@
|
|
12570
12688
|
"example": "5",
|
12571
12689
|
"member": "int64",
|
12572
12690
|
"name": "TotalCount",
|
12691
|
+
"output_required": true,
|
12573
12692
|
"type": "int",
|
12574
12693
|
"value_allowed_null": false
|
12575
12694
|
},
|
@@ -12579,6 +12698,7 @@
|
|
12579
12698
|
"example": "无",
|
12580
12699
|
"member": "TaskDetail",
|
12581
12700
|
"name": "Items",
|
12701
|
+
"output_required": true,
|
12582
12702
|
"type": "list",
|
12583
12703
|
"value_allowed_null": false
|
12584
12704
|
},
|
@@ -14125,6 +14245,16 @@
|
|
14125
14245
|
"output_required": false,
|
14126
14246
|
"type": "int",
|
14127
14247
|
"value_allowed_null": true
|
14248
|
+
},
|
14249
|
+
{
|
14250
|
+
"disabled": false,
|
14251
|
+
"document": "实例集群版节点信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
14252
|
+
"example": "无",
|
14253
|
+
"member": "ClusterInfo",
|
14254
|
+
"name": "ClusterInfo",
|
14255
|
+
"output_required": false,
|
14256
|
+
"type": "list",
|
14257
|
+
"value_allowed_null": true
|
14128
14258
|
}
|
14129
14259
|
],
|
14130
14260
|
"usage": "out"
|
@@ -19790,6 +19920,52 @@
|
|
19790
19920
|
],
|
19791
19921
|
"type": "object"
|
19792
19922
|
},
|
19923
|
+
"SubmitInstanceUpgradeCheckJobRequest": {
|
19924
|
+
"document": "SubmitInstanceUpgradeCheckJob请求参数结构体",
|
19925
|
+
"members": [
|
19926
|
+
{
|
19927
|
+
"disabled": false,
|
19928
|
+
"document": "实例D",
|
19929
|
+
"example": "\"cdb-g3rbtabc\"",
|
19930
|
+
"member": "string",
|
19931
|
+
"name": "InstanceId",
|
19932
|
+
"required": true,
|
19933
|
+
"type": "string"
|
19934
|
+
},
|
19935
|
+
{
|
19936
|
+
"disabled": false,
|
19937
|
+
"document": "目标数据库版本",
|
19938
|
+
"example": "\"8.0\"",
|
19939
|
+
"member": "string",
|
19940
|
+
"name": "DstMysqlVersion",
|
19941
|
+
"required": true,
|
19942
|
+
"type": "string"
|
19943
|
+
}
|
19944
|
+
],
|
19945
|
+
"type": "object"
|
19946
|
+
},
|
19947
|
+
"SubmitInstanceUpgradeCheckJobResponse": {
|
19948
|
+
"document": "SubmitInstanceUpgradeCheckJob返回参数结构体",
|
19949
|
+
"members": [
|
19950
|
+
{
|
19951
|
+
"disabled": false,
|
19952
|
+
"document": "任务ID",
|
19953
|
+
"example": "123",
|
19954
|
+
"member": "int64",
|
19955
|
+
"name": "JobId",
|
19956
|
+
"output_required": true,
|
19957
|
+
"type": "int",
|
19958
|
+
"value_allowed_null": false
|
19959
|
+
},
|
19960
|
+
{
|
19961
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
19962
|
+
"member": "string",
|
19963
|
+
"name": "RequestId",
|
19964
|
+
"type": "string"
|
19965
|
+
}
|
19966
|
+
],
|
19967
|
+
"type": "object"
|
19968
|
+
},
|
19793
19969
|
"SwitchCDBProxyRequest": {
|
19794
19970
|
"document": "SwitchCDBProxy请求参数结构体",
|
19795
19971
|
"members": [
|
@@ -20382,6 +20558,15 @@
|
|
20382
20558
|
"required": false,
|
20383
20559
|
"type": "int"
|
20384
20560
|
},
|
20561
|
+
{
|
20562
|
+
"disabled": false,
|
20563
|
+
"document": "5.7升级8.0是否忽略关键字错误,取值范围[0,1],1表示忽略,0表示不忽略",
|
20564
|
+
"example": "1",
|
20565
|
+
"member": "int64",
|
20566
|
+
"name": "IgnoreErrKeyword",
|
20567
|
+
"required": false,
|
20568
|
+
"type": "int"
|
20569
|
+
},
|
20385
20570
|
{
|
20386
20571
|
"disabled": false,
|
20387
20572
|
"document": "版本升级支持指定参数",
|
@@ -730,6 +730,14 @@
|
|
730
730
|
"title": "查询实例的可设置参数列表"
|
731
731
|
}
|
732
732
|
],
|
733
|
+
"DescribeInstanceUpgradeCheckJob": [
|
734
|
+
{
|
735
|
+
"document": "无",
|
736
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceUpgradeCheckJob\n<公共请求参数>\n\n{\n \"InstanceId\": \"037c0b3b-1320-11ee-b0c3-6c92bf629868\",\n \"DstMysqlVersion\": \"8.0\"\n}",
|
737
|
+
"output": "{\n \"Response\": {\n \"ExistUpgradeCheckJob\": true,\n \"JobId\": 145,\n \"RequestId\": \"60b5d6cd-aecc-4740-a681-353e645293b4\"\n }\n}",
|
738
|
+
"title": "查询实例升级检查任务"
|
739
|
+
}
|
740
|
+
],
|
733
741
|
"DescribeInstanceUpgradeType": [
|
734
742
|
{
|
735
743
|
"document": "",
|
@@ -878,7 +886,7 @@
|
|
878
886
|
{
|
879
887
|
"document": "查询云数据库实例任务列表",
|
880
888
|
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTasks\n<公共请求参数>\n\n{}",
|
881
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 5,\n \"Items\": [\n {\n \"Code\": 9013,\n \"Message\": \"[Operate CDB Fail][Upgrade Service Fail!] reason: ERR#-999: lock_inst.cgi: 某些实例id不存在对应的实例记录\",\n \"JobId\": 79,\n \"AsyncRequestId\": \"9d21004b-3aa1896a-eeddca4b-a68f106d\",\n \"Progress\": 10,\n \"StartTime\": \"2019-10-09 20:03:39\",\n \"EndTime\": \"2019-10-09 20:39:34\",\n \"InstanceIds\": [\n \"cdb-qlfpnobr\"\n ],\n \"TaskType\": \"OPEN GTID\",\n \"TaskStatus\": \"FAILED\"\n },\n {\n \"Code\": 0,\n \"Message\": \"设置参数成功\",\n \"JobId\": 70,\n \"AsyncRequestId\": \"1d564380-2e391736-f28fa246-43cea3aa\",\n \"Progress\": 100,\n \"StartTime\": \"2018-07-06 22:03:05\",\n \"EndTime\": \"2018-07-06 22:03:28\",\n \"InstanceIds\": [\n \"cdb-6kd9h71i\"\n ],\n \"TaskType\": \"MODIFY PARAM\",\n \"TaskStatus\": \"SUCCEED\"\n },\n {\n \"Code\": 0,\n \"Message\": \"初始化实例成功\",\n \"JobId\": 69,\n \"AsyncRequestId\": \"ea39295d-420a0b4e-a98298c7-8751e1ad\",\n \"Progress\": 100,\n \"StartTime\": \"2018-07-06 22:01:42\",\n \"EndTime\": \"2018-07-06 22:02:26\",\n \"InstanceIds\": [\n \"cdb-6kd9h71i\"\n ],\n \"TaskType\": \"INITIAL\",\n \"TaskStatus\": \"SUCCEED\"\n },\n {\n \"Code\": 0,\n \"Message\": \"实例升级任务完成\",\n \"JobId\": 68,\n \"AsyncRequestId\": \"\",\n \"Progress\": 100,\n \"StartTime\": \"2018-07-05 23:53:48\",\n \"EndTime\": \"2018-07-06 22:05:10\",\n \"InstanceIds\": [\n \"cdb-6kd9h71i\"\n ],\n \"TaskType\": \"UPGRADE MASTER\",\n \"TaskStatus\": \"SUCCEED\"\n },\n {\n \"Code\": -1,\n \"Message\": \"设置参数失败\",\n \"JobId\": 66,\n \"AsyncRequestId\": \"780b2e32-79cb0f4c-ec7854c5-44ff5371\",\n \"Progress\": 0,\n \"StartTime\": \"2018-07-05 23:30:36\",\n \"EndTime\": \"2018-07-05 23:30:37\",\n \"InstanceIds\": [\n \"cdb-o02fxj9g\"\n ],\n \"TaskType\": \"MODIFY PARAM\",\n \"TaskStatus\": \"FAILED\"\n }\n ],\n \"RequestId\": \"9a4b22f5-0f93-4a72-ba05-1eb6cdf37a1e\"\n }\n}",
|
889
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 5,\n \"Items\": [\n {\n \"Code\": 9013,\n \"Message\": \"[Operate CDB Fail][Upgrade Service Fail!] reason: ERR#-999: lock_inst.cgi: 某些实例id不存在对应的实例记录\",\n \"JobId\": 79,\n \"AsyncRequestId\": \"9d21004b-3aa1896a-eeddca4b-a68f106d\",\n \"TaskAttachInfo\": [],\n \"Progress\": 10,\n \"StartTime\": \"2019-10-09 20:03:39\",\n \"EndTime\": \"2019-10-09 20:39:34\",\n \"InstanceIds\": [\n \"cdb-qlfpnobr\"\n ],\n \"TaskType\": \"OPEN GTID\",\n \"TaskStatus\": \"FAILED\"\n },\n {\n \"Code\": 0,\n \"Message\": \"设置参数成功\",\n \"JobId\": 70,\n \"AsyncRequestId\": \"1d564380-2e391736-f28fa246-43cea3aa\",\n \"TaskAttachInfo\": [],\n \"Progress\": 100,\n \"StartTime\": \"2018-07-06 22:03:05\",\n \"EndTime\": \"2018-07-06 22:03:28\",\n \"InstanceIds\": [\n \"cdb-6kd9h71i\"\n ],\n \"TaskType\": \"MODIFY PARAM\",\n \"TaskStatus\": \"SUCCEED\"\n },\n {\n \"Code\": 0,\n \"Message\": \"初始化实例成功\",\n \"JobId\": 69,\n \"AsyncRequestId\": \"ea39295d-420a0b4e-a98298c7-8751e1ad\",\n \"TaskAttachInfo\": [],\n \"Progress\": 100,\n \"StartTime\": \"2018-07-06 22:01:42\",\n \"EndTime\": \"2018-07-06 22:02:26\",\n \"InstanceIds\": [\n \"cdb-6kd9h71i\"\n ],\n \"TaskType\": \"INITIAL\",\n \"TaskStatus\": \"SUCCEED\"\n },\n {\n \"Code\": 0,\n \"Message\": \"实例升级任务完成\",\n \"JobId\": 68,\n \"AsyncRequestId\": \"\",\n \"TaskAttachInfo\": [\n {\n \"AttachKey\": \"FastUpgradeStatus\",\n \"AttachValue\": \"1\"\n }\n ],\n \"Progress\": 100,\n \"StartTime\": \"2018-07-05 23:53:48\",\n \"EndTime\": \"2018-07-06 22:05:10\",\n \"InstanceIds\": [\n \"cdb-6kd9h71i\"\n ],\n \"TaskType\": \"UPGRADE MASTER\",\n \"TaskStatus\": \"SUCCEED\"\n },\n {\n \"Code\": -1,\n \"Message\": \"设置参数失败\",\n \"JobId\": 66,\n \"AsyncRequestId\": \"780b2e32-79cb0f4c-ec7854c5-44ff5371\",\n \"TaskAttachInfo\": [],\n \"Progress\": 0,\n \"StartTime\": \"2018-07-05 23:30:36\",\n \"EndTime\": \"2018-07-05 23:30:37\",\n \"InstanceIds\": [\n \"cdb-o02fxj9g\"\n ],\n \"TaskType\": \"MODIFY PARAM\",\n \"TaskStatus\": \"FAILED\"\n }\n ],\n \"RequestId\": \"9a4b22f5-0f93-4a72-ba05-1eb6cdf37a1e\"\n }\n}",
|
882
890
|
"title": "查询云数据库实例任务列表"
|
883
891
|
}
|
884
892
|
],
|
@@ -1328,6 +1336,14 @@
|
|
1328
1336
|
"title": "撤销回档任务"
|
1329
1337
|
}
|
1330
1338
|
],
|
1339
|
+
"SubmitInstanceUpgradeCheckJob": [
|
1340
|
+
{
|
1341
|
+
"document": "无",
|
1342
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitInstanceUpgradeCheckJob\n<公共请求参数>\n\n{\n \"InstanceId\": \"037c0b3b-1320-11ee-b0c3-6c92bf629868\",\n \"DstMysqlVersion\": \"8.0\"\n}",
|
1343
|
+
"output": "{\n \"Response\": {\n \"JobId\": 145,\n \"RequestId\": \"a4b54232-d7af-4df3-8329-5110e3ece9c3\"\n }\n}",
|
1344
|
+
"title": "提交实例升级检查任务"
|
1345
|
+
}
|
1346
|
+
],
|
1331
1347
|
"SwitchCDBProxy": [
|
1332
1348
|
{
|
1333
1349
|
"document": "",
|
@@ -4265,6 +4265,24 @@
|
|
4265
4265
|
"name": "Catalogs",
|
4266
4266
|
"required": false,
|
4267
4267
|
"type": "list"
|
4268
|
+
},
|
4269
|
+
{
|
4270
|
+
"disabled": false,
|
4271
|
+
"document": "数据库名",
|
4272
|
+
"example": "无",
|
4273
|
+
"member": "string",
|
4274
|
+
"name": "DatabaseName",
|
4275
|
+
"required": false,
|
4276
|
+
"type": "string"
|
4277
|
+
},
|
4278
|
+
{
|
4279
|
+
"disabled": false,
|
4280
|
+
"document": "表名",
|
4281
|
+
"example": "无",
|
4282
|
+
"member": "string",
|
4283
|
+
"name": "TableName",
|
4284
|
+
"required": false,
|
4285
|
+
"type": "string"
|
4268
4286
|
}
|
4269
4287
|
],
|
4270
4288
|
"type": "object"
|
@@ -7966,6 +7984,15 @@
|
|
7966
7984
|
"name": "CamUin",
|
7967
7985
|
"required": false,
|
7968
7986
|
"type": "string"
|
7987
|
+
},
|
7988
|
+
{
|
7989
|
+
"disabled": false,
|
7990
|
+
"document": "ranger group id列表",
|
7991
|
+
"example": "[]",
|
7992
|
+
"member": "int64",
|
7993
|
+
"name": "CamRangerGroupIds",
|
7994
|
+
"required": false,
|
7995
|
+
"type": "list"
|
7969
7996
|
}
|
7970
7997
|
],
|
7971
7998
|
"usage": "in"
|
@@ -7574,7 +7574,7 @@
|
|
7574
7574
|
},
|
7575
7575
|
{
|
7576
7576
|
"disabled": false,
|
7577
|
-
"document": "性能容量型规格。<ul><li> clb.c2.medium:标准型规格 </li><li> clb.c3.small:高阶型1规格 </li><li> clb.c3.medium:高阶型2规格 </li><li> clb.c4.small:超强型1规格 </li><li> clb.c4.medium:超强型2规格 </li><li> clb.c4.large:超强型3规格 </li><li> clb.c4.xlarge:超强型4规格 </li><li
|
7577
|
+
"document": "性能容量型规格。<ul><li> clb.c1.small:简约型规格 </li><li> clb.c2.medium:标准型规格 </li><li> clb.c3.small:高阶型1规格 </li><li> clb.c3.medium:高阶型2规格 </li><li> clb.c4.small:超强型1规格 </li><li> clb.c4.medium:超强型2规格 </li><li> clb.c4.large:超强型3规格 </li><li> clb.c4.xlarge:超强型4规格 </li><li>\"\":非性能容量型实例</li></ul>\n注意:此字段可能返回 null,表示取不到有效值。",
|
7578
7578
|
"example": " null",
|
7579
7579
|
"member": "string",
|
7580
7580
|
"name": "SlaType",
|
@@ -7725,6 +7725,17 @@
|
|
7725
7725
|
"required": false,
|
7726
7726
|
"type": "string",
|
7727
7727
|
"value_allowed_null": true
|
7728
|
+
},
|
7729
|
+
{
|
7730
|
+
"disabled": false,
|
7731
|
+
"document": "实例类型是否为独占型。1:独占型实例。0:非独占型实例。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7732
|
+
"example": "0",
|
7733
|
+
"member": "uint64",
|
7734
|
+
"name": "Exclusive",
|
7735
|
+
"output_required": false,
|
7736
|
+
"required": false,
|
7737
|
+
"type": "int",
|
7738
|
+
"value_allowed_null": true
|
7728
7739
|
}
|
7729
7740
|
],
|
7730
7741
|
"usage": "both"
|
@@ -9112,6 +9123,15 @@
|
|
9112
9123
|
"name": "TrpcFunc",
|
9113
9124
|
"required": false,
|
9114
9125
|
"type": "string"
|
9126
|
+
},
|
9127
|
+
{
|
9128
|
+
"disabled": false,
|
9129
|
+
"document": "OAuth配置信息。",
|
9130
|
+
"example": "无",
|
9131
|
+
"member": "OAuth",
|
9132
|
+
"name": "OAuth",
|
9133
|
+
"required": false,
|
9134
|
+
"type": "object"
|
9115
9135
|
}
|
9116
9136
|
],
|
9117
9137
|
"type": "object"
|
@@ -9433,6 +9453,34 @@
|
|
9433
9453
|
],
|
9434
9454
|
"usage": "in"
|
9435
9455
|
},
|
9456
|
+
"OAuth": {
|
9457
|
+
"document": "OAuth配置信息。",
|
9458
|
+
"members": [
|
9459
|
+
{
|
9460
|
+
"disabled": false,
|
9461
|
+
"document": "开启或关闭鉴权。\nTrue: 开启;\nFalse: 关闭\n注意:此字段可能返回 null,表示取不到有效值。",
|
9462
|
+
"example": "True",
|
9463
|
+
"member": "bool",
|
9464
|
+
"name": "OAuthEnable",
|
9465
|
+
"output_required": false,
|
9466
|
+
"required": false,
|
9467
|
+
"type": "bool",
|
9468
|
+
"value_allowed_null": true
|
9469
|
+
},
|
9470
|
+
{
|
9471
|
+
"disabled": false,
|
9472
|
+
"document": "IAP全部故障后,拒绝请求还是放行。BYPASS:通过,\nREJECT: 拒绝\n注意:此字段可能返回 null,表示取不到有效值。",
|
9473
|
+
"example": "BYPASS",
|
9474
|
+
"member": "string",
|
9475
|
+
"name": "OAuthFailureStatus",
|
9476
|
+
"output_required": false,
|
9477
|
+
"required": false,
|
9478
|
+
"type": "string",
|
9479
|
+
"value_allowed_null": true
|
9480
|
+
}
|
9481
|
+
],
|
9482
|
+
"usage": "both"
|
9483
|
+
},
|
9436
9484
|
"Price": {
|
9437
9485
|
"document": "表示负载均衡的价格",
|
9438
9486
|
"members": [
|
@@ -10457,6 +10505,16 @@
|
|
10457
10505
|
"output_required": true,
|
10458
10506
|
"type": "list",
|
10459
10507
|
"value_allowed_null": true
|
10508
|
+
},
|
10509
|
+
{
|
10510
|
+
"disabled": false,
|
10511
|
+
"document": "OAuth配置状态信息。\n注意:此字段可能返回 null,表示取不到有效值。",
|
10512
|
+
"example": "无",
|
10513
|
+
"member": "OAuth",
|
10514
|
+
"name": "OAuth",
|
10515
|
+
"output_required": false,
|
10516
|
+
"type": "object",
|
10517
|
+
"value_allowed_null": true
|
10460
10518
|
}
|
10461
10519
|
],
|
10462
10520
|
"usage": "out"
|
@@ -2479,7 +2479,7 @@
|
|
2479
2479
|
},
|
2480
2480
|
{
|
2481
2481
|
"disabled": false,
|
2482
|
-
"document": "
|
2482
|
+
"document": "允许访问的资源列表,目前仅支持一个Resource",
|
2483
2483
|
"example": "当Type为1时:['qcs::cls::uin/100001127589:dashboard/dashboard-1223fa03--44f9-f118-69a8-21aa33ea5aa1']; 当Type为2时:['qcs::cls:ap-guangzhou:uin/10000000001:topic/c1306921-2180-3e45-9azb-31d12217871e6']",
|
2484
2484
|
"member": "string",
|
2485
2485
|
"name": "Resources",
|