tccli 3.0.1182.1__py2.py3-none-any.whl → 3.0.1183.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/ams/v20201229/api.json +20 -0
- tccli/services/ams/v20201229/examples.json +1 -1
- tccli/services/asr/asr_client.py +229 -17
- tccli/services/asr/v20190614/api.json +379 -0
- tccli/services/asr/v20190614/examples.json +32 -0
- tccli/services/bi/v20220105/api.json +10 -0
- tccli/services/cdwdoris/v20211228/api.json +52 -8
- tccli/services/cdwdoris/v20211228/examples.json +2 -2
- tccli/services/cfg/v20210820/api.json +134 -11
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +44 -0
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/ckafka/v20190819/api.json +46 -16
- tccli/services/ckafka/v20190819/examples.json +8 -8
- tccli/services/clb/v20180317/api.json +40 -1
- tccli/services/cynosdb/cynosdb_client.py +110 -4
- tccli/services/cynosdb/v20190107/api.json +246 -0
- tccli/services/cynosdb/v20190107/examples.json +16 -0
- tccli/services/dasb/v20191018/api.json +9 -0
- tccli/services/dbbrain/v20210527/api.json +15 -15
- tccli/services/dc/v20180410/api.json +117 -73
- tccli/services/dc/v20180410/examples.json +11 -11
- tccli/services/dcdb/dcdb_client.py +53 -0
- tccli/services/dcdb/v20180411/api.json +54 -0
- tccli/services/dcdb/v20180411/examples.json +8 -0
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +52 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +63 -0
- tccli/services/es/v20180416/examples.json +8 -0
- tccli/services/essbasic/v20210526/api.json +8 -8
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/ims/v20201229/api.json +1 -1
- tccli/services/iss/v20230517/api.json +18 -0
- tccli/services/iss/v20230517/examples.json +3 -3
- tccli/services/lke/v20231130/api.json +141 -2
- tccli/services/mariadb/mariadb_client.py +57 -4
- tccli/services/mariadb/v20170312/api.json +54 -0
- tccli/services/mariadb/v20170312/examples.json +8 -0
- tccli/services/oceanus/v20190422/api.json +10 -0
- tccli/services/ocr/v20181119/api.json +7 -7
- tccli/services/postgres/v20170312/api.json +3 -0
- tccli/services/scf/v20180416/api.json +8 -8
- tccli/services/sms/v20190711/api.json +49 -49
- tccli/services/sms/v20190711/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +3 -3
- tccli/services/ssl/v20191205/examples.json +2 -2
- tccli/services/tdmq/v20200217/api.json +170 -93
- tccli/services/tdmq/v20200217/examples.json +8 -8
- tccli/services/tke/v20180525/api.json +14 -2
- tccli/services/tke/v20180525/examples.json +3 -3
- tccli/services/tmt/v20180321/api.json +1 -1
- tccli/services/trocket/v20230308/api.json +62 -12
- tccli/services/vpc/v20170312/api.json +23 -0
- tccli/services/wedata/v20210820/api.json +176 -0
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1182.1.dist-info → tccli-3.0.1183.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1182.1.dist-info → tccli-3.0.1183.1.dist-info}/RECORD +64 -64
- {tccli-3.0.1182.1.dist-info → tccli-3.0.1183.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1182.1.dist-info → tccli-3.0.1183.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1182.1.dist-info → tccli-3.0.1183.1.dist-info}/license_files/LICENSE +0 -0
@@ -2757,6 +2757,15 @@
|
|
2757
2757
|
"name": "SnatEnable",
|
2758
2758
|
"required": false,
|
2759
2759
|
"type": "bool"
|
2760
|
+
},
|
2761
|
+
{
|
2762
|
+
"disabled": false,
|
2763
|
+
"document": "全端口段监听器的结束端口",
|
2764
|
+
"example": "[600]",
|
2765
|
+
"member": "int64",
|
2766
|
+
"name": "FullEndPorts",
|
2767
|
+
"required": false,
|
2768
|
+
"type": "list"
|
2760
2769
|
}
|
2761
2770
|
],
|
2762
2771
|
"type": "object"
|
@@ -7765,7 +7774,7 @@
|
|
7765
7774
|
},
|
7766
7775
|
{
|
7767
7776
|
"disabled": false,
|
7768
|
-
"document": "负载均衡实例的网络类型:\
|
7777
|
+
"document": "负载均衡实例的网络类型:\nOPEN:公网属性,INTERNAL:内网属性。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7769
7778
|
"example": "OPEN",
|
7770
7779
|
"member": "string",
|
7771
7780
|
"name": "LoadBalancerType",
|
@@ -8132,6 +8141,36 @@
|
|
8132
8141
|
"output_required": true,
|
8133
8142
|
"type": "string",
|
8134
8143
|
"value_allowed_null": true
|
8144
|
+
},
|
8145
|
+
{
|
8146
|
+
"disabled": false,
|
8147
|
+
"document": "负载均衡的属性\n注意:此字段可能返回 null,表示取不到有效值。",
|
8148
|
+
"example": "DeleteProtect",
|
8149
|
+
"member": "string",
|
8150
|
+
"name": "AttributeFlags",
|
8151
|
+
"output_required": false,
|
8152
|
+
"type": "list",
|
8153
|
+
"value_allowed_null": true
|
8154
|
+
},
|
8155
|
+
{
|
8156
|
+
"disabled": false,
|
8157
|
+
"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\n注意:此字段可能返回 null,表示取不到有效值。",
|
8158
|
+
"example": "clb.c2.medium",
|
8159
|
+
"member": "string",
|
8160
|
+
"name": "SlaType",
|
8161
|
+
"output_required": false,
|
8162
|
+
"type": "string",
|
8163
|
+
"value_allowed_null": true
|
8164
|
+
},
|
8165
|
+
{
|
8166
|
+
"disabled": false,
|
8167
|
+
"document": "0:表示非独占型实例,1:表示独占型态实例。\n注意:此字段可能返回 null,表示取不到有效值。",
|
8168
|
+
"example": "1",
|
8169
|
+
"member": "uint64",
|
8170
|
+
"name": "Exclusive",
|
8171
|
+
"output_required": false,
|
8172
|
+
"type": "int",
|
8173
|
+
"value_allowed_null": true
|
8135
8174
|
}
|
8136
8175
|
],
|
8137
8176
|
"usage": "out"
|
@@ -3917,6 +3917,58 @@ def doDeleteBackup(args, parsed_globals):
|
|
3917
3917
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
3918
|
|
3919
3919
|
|
3920
|
+
def doDescribeServerlessStrategy(args, parsed_globals):
|
3921
|
+
g_param = parse_global_arg(parsed_globals)
|
3922
|
+
|
3923
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3924
|
+
cred = credential.CVMRoleCredential()
|
3925
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3926
|
+
cred = credential.STSAssumeRoleCredential(
|
3927
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3928
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3929
|
+
)
|
3930
|
+
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):
|
3931
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3932
|
+
else:
|
3933
|
+
cred = credential.Credential(
|
3934
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3935
|
+
)
|
3936
|
+
http_profile = HttpProfile(
|
3937
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3938
|
+
reqMethod="POST",
|
3939
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3940
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3941
|
+
)
|
3942
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3943
|
+
if g_param[OptionsDefine.Language]:
|
3944
|
+
profile.language = g_param[OptionsDefine.Language]
|
3945
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3946
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
3947
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3948
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3949
|
+
model = models.DescribeServerlessStrategyRequest()
|
3950
|
+
model.from_json_string(json.dumps(args))
|
3951
|
+
start_time = time.time()
|
3952
|
+
while True:
|
3953
|
+
rsp = client.DescribeServerlessStrategy(model)
|
3954
|
+
result = rsp.to_json_string()
|
3955
|
+
try:
|
3956
|
+
json_obj = json.loads(result)
|
3957
|
+
except TypeError as e:
|
3958
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3959
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3960
|
+
break
|
3961
|
+
cur_time = time.time()
|
3962
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3963
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3964
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3965
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3966
|
+
else:
|
3967
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3968
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3969
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3970
|
+
|
3971
|
+
|
3920
3972
|
def doPauseServerless(args, parsed_globals):
|
3921
3973
|
g_param = parse_global_arg(parsed_globals)
|
3922
3974
|
|
@@ -5633,7 +5685,7 @@ def doModifyAccountDescription(args, parsed_globals):
|
|
5633
5685
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5634
5686
|
|
5635
5687
|
|
5636
|
-
def
|
5688
|
+
def doModifyServerlessStrategy(args, parsed_globals):
|
5637
5689
|
g_param = parse_global_arg(parsed_globals)
|
5638
5690
|
|
5639
5691
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5662,11 +5714,11 @@ def doSwitchClusterVpc(args, parsed_globals):
|
|
5662
5714
|
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
5663
5715
|
client._sdkVersion += ("_CLI_" + __version__)
|
5664
5716
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5665
|
-
model = models.
|
5717
|
+
model = models.ModifyServerlessStrategyRequest()
|
5666
5718
|
model.from_json_string(json.dumps(args))
|
5667
5719
|
start_time = time.time()
|
5668
5720
|
while True:
|
5669
|
-
rsp = client.
|
5721
|
+
rsp = client.ModifyServerlessStrategy(model)
|
5670
5722
|
result = rsp.to_json_string()
|
5671
5723
|
try:
|
5672
5724
|
json_obj = json.loads(result)
|
@@ -6673,6 +6725,58 @@ def doDescribeBackupDownloadUrl(args, parsed_globals):
|
|
6673
6725
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6674
6726
|
|
6675
6727
|
|
6728
|
+
def doSwitchClusterVpc(args, parsed_globals):
|
6729
|
+
g_param = parse_global_arg(parsed_globals)
|
6730
|
+
|
6731
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6732
|
+
cred = credential.CVMRoleCredential()
|
6733
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6734
|
+
cred = credential.STSAssumeRoleCredential(
|
6735
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6736
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6737
|
+
)
|
6738
|
+
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):
|
6739
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6740
|
+
else:
|
6741
|
+
cred = credential.Credential(
|
6742
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6743
|
+
)
|
6744
|
+
http_profile = HttpProfile(
|
6745
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6746
|
+
reqMethod="POST",
|
6747
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6748
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6749
|
+
)
|
6750
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6751
|
+
if g_param[OptionsDefine.Language]:
|
6752
|
+
profile.language = g_param[OptionsDefine.Language]
|
6753
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6754
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
6755
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6756
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6757
|
+
model = models.SwitchClusterVpcRequest()
|
6758
|
+
model.from_json_string(json.dumps(args))
|
6759
|
+
start_time = time.time()
|
6760
|
+
while True:
|
6761
|
+
rsp = client.SwitchClusterVpc(model)
|
6762
|
+
result = rsp.to_json_string()
|
6763
|
+
try:
|
6764
|
+
json_obj = json.loads(result)
|
6765
|
+
except TypeError as e:
|
6766
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6767
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6768
|
+
break
|
6769
|
+
cur_time = time.time()
|
6770
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6771
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6772
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6773
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6774
|
+
else:
|
6775
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6776
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6777
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6778
|
+
|
6779
|
+
|
6676
6780
|
def doCreateProxy(args, parsed_globals):
|
6677
6781
|
g_param = parse_global_arg(parsed_globals)
|
6678
6782
|
|
@@ -7695,6 +7799,7 @@ ACTION_MAP = {
|
|
7695
7799
|
"SearchClusterTables": doSearchClusterTables,
|
7696
7800
|
"DescribeParamTemplates": doDescribeParamTemplates,
|
7697
7801
|
"DeleteBackup": doDeleteBackup,
|
7802
|
+
"DescribeServerlessStrategy": doDescribeServerlessStrategy,
|
7698
7803
|
"PauseServerless": doPauseServerless,
|
7699
7804
|
"ModifyAccountHost": doModifyAccountHost,
|
7700
7805
|
"ResetAccountPassword": doResetAccountPassword,
|
@@ -7728,7 +7833,7 @@ ACTION_MAP = {
|
|
7728
7833
|
"StopCLSDelivery": doStopCLSDelivery,
|
7729
7834
|
"DescribeBackupList": doDescribeBackupList,
|
7730
7835
|
"ModifyAccountDescription": doModifyAccountDescription,
|
7731
|
-
"
|
7836
|
+
"ModifyServerlessStrategy": doModifyServerlessStrategy,
|
7732
7837
|
"CreateClusterDatabase": doCreateClusterDatabase,
|
7733
7838
|
"ModifyResourcePackageName": doModifyResourcePackageName,
|
7734
7839
|
"DeleteAuditLogFile": doDeleteAuditLogFile,
|
@@ -7748,6 +7853,7 @@ ACTION_MAP = {
|
|
7748
7853
|
"ModifyAuditService": doModifyAuditService,
|
7749
7854
|
"DescribeZones": doDescribeZones,
|
7750
7855
|
"DescribeBackupDownloadUrl": doDescribeBackupDownloadUrl,
|
7856
|
+
"SwitchClusterVpc": doSwitchClusterVpc,
|
7751
7857
|
"CreateProxy": doCreateProxy,
|
7752
7858
|
"ModifyDBInstanceSecurityGroups": doModifyDBInstanceSecurityGroups,
|
7753
7859
|
"CreateCLSDelivery": doCreateCLSDelivery,
|
@@ -525,6 +525,13 @@
|
|
525
525
|
"output": "DescribeRollbackTimeValidityResponse",
|
526
526
|
"status": "deprecated"
|
527
527
|
},
|
528
|
+
"DescribeServerlessStrategy": {
|
529
|
+
"document": "查询serverless策略",
|
530
|
+
"input": "DescribeServerlessStrategyRequest",
|
531
|
+
"name": "查询serverless策略",
|
532
|
+
"output": "DescribeServerlessStrategyResponse",
|
533
|
+
"status": "online"
|
534
|
+
},
|
528
535
|
"DescribeSupportProxyVersion": {
|
529
536
|
"document": "查询支持的数据库代理版本",
|
530
537
|
"input": "DescribeSupportProxyVersionRequest",
|
@@ -798,6 +805,13 @@
|
|
798
805
|
"output": "ModifyResourcePackagesDeductionPriorityResponse",
|
799
806
|
"status": "online"
|
800
807
|
},
|
808
|
+
"ModifyServerlessStrategy": {
|
809
|
+
"document": "修改serverless策略",
|
810
|
+
"input": "ModifyServerlessStrategyRequest",
|
811
|
+
"name": "修改serverless策略",
|
812
|
+
"output": "ModifyServerlessStrategyResponse",
|
813
|
+
"status": "online"
|
814
|
+
},
|
801
815
|
"ModifyVipVport": {
|
802
816
|
"document": "修改实例组ip,端口",
|
803
817
|
"input": "ModifyVipVportRequest",
|
@@ -11487,6 +11501,93 @@
|
|
11487
11501
|
],
|
11488
11502
|
"type": "object"
|
11489
11503
|
},
|
11504
|
+
"DescribeServerlessStrategyRequest": {
|
11505
|
+
"document": "DescribeServerlessStrategy请求参数结构体",
|
11506
|
+
"members": [
|
11507
|
+
{
|
11508
|
+
"disabled": false,
|
11509
|
+
"document": "serverless集群id",
|
11510
|
+
"example": "cynosdbmysql-xxx",
|
11511
|
+
"member": "string",
|
11512
|
+
"name": "ClusterId",
|
11513
|
+
"required": true,
|
11514
|
+
"type": "string"
|
11515
|
+
}
|
11516
|
+
],
|
11517
|
+
"type": "object"
|
11518
|
+
},
|
11519
|
+
"DescribeServerlessStrategyResponse": {
|
11520
|
+
"document": "DescribeServerlessStrategy返回参数结构体",
|
11521
|
+
"members": [
|
11522
|
+
{
|
11523
|
+
"disabled": false,
|
11524
|
+
"document": "cpu负载为 0 时持续多久(秒)发起自动暂停",
|
11525
|
+
"example": "300",
|
11526
|
+
"member": "int64",
|
11527
|
+
"name": "AutoPauseDelay",
|
11528
|
+
"output_required": true,
|
11529
|
+
"type": "int",
|
11530
|
+
"value_allowed_null": false
|
11531
|
+
},
|
11532
|
+
{
|
11533
|
+
"disabled": false,
|
11534
|
+
"document": "cpu负载超过当前规格核数时,持续多久(秒)发起自动扩容",
|
11535
|
+
"example": "30",
|
11536
|
+
"member": "int64",
|
11537
|
+
"name": "AutoScaleUpDelay",
|
11538
|
+
"output_required": true,
|
11539
|
+
"type": "int",
|
11540
|
+
"value_allowed_null": false
|
11541
|
+
},
|
11542
|
+
{
|
11543
|
+
"disabled": false,
|
11544
|
+
"document": "cpu 负载低于低一级规格核数时,持续多久(秒)发起自动缩容",
|
11545
|
+
"example": "60",
|
11546
|
+
"member": "int64",
|
11547
|
+
"name": "AutoScaleDownDelay",
|
11548
|
+
"output_required": true,
|
11549
|
+
"type": "int",
|
11550
|
+
"value_allowed_null": false
|
11551
|
+
},
|
11552
|
+
{
|
11553
|
+
"disabled": false,
|
11554
|
+
"document": "是否自动暂停,可能值:\nyes\nno",
|
11555
|
+
"example": "yes",
|
11556
|
+
"member": "string",
|
11557
|
+
"name": "AutoPause",
|
11558
|
+
"output_required": true,
|
11559
|
+
"type": "string",
|
11560
|
+
"value_allowed_null": false
|
11561
|
+
},
|
11562
|
+
{
|
11563
|
+
"disabled": false,
|
11564
|
+
"document": "集群是否允许向上扩容,可选范围<li>yes</li><li>no</li>",
|
11565
|
+
"example": "yes",
|
11566
|
+
"member": "string",
|
11567
|
+
"name": "AutoScaleUp",
|
11568
|
+
"output_required": false,
|
11569
|
+
"type": "string",
|
11570
|
+
"value_allowed_null": false
|
11571
|
+
},
|
11572
|
+
{
|
11573
|
+
"disabled": false,
|
11574
|
+
"document": "集群是否允许向下缩容,可选范围<li>yes</li><li>no</li>",
|
11575
|
+
"example": "yes",
|
11576
|
+
"member": "string",
|
11577
|
+
"name": "AutoScaleDown",
|
11578
|
+
"output_required": false,
|
11579
|
+
"type": "string",
|
11580
|
+
"value_allowed_null": false
|
11581
|
+
},
|
11582
|
+
{
|
11583
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11584
|
+
"member": "string",
|
11585
|
+
"name": "RequestId",
|
11586
|
+
"type": "string"
|
11587
|
+
}
|
11588
|
+
],
|
11589
|
+
"type": "object"
|
11590
|
+
},
|
11490
11591
|
"DescribeSupportProxyVersionRequest": {
|
11491
11592
|
"document": "DescribeSupportProxyVersion请求参数结构体",
|
11492
11593
|
"members": [
|
@@ -15288,6 +15389,151 @@
|
|
15288
15389
|
],
|
15289
15390
|
"type": "object"
|
15290
15391
|
},
|
15392
|
+
"ModifyServerlessStrategyRequest": {
|
15393
|
+
"document": "ModifyServerlessStrategy请求参数结构体",
|
15394
|
+
"members": [
|
15395
|
+
{
|
15396
|
+
"disabled": false,
|
15397
|
+
"document": "serverless集群id",
|
15398
|
+
"example": "cynosdbmysql-8vcxoq75",
|
15399
|
+
"member": "string",
|
15400
|
+
"name": "ClusterId",
|
15401
|
+
"required": true,
|
15402
|
+
"type": "string"
|
15403
|
+
},
|
15404
|
+
{
|
15405
|
+
"disabled": false,
|
15406
|
+
"document": "集群是否自动暂停,可选范围\n<li>yes</li>\n<li>no</li>",
|
15407
|
+
"example": "no",
|
15408
|
+
"member": "string",
|
15409
|
+
"name": "AutoPause",
|
15410
|
+
"required": false,
|
15411
|
+
"type": "string"
|
15412
|
+
},
|
15413
|
+
{
|
15414
|
+
"disabled": false,
|
15415
|
+
"document": "集群自动暂停的延迟,单位秒,可选范围[600,691200],默认600",
|
15416
|
+
"example": "100",
|
15417
|
+
"member": "int64",
|
15418
|
+
"name": "AutoPauseDelay",
|
15419
|
+
"required": false,
|
15420
|
+
"type": "int"
|
15421
|
+
},
|
15422
|
+
{
|
15423
|
+
"disabled": false,
|
15424
|
+
"document": "该参数暂时无效",
|
15425
|
+
"example": "200",
|
15426
|
+
"member": "int64",
|
15427
|
+
"name": "AutoScaleUpDelay",
|
15428
|
+
"required": false,
|
15429
|
+
"type": "int"
|
15430
|
+
},
|
15431
|
+
{
|
15432
|
+
"disabled": false,
|
15433
|
+
"document": "该参数暂时无效",
|
15434
|
+
"example": "300",
|
15435
|
+
"member": "int64",
|
15436
|
+
"name": "AutoScaleDownDelay",
|
15437
|
+
"required": false,
|
15438
|
+
"type": "int"
|
15439
|
+
},
|
15440
|
+
{
|
15441
|
+
"disabled": false,
|
15442
|
+
"document": "cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回",
|
15443
|
+
"example": "0.25",
|
15444
|
+
"member": "float",
|
15445
|
+
"name": "MinCpu",
|
15446
|
+
"required": false,
|
15447
|
+
"type": "float"
|
15448
|
+
},
|
15449
|
+
{
|
15450
|
+
"disabled": false,
|
15451
|
+
"document": "cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回",
|
15452
|
+
"example": "2",
|
15453
|
+
"member": "float",
|
15454
|
+
"name": "MaxCpu",
|
15455
|
+
"required": false,
|
15456
|
+
"type": "float"
|
15457
|
+
},
|
15458
|
+
{
|
15459
|
+
"disabled": false,
|
15460
|
+
"document": "只读实例cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回",
|
15461
|
+
"example": "0.25",
|
15462
|
+
"member": "float",
|
15463
|
+
"name": "MinRoCpu",
|
15464
|
+
"required": false,
|
15465
|
+
"type": "float"
|
15466
|
+
},
|
15467
|
+
{
|
15468
|
+
"disabled": false,
|
15469
|
+
"document": "只读cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回",
|
15470
|
+
"example": "2",
|
15471
|
+
"member": "float",
|
15472
|
+
"name": "MaxRoCpu",
|
15473
|
+
"required": false,
|
15474
|
+
"type": "float"
|
15475
|
+
},
|
15476
|
+
{
|
15477
|
+
"disabled": false,
|
15478
|
+
"document": "只读节点最小个数",
|
15479
|
+
"example": "3",
|
15480
|
+
"member": "int64",
|
15481
|
+
"name": "MinRoCount",
|
15482
|
+
"required": false,
|
15483
|
+
"type": "int"
|
15484
|
+
},
|
15485
|
+
{
|
15486
|
+
"disabled": false,
|
15487
|
+
"document": "只读节点最大个数",
|
15488
|
+
"example": "3",
|
15489
|
+
"member": "int64",
|
15490
|
+
"name": "MaxRoCount",
|
15491
|
+
"required": false,
|
15492
|
+
"type": "int"
|
15493
|
+
},
|
15494
|
+
{
|
15495
|
+
"disabled": false,
|
15496
|
+
"document": "集群是否允许扩容,可选范围<li>yes</li><li>no</li>",
|
15497
|
+
"example": "yes",
|
15498
|
+
"member": "string",
|
15499
|
+
"name": "AutoScaleUp",
|
15500
|
+
"required": false,
|
15501
|
+
"type": "string"
|
15502
|
+
},
|
15503
|
+
{
|
15504
|
+
"disabled": false,
|
15505
|
+
"document": "集群是否允许缩容,可选范围<li>yes</li><li>no</li>",
|
15506
|
+
"example": "yes",
|
15507
|
+
"member": "string",
|
15508
|
+
"name": "AutoScaleDown",
|
15509
|
+
"required": false,
|
15510
|
+
"type": "string"
|
15511
|
+
}
|
15512
|
+
],
|
15513
|
+
"type": "object"
|
15514
|
+
},
|
15515
|
+
"ModifyServerlessStrategyResponse": {
|
15516
|
+
"document": "ModifyServerlessStrategy返回参数结构体",
|
15517
|
+
"members": [
|
15518
|
+
{
|
15519
|
+
"disabled": false,
|
15520
|
+
"document": "异步流程id",
|
15521
|
+
"example": "1008300",
|
15522
|
+
"member": "int64",
|
15523
|
+
"name": "FlowId",
|
15524
|
+
"output_required": true,
|
15525
|
+
"type": "int",
|
15526
|
+
"value_allowed_null": false
|
15527
|
+
},
|
15528
|
+
{
|
15529
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
15530
|
+
"member": "string",
|
15531
|
+
"name": "RequestId",
|
15532
|
+
"type": "string"
|
15533
|
+
}
|
15534
|
+
],
|
15535
|
+
"type": "object"
|
15536
|
+
},
|
15291
15537
|
"ModifyVipVportRequest": {
|
15292
15538
|
"document": "ModifyVipVport请求参数结构体",
|
15293
15539
|
"members": [
|
@@ -624,6 +624,14 @@
|
|
624
624
|
"title": "查询指定时间点是否看回档"
|
625
625
|
}
|
626
626
|
],
|
627
|
+
"DescribeServerlessStrategy": [
|
628
|
+
{
|
629
|
+
"document": "",
|
630
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeServerlessStrategy\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-xxx\"\n}",
|
631
|
+
"output": "{\n \"Response\": {\n \"AutoPauseDelay\": 300,\n \"AutoScaleDownDelay\": 60,\n \"AutoPause\": \"yes\",\n \"RequestId\": \"8727691c-3536-11eb-81e7-525400b7dd5a\",\n \"AutoScaleUpDelay\": 30\n }\n}",
|
632
|
+
"title": "查询serverless策略"
|
633
|
+
}
|
634
|
+
],
|
627
635
|
"DescribeSupportProxyVersion": [
|
628
636
|
{
|
629
637
|
"document": "查询支持的数据库代理版本",
|
@@ -936,6 +944,14 @@
|
|
936
944
|
"title": "ModifyResourcePackagesDeductionPriority"
|
937
945
|
}
|
938
946
|
],
|
947
|
+
"ModifyServerlessStrategy": [
|
948
|
+
{
|
949
|
+
"document": "修改serverless策略",
|
950
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyServerlessStrategy\n<公共请求参数>\n\n{\n \"AutoPause\": \"no\",\n \"AutoScaleUpDelay\": 200,\n \"AutoPauseDelay\": 100,\n \"MinCpu\": 0.25,\n \"MaxCpu\": 2,\n \"ClusterId\": \"cynosdbmysql-8vcxoq75\",\n \"AutoScaleDownDelay\": 300\n}",
|
951
|
+
"output": "{\n \"Response\": {\n \"FlowId\": 1008300,\n \"RequestId\": \"c3da7958-23e8-11eb-8e52-525400b7dd5a\"\n }\n}",
|
952
|
+
"title": "修改serverless策略"
|
953
|
+
}
|
954
|
+
],
|
939
955
|
"ModifyVipVport": [
|
940
956
|
{
|
941
957
|
"document": "",
|
@@ -2351,6 +2351,15 @@
|
|
2351
2351
|
"name": "DeployZone",
|
2352
2352
|
"required": false,
|
2353
2353
|
"type": "string"
|
2354
|
+
},
|
2355
|
+
{
|
2356
|
+
"disabled": false,
|
2357
|
+
"document": "0非试用版,1试用版",
|
2358
|
+
"example": "0",
|
2359
|
+
"member": "uint64",
|
2360
|
+
"name": "Trial",
|
2361
|
+
"required": false,
|
2362
|
+
"type": "int"
|
2354
2363
|
}
|
2355
2364
|
],
|
2356
2365
|
"type": "object"
|
@@ -8468,7 +8468,7 @@
|
|
8468
8468
|
"example": "2023-03-31 10:47:35",
|
8469
8469
|
"member": "string",
|
8470
8470
|
"name": "Timestamp",
|
8471
|
-
"
|
8471
|
+
"output_required": true,
|
8472
8472
|
"type": "string",
|
8473
8473
|
"value_allowed_null": false
|
8474
8474
|
},
|
@@ -8478,7 +8478,7 @@
|
|
8478
8478
|
"example": "select * from t",
|
8479
8479
|
"member": "string",
|
8480
8480
|
"name": "SqlText",
|
8481
|
-
"
|
8481
|
+
"output_required": true,
|
8482
8482
|
"type": "string",
|
8483
8483
|
"value_allowed_null": false
|
8484
8484
|
},
|
@@ -8488,7 +8488,7 @@
|
|
8488
8488
|
"example": "information_schema",
|
8489
8489
|
"member": "string",
|
8490
8490
|
"name": "Database",
|
8491
|
-
"
|
8491
|
+
"output_required": true,
|
8492
8492
|
"type": "string",
|
8493
8493
|
"value_allowed_null": false
|
8494
8494
|
},
|
@@ -8498,7 +8498,7 @@
|
|
8498
8498
|
"example": "root",
|
8499
8499
|
"member": "string",
|
8500
8500
|
"name": "UserName",
|
8501
|
-
"
|
8501
|
+
"output_required": true,
|
8502
8502
|
"type": "string",
|
8503
8503
|
"value_allowed_null": true
|
8504
8504
|
},
|
@@ -8508,28 +8508,28 @@
|
|
8508
8508
|
"example": "127.0.0.1",
|
8509
8509
|
"member": "string",
|
8510
8510
|
"name": "UserHost",
|
8511
|
-
"
|
8511
|
+
"output_required": true,
|
8512
8512
|
"type": "string",
|
8513
8513
|
"value_allowed_null": true
|
8514
8514
|
},
|
8515
8515
|
{
|
8516
8516
|
"disabled": false,
|
8517
8517
|
"document": "执行时间,单位秒",
|
8518
|
-
"example": "12",
|
8519
|
-
"member": "
|
8518
|
+
"example": "12.1",
|
8519
|
+
"member": "float",
|
8520
8520
|
"name": "QueryTime",
|
8521
|
-
"
|
8522
|
-
"type": "
|
8521
|
+
"output_required": true,
|
8522
|
+
"type": "float",
|
8523
8523
|
"value_allowed_null": false
|
8524
8524
|
},
|
8525
8525
|
{
|
8526
8526
|
"disabled": false,
|
8527
8527
|
"document": "锁时间,单位秒\n注意:此字段可能返回 null,表示取不到有效值。",
|
8528
|
-
"example": "
|
8529
|
-
"member": "
|
8528
|
+
"example": "0.22",
|
8529
|
+
"member": "float",
|
8530
8530
|
"name": "LockTime",
|
8531
|
-
"
|
8532
|
-
"type": "
|
8531
|
+
"output_required": true,
|
8532
|
+
"type": "float",
|
8533
8533
|
"value_allowed_null": true
|
8534
8534
|
},
|
8535
8535
|
{
|
@@ -8538,7 +8538,7 @@
|
|
8538
8538
|
"example": "12",
|
8539
8539
|
"member": "int64",
|
8540
8540
|
"name": "RowsExamined",
|
8541
|
-
"
|
8541
|
+
"output_required": true,
|
8542
8542
|
"type": "int",
|
8543
8543
|
"value_allowed_null": true
|
8544
8544
|
},
|
@@ -8548,7 +8548,7 @@
|
|
8548
8548
|
"example": "122",
|
8549
8549
|
"member": "int64",
|
8550
8550
|
"name": "RowsSent",
|
8551
|
-
"
|
8551
|
+
"output_required": true,
|
8552
8552
|
"type": "int",
|
8553
8553
|
"value_allowed_null": true
|
8554
8554
|
}
|