tccli 3.0.1268.1__py2.py3-none-any.whl → 3.0.1269.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 +5 -1
- tccli/services/aiart/aiart_client.py +106 -0
- tccli/services/aiart/v20221229/api.json +275 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/billing/billing_client.py +4 -163
- tccli/services/billing/v20180709/api.json +0 -489
- tccli/services/billing/v20180709/examples.json +0 -24
- tccli/services/cat/v20180409/api.json +3 -1
- tccli/services/cbs/v20170312/api.json +9 -0
- tccli/services/ccc/v20200210/api.json +11 -11
- tccli/services/ccc/v20200210/examples.json +2 -2
- tccli/services/cdb/v20170320/api.json +48 -18
- tccli/services/cfw/v20190904/api.json +30 -30
- tccli/services/ckafka/v20190819/api.json +10 -0
- tccli/services/csip/v20221121/api.json +38 -38
- tccli/services/cwp/cwp_client.py +4 -57
- tccli/services/cwp/v20180228/api.json +0 -184
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +1 -1
- tccli/services/cynosdb/v20190107/examples.json +1 -1
- tccli/services/dcdb/dcdb_client.py +122 -16
- tccli/services/dcdb/v20180411/api.json +222 -0
- tccli/services/dcdb/v20180411/examples.json +16 -0
- tccli/services/dlc/v20210125/api.json +145 -26
- tccli/services/dlc/v20210125/examples.json +18 -18
- tccli/services/domain/v20180808/api.json +8 -8
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/es/v20180416/api.json +9 -9
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +5 -5
- tccli/services/faceid/v20180301/examples.json +6 -0
- tccli/services/gme/v20180711/api.json +118 -115
- tccli/services/gme/v20180711/examples.json +6 -6
- tccli/services/hunyuan/v20230901/api.json +9 -0
- tccli/services/iotexplorer/v20190423/api.json +4 -4
- tccli/services/iotexplorer/v20190423/examples.json +5 -5
- tccli/services/keewidb/v20220308/api.json +2 -2
- tccli/services/lcic/v20220817/api.json +177 -177
- tccli/services/lcic/v20220817/examples.json +2 -2
- tccli/services/lighthouse/v20200324/api.json +76 -67
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +31 -0
- tccli/services/lkeap/v20240522/api.json +55 -9
- tccli/services/lkeap/v20240522/examples.json +1 -1
- tccli/services/mna/mna_client.py +106 -0
- tccli/services/mna/v20210119/api.json +246 -0
- tccli/services/mna/v20210119/examples.json +16 -0
- tccli/services/monitor/monitor_client.py +62 -57
- tccli/services/monitor/v20230616/api.json +266 -0
- tccli/services/monitor/v20230616/examples.json +19 -0
- tccli/services/mqtt/mqtt_client.py +489 -12
- tccli/services/mqtt/v20240516/api.json +864 -3
- tccli/services/mqtt/v20240516/examples.json +72 -0
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +246 -1
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/postgres/postgres_client.py +334 -16
- tccli/services/postgres/v20170312/api.json +717 -34
- tccli/services/postgres/v20170312/examples.json +72 -0
- tccli/services/ssl/v20191205/api.json +496 -493
- tccli/services/ssl/v20191205/examples.json +144 -24
- tccli/services/taf/taf_client.py +0 -159
- tccli/services/taf/v20200210/api.json +0 -665
- tccli/services/taf/v20200210/examples.json +0 -24
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/tione/v20211111/api.json +14 -3
- tccli/services/trabbit/__init__.py +4 -0
- tccli/services/trabbit/trabbit_client.py +1691 -0
- tccli/services/trabbit/v20230418/api.json +4773 -0
- tccli/services/trabbit/v20230418/examples.json +237 -0
- tccli/services/trtc/v20190722/api.json +8 -8
- tccli/services/trtc/v20190722/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +0 -450
- tccli/services/vclm/v20240523/examples.json +0 -48
- tccli/services/vclm/vclm_client.py +0 -159
- tccli/services/wedata/v20210820/api.json +211 -33
- tccli/services/wedata/v20210820/examples.json +14 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/RECORD +87 -81
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/license_files/LICENSE +0 -0
@@ -1421,7 +1421,7 @@ def doModifyDBInstancesProject(args, parsed_globals):
|
|
1421
1421
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
1422
|
|
1423
1423
|
|
1424
|
-
def
|
1424
|
+
def doModifyInstanceVip(args, parsed_globals):
|
1425
1425
|
g_param = parse_global_arg(parsed_globals)
|
1426
1426
|
|
1427
1427
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1450,11 +1450,11 @@ def doCreateTmpDCDBInstance(args, parsed_globals):
|
|
1450
1450
|
client = mod.DcdbClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
1451
|
client._sdkVersion += ("_CLI_" + __version__)
|
1452
1452
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
-
model = models.
|
1453
|
+
model = models.ModifyInstanceVipRequest()
|
1454
1454
|
model.from_json_string(json.dumps(args))
|
1455
1455
|
start_time = time.time()
|
1456
1456
|
while True:
|
1457
|
-
rsp = client.
|
1457
|
+
rsp = client.ModifyInstanceVip(model)
|
1458
1458
|
result = rsp.to_json_string()
|
1459
1459
|
try:
|
1460
1460
|
json_obj = json.loads(result)
|
@@ -1473,7 +1473,7 @@ def doCreateTmpDCDBInstance(args, parsed_globals):
|
|
1473
1473
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
1474
|
|
1475
1475
|
|
1476
|
-
def
|
1476
|
+
def doDescribeOnlineDDLJob(args, parsed_globals):
|
1477
1477
|
g_param = parse_global_arg(parsed_globals)
|
1478
1478
|
|
1479
1479
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1502,11 +1502,11 @@ def doKillSession(args, parsed_globals):
|
|
1502
1502
|
client = mod.DcdbClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
1503
|
client._sdkVersion += ("_CLI_" + __version__)
|
1504
1504
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
-
model = models.
|
1505
|
+
model = models.DescribeOnlineDDLJobRequest()
|
1506
1506
|
model.from_json_string(json.dumps(args))
|
1507
1507
|
start_time = time.time()
|
1508
1508
|
while True:
|
1509
|
-
rsp = client.
|
1509
|
+
rsp = client.DescribeOnlineDDLJob(model)
|
1510
1510
|
result = rsp.to_json_string()
|
1511
1511
|
try:
|
1512
1512
|
json_obj = json.loads(result)
|
@@ -2045,6 +2045,58 @@ def doModifyInstanceNetwork(args, parsed_globals):
|
|
2045
2045
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2046
2046
|
|
2047
2047
|
|
2048
|
+
def doKillSession(args, parsed_globals):
|
2049
|
+
g_param = parse_global_arg(parsed_globals)
|
2050
|
+
|
2051
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2052
|
+
cred = credential.CVMRoleCredential()
|
2053
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2054
|
+
cred = credential.STSAssumeRoleCredential(
|
2055
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2056
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2057
|
+
)
|
2058
|
+
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):
|
2059
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2060
|
+
else:
|
2061
|
+
cred = credential.Credential(
|
2062
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2063
|
+
)
|
2064
|
+
http_profile = HttpProfile(
|
2065
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2066
|
+
reqMethod="POST",
|
2067
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2068
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2069
|
+
)
|
2070
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2071
|
+
if g_param[OptionsDefine.Language]:
|
2072
|
+
profile.language = g_param[OptionsDefine.Language]
|
2073
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2074
|
+
client = mod.DcdbClient(cred, g_param[OptionsDefine.Region], profile)
|
2075
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2076
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2077
|
+
model = models.KillSessionRequest()
|
2078
|
+
model.from_json_string(json.dumps(args))
|
2079
|
+
start_time = time.time()
|
2080
|
+
while True:
|
2081
|
+
rsp = client.KillSession(model)
|
2082
|
+
result = rsp.to_json_string()
|
2083
|
+
try:
|
2084
|
+
json_obj = json.loads(result)
|
2085
|
+
except TypeError as e:
|
2086
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2087
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2088
|
+
break
|
2089
|
+
cur_time = time.time()
|
2090
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2091
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2092
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2093
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2094
|
+
else:
|
2095
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2096
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2097
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2098
|
+
|
2099
|
+
|
2048
2100
|
def doOpenDBExtranetAccess(args, parsed_globals):
|
2049
2101
|
g_param = parse_global_arg(parsed_globals)
|
2050
2102
|
|
@@ -2773,7 +2825,7 @@ def doCreateDedicatedClusterDCDBInstance(args, parsed_globals):
|
|
2773
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
2826
|
|
2775
2827
|
|
2776
|
-
def
|
2828
|
+
def doCancelOnlineDDLJob(args, parsed_globals):
|
2777
2829
|
g_param = parse_global_arg(parsed_globals)
|
2778
2830
|
|
2779
2831
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2802,11 +2854,11 @@ def doIsolateDedicatedDBInstance(args, parsed_globals):
|
|
2802
2854
|
client = mod.DcdbClient(cred, g_param[OptionsDefine.Region], profile)
|
2803
2855
|
client._sdkVersion += ("_CLI_" + __version__)
|
2804
2856
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2805
|
-
model = models.
|
2857
|
+
model = models.CancelOnlineDDLJobRequest()
|
2806
2858
|
model.from_json_string(json.dumps(args))
|
2807
2859
|
start_time = time.time()
|
2808
2860
|
while True:
|
2809
|
-
rsp = client.
|
2861
|
+
rsp = client.CancelOnlineDDLJob(model)
|
2810
2862
|
result = rsp.to_json_string()
|
2811
2863
|
try:
|
2812
2864
|
json_obj = json.loads(result)
|
@@ -3293,7 +3345,7 @@ def doUpgradeDedicatedDCDBInstance(args, parsed_globals):
|
|
3293
3345
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3294
3346
|
|
3295
3347
|
|
3296
|
-
def
|
3348
|
+
def doIsolateDedicatedDBInstance(args, parsed_globals):
|
3297
3349
|
g_param = parse_global_arg(parsed_globals)
|
3298
3350
|
|
3299
3351
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3322,11 +3374,11 @@ def doModifyInstanceVip(args, parsed_globals):
|
|
3322
3374
|
client = mod.DcdbClient(cred, g_param[OptionsDefine.Region], profile)
|
3323
3375
|
client._sdkVersion += ("_CLI_" + __version__)
|
3324
3376
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3325
|
-
model = models.
|
3377
|
+
model = models.IsolateDedicatedDBInstanceRequest()
|
3326
3378
|
model.from_json_string(json.dumps(args))
|
3327
3379
|
start_time = time.time()
|
3328
3380
|
while True:
|
3329
|
-
rsp = client.
|
3381
|
+
rsp = client.IsolateDedicatedDBInstance(model)
|
3330
3382
|
result = rsp.to_json_string()
|
3331
3383
|
try:
|
3332
3384
|
json_obj = json.loads(result)
|
@@ -3813,6 +3865,58 @@ def doDescribeLogFileRetentionPeriod(args, parsed_globals):
|
|
3813
3865
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
3866
|
|
3815
3867
|
|
3868
|
+
def doCreateTmpDCDBInstance(args, parsed_globals):
|
3869
|
+
g_param = parse_global_arg(parsed_globals)
|
3870
|
+
|
3871
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3872
|
+
cred = credential.CVMRoleCredential()
|
3873
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3874
|
+
cred = credential.STSAssumeRoleCredential(
|
3875
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3876
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3877
|
+
)
|
3878
|
+
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):
|
3879
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3880
|
+
else:
|
3881
|
+
cred = credential.Credential(
|
3882
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3883
|
+
)
|
3884
|
+
http_profile = HttpProfile(
|
3885
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3886
|
+
reqMethod="POST",
|
3887
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3888
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3889
|
+
)
|
3890
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3891
|
+
if g_param[OptionsDefine.Language]:
|
3892
|
+
profile.language = g_param[OptionsDefine.Language]
|
3893
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3894
|
+
client = mod.DcdbClient(cred, g_param[OptionsDefine.Region], profile)
|
3895
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3896
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3897
|
+
model = models.CreateTmpDCDBInstanceRequest()
|
3898
|
+
model.from_json_string(json.dumps(args))
|
3899
|
+
start_time = time.time()
|
3900
|
+
while True:
|
3901
|
+
rsp = client.CreateTmpDCDBInstance(model)
|
3902
|
+
result = rsp.to_json_string()
|
3903
|
+
try:
|
3904
|
+
json_obj = json.loads(result)
|
3905
|
+
except TypeError as e:
|
3906
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3907
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3908
|
+
break
|
3909
|
+
cur_time = time.time()
|
3910
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3911
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3912
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3913
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3914
|
+
else:
|
3915
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3916
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3917
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
|
+
|
3919
|
+
|
3816
3920
|
def doFlushBinlog(args, parsed_globals):
|
3817
3921
|
g_param = parse_global_arg(parsed_globals)
|
3818
3922
|
|
@@ -4059,8 +4163,8 @@ ACTION_MAP = {
|
|
4059
4163
|
"DeleteAccount": doDeleteAccount,
|
4060
4164
|
"DescribeDBParameters": doDescribeDBParameters,
|
4061
4165
|
"ModifyDBInstancesProject": doModifyDBInstancesProject,
|
4062
|
-
"
|
4063
|
-
"
|
4166
|
+
"ModifyInstanceVip": doModifyInstanceVip,
|
4167
|
+
"DescribeOnlineDDLJob": doDescribeOnlineDDLJob,
|
4064
4168
|
"DescribeDBLogFiles": doDescribeDBLogFiles,
|
4065
4169
|
"CreateOnlineDDLJob": doCreateOnlineDDLJob,
|
4066
4170
|
"IsolateHourDCDBInstance": doIsolateHourDCDBInstance,
|
@@ -4071,6 +4175,7 @@ ACTION_MAP = {
|
|
4071
4175
|
"AssociateSecurityGroups": doAssociateSecurityGroups,
|
4072
4176
|
"DescribeDCDBPrice": doDescribeDCDBPrice,
|
4073
4177
|
"ModifyInstanceNetwork": doModifyInstanceNetwork,
|
4178
|
+
"KillSession": doKillSession,
|
4074
4179
|
"OpenDBExtranetAccess": doOpenDBExtranetAccess,
|
4075
4180
|
"ModifyAccountPrivileges": doModifyAccountPrivileges,
|
4076
4181
|
"DestroyDCDBInstance": doDestroyDCDBInstance,
|
@@ -4085,7 +4190,7 @@ ACTION_MAP = {
|
|
4085
4190
|
"DescribeDcnDetail": doDescribeDcnDetail,
|
4086
4191
|
"ModifyDBEncryptAttributes": doModifyDBEncryptAttributes,
|
4087
4192
|
"CreateDedicatedClusterDCDBInstance": doCreateDedicatedClusterDCDBInstance,
|
4088
|
-
"
|
4193
|
+
"CancelOnlineDDLJob": doCancelOnlineDDLJob,
|
4089
4194
|
"CopyAccountPrivileges": doCopyAccountPrivileges,
|
4090
4195
|
"DescribeDBTmpInstances": doDescribeDBTmpInstances,
|
4091
4196
|
"DescribeDCDBShards": doDescribeDCDBShards,
|
@@ -4095,7 +4200,7 @@ ACTION_MAP = {
|
|
4095
4200
|
"IsolateDCDBInstance": doIsolateDCDBInstance,
|
4096
4201
|
"ModifyInstanceVport": doModifyInstanceVport,
|
4097
4202
|
"UpgradeDedicatedDCDBInstance": doUpgradeDedicatedDCDBInstance,
|
4098
|
-
"
|
4203
|
+
"IsolateDedicatedDBInstance": doIsolateDedicatedDBInstance,
|
4099
4204
|
"DescribeDatabaseTable": doDescribeDatabaseTable,
|
4100
4205
|
"CancelDcnJob": doCancelDcnJob,
|
4101
4206
|
"TerminateDedicatedDBInstance": doTerminateDedicatedDBInstance,
|
@@ -4105,6 +4210,7 @@ ACTION_MAP = {
|
|
4105
4210
|
"ModifyBackupConfigs": doModifyBackupConfigs,
|
4106
4211
|
"ModifyDBInstanceName": doModifyDBInstanceName,
|
4107
4212
|
"DescribeLogFileRetentionPeriod": doDescribeLogFileRetentionPeriod,
|
4213
|
+
"CreateTmpDCDBInstance": doCreateTmpDCDBInstance,
|
4108
4214
|
"FlushBinlog": doFlushBinlog,
|
4109
4215
|
"DescribeDBEncryptAttributes": doDescribeDBEncryptAttributes,
|
4110
4216
|
"DescribeDCDBRenewalPrice": doDescribeDCDBRenewalPrice,
|
@@ -21,6 +21,13 @@
|
|
21
21
|
"output": "CancelDcnJobResponse",
|
22
22
|
"status": "online"
|
23
23
|
},
|
24
|
+
"CancelOnlineDDLJob": {
|
25
|
+
"document": "取消 Online DDL 任务",
|
26
|
+
"input": "CancelOnlineDDLJobRequest",
|
27
|
+
"name": "取消在线DDL任务",
|
28
|
+
"output": "CancelOnlineDDLJobResponse",
|
29
|
+
"status": "online"
|
30
|
+
},
|
24
31
|
"CloneAccount": {
|
25
32
|
"document": "本接口(CloneAccount)用于克隆实例账户。",
|
26
33
|
"input": "CloneAccountRequest",
|
@@ -280,6 +287,13 @@
|
|
280
287
|
"output": "DescribeLogFileRetentionPeriodResponse",
|
281
288
|
"status": "online"
|
282
289
|
},
|
290
|
+
"DescribeOnlineDDLJob": {
|
291
|
+
"document": "查询Online DDL 任务详情",
|
292
|
+
"input": "DescribeOnlineDDLJobRequest",
|
293
|
+
"name": "查询在线DDL任务",
|
294
|
+
"output": "DescribeOnlineDDLJobResponse",
|
295
|
+
"status": "online"
|
296
|
+
},
|
283
297
|
"DescribeOrders": {
|
284
298
|
"document": "本接口(DescribeOrders)用于查询分布式数据库订单信息。传入订单ID来查询订单关联的分布式数据库实例,和对应的任务流程ID。",
|
285
299
|
"input": "DescribeOrdersRequest",
|
@@ -838,6 +852,42 @@
|
|
838
852
|
],
|
839
853
|
"type": "object"
|
840
854
|
},
|
855
|
+
"CancelOnlineDDLJobRequest": {
|
856
|
+
"document": "CancelOnlineDDLJob请求参数结构体",
|
857
|
+
"members": [
|
858
|
+
{
|
859
|
+
"disabled": false,
|
860
|
+
"document": "实例Id",
|
861
|
+
"example": "tdsqlshard-8jbp1qpv",
|
862
|
+
"member": "string",
|
863
|
+
"name": "InstanceId",
|
864
|
+
"required": true,
|
865
|
+
"type": "string"
|
866
|
+
},
|
867
|
+
{
|
868
|
+
"disabled": false,
|
869
|
+
"document": "要暂停的 Online DDL 任务对应的流程Id。创建任务时,CreateOnlineDDLJob 会返回此流程Id",
|
870
|
+
"example": "12357",
|
871
|
+
"member": "uint64",
|
872
|
+
"name": "FlowId",
|
873
|
+
"required": true,
|
874
|
+
"type": "int"
|
875
|
+
}
|
876
|
+
],
|
877
|
+
"type": "object"
|
878
|
+
},
|
879
|
+
"CancelOnlineDDLJobResponse": {
|
880
|
+
"document": "CancelOnlineDDLJob返回参数结构体",
|
881
|
+
"members": [
|
882
|
+
{
|
883
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
884
|
+
"member": "string",
|
885
|
+
"name": "RequestId",
|
886
|
+
"type": "string"
|
887
|
+
}
|
888
|
+
],
|
889
|
+
"type": "object"
|
890
|
+
},
|
841
891
|
"CloneAccountRequest": {
|
842
892
|
"document": "CloneAccount请求参数结构体",
|
843
893
|
"members": [
|
@@ -3142,6 +3192,102 @@
|
|
3142
3192
|
],
|
3143
3193
|
"usage": "out"
|
3144
3194
|
},
|
3195
|
+
"DDLDetail": {
|
3196
|
+
"document": "DDL任务执行详情",
|
3197
|
+
"members": [
|
3198
|
+
{
|
3199
|
+
"disabled": false,
|
3200
|
+
"document": "分片Id",
|
3201
|
+
"example": "set_1729674200_1",
|
3202
|
+
"member": "string",
|
3203
|
+
"name": "ShardSerialId",
|
3204
|
+
"output_required": false,
|
3205
|
+
"type": "string",
|
3206
|
+
"value_allowed_null": false
|
3207
|
+
},
|
3208
|
+
{
|
3209
|
+
"disabled": false,
|
3210
|
+
"document": "数据库",
|
3211
|
+
"example": "product_db",
|
3212
|
+
"member": "string",
|
3213
|
+
"name": "DbName",
|
3214
|
+
"output_required": false,
|
3215
|
+
"type": "string",
|
3216
|
+
"value_allowed_null": false
|
3217
|
+
},
|
3218
|
+
{
|
3219
|
+
"disabled": false,
|
3220
|
+
"document": "表",
|
3221
|
+
"example": "user_tbl",
|
3222
|
+
"member": "string",
|
3223
|
+
"name": "Table",
|
3224
|
+
"output_required": false,
|
3225
|
+
"type": "string",
|
3226
|
+
"value_allowed_null": false
|
3227
|
+
},
|
3228
|
+
{
|
3229
|
+
"disabled": false,
|
3230
|
+
"document": "执行的DDL任务内容",
|
3231
|
+
"example": "add column add_col_2 varchar(32);",
|
3232
|
+
"member": "string",
|
3233
|
+
"name": "Alter",
|
3234
|
+
"output_required": false,
|
3235
|
+
"type": "string",
|
3236
|
+
"value_allowed_null": false
|
3237
|
+
},
|
3238
|
+
{
|
3239
|
+
"disabled": false,
|
3240
|
+
"document": "开始执行时间",
|
3241
|
+
"example": "2025-01-16 16:26:15 +0800 CST",
|
3242
|
+
"member": "string",
|
3243
|
+
"name": "BeginTime",
|
3244
|
+
"output_required": false,
|
3245
|
+
"type": "string",
|
3246
|
+
"value_allowed_null": false
|
3247
|
+
},
|
3248
|
+
{
|
3249
|
+
"disabled": false,
|
3250
|
+
"document": "当前任务状态。0 成功; 1失败; 2进行中",
|
3251
|
+
"example": "2",
|
3252
|
+
"member": "int64",
|
3253
|
+
"name": "Status",
|
3254
|
+
"output_required": false,
|
3255
|
+
"type": "int",
|
3256
|
+
"value_allowed_null": false
|
3257
|
+
},
|
3258
|
+
{
|
3259
|
+
"disabled": false,
|
3260
|
+
"document": "任务详细描述信息",
|
3261
|
+
"example": "job is waiting to start",
|
3262
|
+
"member": "string",
|
3263
|
+
"name": "Desc",
|
3264
|
+
"output_required": false,
|
3265
|
+
"type": "string",
|
3266
|
+
"value_allowed_null": false
|
3267
|
+
},
|
3268
|
+
{
|
3269
|
+
"disabled": false,
|
3270
|
+
"document": "任务当前所处阶段",
|
3271
|
+
"example": "wating_start",
|
3272
|
+
"member": "string",
|
3273
|
+
"name": "Stage",
|
3274
|
+
"output_required": false,
|
3275
|
+
"type": "string",
|
3276
|
+
"value_allowed_null": false
|
3277
|
+
},
|
3278
|
+
{
|
3279
|
+
"disabled": false,
|
3280
|
+
"document": "切换状态:1: 未到切换阶段;2:正在等待进行表切换;3: 正在进行切换;4: 切换成功;5: 切换失败",
|
3281
|
+
"example": "1",
|
3282
|
+
"member": "int64",
|
3283
|
+
"name": "SwitchStatus",
|
3284
|
+
"output_required": false,
|
3285
|
+
"type": "int",
|
3286
|
+
"value_allowed_null": false
|
3287
|
+
}
|
3288
|
+
],
|
3289
|
+
"usage": "out"
|
3290
|
+
},
|
3145
3291
|
"Database": {
|
3146
3292
|
"document": "数据库信息",
|
3147
3293
|
"members": [
|
@@ -6270,6 +6416,82 @@
|
|
6270
6416
|
],
|
6271
6417
|
"type": "object"
|
6272
6418
|
},
|
6419
|
+
"DescribeOnlineDDLJobRequest": {
|
6420
|
+
"document": "DescribeOnlineDDLJob请求参数结构体",
|
6421
|
+
"members": [
|
6422
|
+
{
|
6423
|
+
"disabled": false,
|
6424
|
+
"document": "实例Id",
|
6425
|
+
"example": "tdsqlshard-8jbp1qpv",
|
6426
|
+
"member": "string",
|
6427
|
+
"name": "InstanceId",
|
6428
|
+
"required": true,
|
6429
|
+
"type": "string"
|
6430
|
+
},
|
6431
|
+
{
|
6432
|
+
"disabled": false,
|
6433
|
+
"document": "Online DDL 对应的流程Id。创建任务时,CreateOnlineDDLJob 会返回此流程Id",
|
6434
|
+
"example": "12357",
|
6435
|
+
"member": "uint64",
|
6436
|
+
"name": "FlowId",
|
6437
|
+
"required": true,
|
6438
|
+
"type": "int"
|
6439
|
+
}
|
6440
|
+
],
|
6441
|
+
"type": "object"
|
6442
|
+
},
|
6443
|
+
"DescribeOnlineDDLJobResponse": {
|
6444
|
+
"document": "DescribeOnlineDDLJob返回参数结构体",
|
6445
|
+
"members": [
|
6446
|
+
{
|
6447
|
+
"disabled": false,
|
6448
|
+
"document": "任务状态。0:成功;1:失败;大于1:进行中",
|
6449
|
+
"example": "0",
|
6450
|
+
"member": "int64",
|
6451
|
+
"name": "Status",
|
6452
|
+
"output_required": true,
|
6453
|
+
"type": "int",
|
6454
|
+
"value_allowed_null": false
|
6455
|
+
},
|
6456
|
+
{
|
6457
|
+
"disabled": false,
|
6458
|
+
"document": "任务进度百分比",
|
6459
|
+
"example": "50",
|
6460
|
+
"member": "int64",
|
6461
|
+
"name": "Process",
|
6462
|
+
"output_required": true,
|
6463
|
+
"type": "int",
|
6464
|
+
"value_allowed_null": false
|
6465
|
+
},
|
6466
|
+
{
|
6467
|
+
"disabled": false,
|
6468
|
+
"document": "错误信息或提示信息",
|
6469
|
+
"example": "ok",
|
6470
|
+
"member": "string",
|
6471
|
+
"name": "ErrorMessage",
|
6472
|
+
"output_required": true,
|
6473
|
+
"type": "string",
|
6474
|
+
"value_allowed_null": false
|
6475
|
+
},
|
6476
|
+
{
|
6477
|
+
"disabled": false,
|
6478
|
+
"document": "各分片DDL执行详情",
|
6479
|
+
"example": "无",
|
6480
|
+
"member": "DDLDetail",
|
6481
|
+
"name": "DDLDetails",
|
6482
|
+
"output_required": false,
|
6483
|
+
"type": "list",
|
6484
|
+
"value_allowed_null": false
|
6485
|
+
},
|
6486
|
+
{
|
6487
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6488
|
+
"member": "string",
|
6489
|
+
"name": "RequestId",
|
6490
|
+
"type": "string"
|
6491
|
+
}
|
6492
|
+
],
|
6493
|
+
"type": "object"
|
6494
|
+
},
|
6273
6495
|
"DescribeOrdersRequest": {
|
6274
6496
|
"document": "DescribeOrders请求参数结构体",
|
6275
6497
|
"members": [
|
@@ -24,6 +24,14 @@
|
|
24
24
|
"title": "无"
|
25
25
|
}
|
26
26
|
],
|
27
|
+
"CancelOnlineDDLJob": [
|
28
|
+
{
|
29
|
+
"document": "取消 Online DDL 任务,未返回错误信息说明成功取消",
|
30
|
+
"input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CancelOnlineDDLJob\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-a2csrmsr\",\n \"FlowId\": 1143769\n}",
|
31
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"9524d8fa-8598-414a-a3a1-4134c9631ca2\"\n }\n}",
|
32
|
+
"title": "取消 Online DDL 任务"
|
33
|
+
}
|
34
|
+
],
|
27
35
|
"CloneAccount": [
|
28
36
|
{
|
29
37
|
"document": "",
|
@@ -350,6 +358,14 @@
|
|
350
358
|
"title": "查看备份日志备份天数"
|
351
359
|
}
|
352
360
|
],
|
361
|
+
"DescribeOnlineDDLJob": [
|
362
|
+
{
|
363
|
+
"document": "",
|
364
|
+
"input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOnlineDDLJob\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-a2csrmsr\",\n \"FlowId\": 1143769\n}",
|
365
|
+
"output": "{\n \"Response\": {\n \"DDLDetails\": [\n {\n \"Alter\": \"add column add_col1;\",\n \"BeginTime\": \"2025-01-16 16:26:15 +0800 CST\",\n \"DbName\": \"db_prod\",\n \"Desc\": \"Error Error altering new table `db_prod`.`_tbl_user_new`: DBD::mysql::db do failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [for Statement \\\"ALTER TABLE `db_prod`.`_tbl_user_new` add column add_col1;\\\"] at ./pt-online-schema-change line 9121.\\n\",\n \"ShardSerialId\": \"set_1734351063_1\",\n \"Stage\": \"before_alter_new_table\",\n \"Status\": 1,\n \"SwitchStatus\": 0,\n \"Table\": \"tbl_user\"\n }\n ],\n \"ErrorMessage\": \"Error Error altering new table `db_prod`.`_tbl_user_new`: DBD::mysql::db do failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [for Statement \\\"ALTER TABLE `db_prod`.`_tbl_user_new` add column add_col1;\\\"] at ./pt-online-schema-change line 9121.\\n\",\n \"Process\": 100,\n \"RequestId\": \"9524d8fa-8598-414a-a3a1-4134c9631ca2\",\n \"Status\": 1\n }\n}",
|
366
|
+
"title": "查询OnlineDDL任务详情"
|
367
|
+
}
|
368
|
+
],
|
353
369
|
"DescribeOrders": [
|
354
370
|
{
|
355
371
|
"document": "",
|