tccli 3.0.1262.1__py2.py3-none-any.whl → 3.0.1264.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/aiart/v20221229/api.json +2 -2
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/cdb/v20170320/api.json +4 -4
- tccli/services/cdb/v20170320/examples.json +5 -5
- tccli/services/cdwdoris/v20211228/api.json +3 -3
- tccli/services/cdwdoris/v20211228/examples.json +2 -2
- tccli/services/cfw/cfw_client.py +0 -53
- tccli/services/cfw/v20190904/api.json +3 -166
- tccli/services/cfw/v20190904/examples.json +0 -8
- tccli/services/ckafka/v20190819/api.json +11 -2
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cwp/cwp_client.py +69 -175
- tccli/services/cwp/v20180228/api.json +0 -374
- tccli/services/cwp/v20180228/examples.json +0 -16
- tccli/services/dsgc/v20190723/api.json +12 -3
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +77 -0
- tccli/services/lighthouse/v20200324/examples.json +2 -2
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +33 -0
- tccli/services/lkeap/v20240522/api.json +2 -2
- tccli/services/mna/v20210119/api.json +20 -20
- tccli/services/mongodb/v20190725/api.json +15 -15
- tccli/services/mongodb/v20190725/examples.json +5 -5
- tccli/services/monitor/v20180724/api.json +22 -20
- tccli/services/monitor/v20180724/examples.json +3 -3
- tccli/services/ocr/v20181119/api.json +2 -2
- tccli/services/tat/v20201028/api.json +6 -6
- tccli/services/tccatalog/v20241024/api.json +61 -3
- tccli/services/trocket/trocket_client.py +53 -0
- tccli/services/trocket/v20230308/api.json +70 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +23 -23
- tccli/services/trtc/v20190722/examples.json +4 -4
- {tccli-3.0.1262.1.dist-info → tccli-3.0.1264.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1262.1.dist-info → tccli-3.0.1264.1.dist-info}/RECORD +41 -41
- {tccli-3.0.1262.1.dist-info → tccli-3.0.1264.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1262.1.dist-info → tccli-3.0.1264.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1262.1.dist-info → tccli-3.0.1264.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1264.1'
|
@@ -1215,7 +1215,7 @@
|
|
1215
1215
|
},
|
1216
1216
|
{
|
1217
1217
|
"disabled": false,
|
1218
|
-
"document": "线稿图 Base64 数据。\nBase64 和 Url 必须提供一个,如果都提供以Url 为准。\n图片限制:黑白线稿图片,单边分辨率小于5000且大于
|
1218
|
+
"document": "线稿图 Base64 数据。\nBase64 和 Url 必须提供一个,如果都提供以Url 为准。\n图片限制:黑白线稿图片,单边分辨率小于5000且大于128(分辨率过小会导致效果受损),转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。",
|
1219
1219
|
"example": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIo...lftXF/DjFZNXoSP5V2U0HMt/1FQf/Z",
|
1220
1220
|
"member": "string",
|
1221
1221
|
"name": "InputImage",
|
@@ -1224,7 +1224,7 @@
|
|
1224
1224
|
},
|
1225
1225
|
{
|
1226
1226
|
"disabled": false,
|
1227
|
-
"document": "线稿图 Url。\nBase64 和 Url 必须提供一个,如果都提供以Url 为准。\n图片限制:黑白线稿图片,单边分辨率小于5000且大于
|
1227
|
+
"document": "线稿图 Url。\nBase64 和 Url 必须提供一个,如果都提供以Url 为准。\n图片限制:黑白线稿图片,单边分辨率小于5000且大于128(分辨率过小会导致效果受损),转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。",
|
1228
1228
|
"example": "https://xxx.com/image.jpg",
|
1229
1229
|
"member": "string",
|
1230
1230
|
"name": "InputUrl",
|
@@ -5395,7 +5395,7 @@
|
|
5395
5395
|
},
|
5396
5396
|
{
|
5397
5397
|
"disabled": false,
|
5398
|
-
"document": "系统盘ID
|
5398
|
+
"document": "系统盘ID。\n该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。",
|
5399
5399
|
"example": "disk-xyzw1234",
|
5400
5400
|
"member": "string",
|
5401
5401
|
"name": "DiskId",
|
@@ -449,11 +449,11 @@
|
|
449
449
|
"status": "online"
|
450
450
|
},
|
451
451
|
"DescribeCpuExpandStrategy": {
|
452
|
-
"document": "通过该 API 可以查询实例的 CPU 弹性扩容策略",
|
452
|
+
"document": "DescribeCpuExpandStrategy\n\n通过该 API 可以查询实例的 CPU 弹性扩容策略",
|
453
453
|
"input": "DescribeCpuExpandStrategyRequest",
|
454
454
|
"name": "查询实例的 CPU 弹性扩容策略",
|
455
455
|
"output": "DescribeCpuExpandStrategyResponse",
|
456
|
-
"status": "
|
456
|
+
"status": "deprecated"
|
457
457
|
},
|
458
458
|
"DescribeDBFeatures": {
|
459
459
|
"document": "本接口(DescribeDBFeatures)用于查询云数据库版本属性,包括是否支持数据库加密、数据库审计等功能。",
|
@@ -5898,7 +5898,7 @@
|
|
5898
5898
|
{
|
5899
5899
|
"disabled": false,
|
5900
5900
|
"document": "只读实例信息。购买只读实例时,该参数必传。",
|
5901
|
-
"example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\":
|
5901
|
+
"example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\": 5,\"MinRoInGroup\": 1,\"RoOfflineDelay\": 1}",
|
5902
5902
|
"member": "RoGroup",
|
5903
5903
|
"name": "RoGroup",
|
5904
5904
|
"required": false,
|
@@ -6323,7 +6323,7 @@
|
|
6323
6323
|
{
|
6324
6324
|
"disabled": false,
|
6325
6325
|
"document": "只读实例参数。购买只读实例时,该参数必传。",
|
6326
|
-
"example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\":
|
6326
|
+
"example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\": 5,\"MinRoInGroup\": 1,\"RoOfflineDelay\": 1}",
|
6327
6327
|
"member": "RoGroup",
|
6328
6328
|
"name": "RoGroup",
|
6329
6329
|
"required": false,
|
@@ -197,13 +197,13 @@
|
|
197
197
|
"CreateDBInstance": [
|
198
198
|
{
|
199
199
|
"document": "购买主实例",
|
200
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\":
|
200
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\": 0,\n \"InstanceRole\": \"master\",\n \"GoodsNum\": 1,\n \"Period\": 1,\n \"Volume\": 25,\n \"EngineVersion\": \"5.6\",\n \"UniqSubnetId\": \"subnet-fyrtjbqw\",\n \"Memory\": 1000,\n \"InstanceNodes\": 2\n}",
|
201
201
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"InstanceIds\": [\n \"cdb-pn6gd5jp\"\n ],\n \"DealIds\": [\n \"20171201110011\"\n ]\n }\n}",
|
202
202
|
"title": "购买主实例"
|
203
203
|
},
|
204
204
|
{
|
205
205
|
"document": "购买只读实例",
|
206
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"RoGroup\": {\n \"RoGroupMode\": \"allinone\",\n \"RoGroupName\": \"jersey\",\n \"RoMaxDelayTime\":
|
206
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"RoGroup\": {\n \"RoGroupMode\": \"allinone\",\n \"RoGroupName\": \"jersey\",\n \"RoMaxDelayTime\": 5,\n \"MinRoInGroup\": 1,\n \"RoOfflineDelay\": 1\n },\n \"GoodsNum\": 1,\n \"InstanceRole\": \"ro\",\n \"MasterInstanceId\": \"cdb-fn3f9xpx\",\n \"Period\": 1,\n \"Volume\": 100,\n \"Memory\": 4000\n}",
|
207
207
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"DealIds\": [\n \"20171205110051\"\n ],\n \"InstanceIds\": [\n \"cdbro-hlpl4ik9\"\n ]\n }\n}",
|
208
208
|
"title": "购买只读实例"
|
209
209
|
}
|
@@ -211,7 +211,7 @@
|
|
211
211
|
"CreateDBInstanceHour": [
|
212
212
|
{
|
213
213
|
"document": "创建云数据库实例(按量计费)",
|
214
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstanceHour\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\":
|
214
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstanceHour\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\": 0,\n \"SlaveZone\": \"ap-guangzhou-3\",\n \"InstanceRole\": \"master\",\n \"GoodsNum\": 1,\n \"DeployMode\": 0,\n \"Volume\": 25,\n \"EngineVersion\": \"5.6\",\n \"UniqSubnetId\": \"subnet-fyrtjbqw\",\n \"Memory\": 1000,\n \"ProtectMode\": 0\n}",
|
215
215
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"InstanceIds\": [\n \"cdb-03brtubb\"\n ],\n \"DealIds\": [\n \"20171201160000002670226599824833\"\n ]\n }\n}",
|
216
216
|
"title": "创建云数据库实例(按量计费)"
|
217
217
|
}
|
@@ -631,13 +631,13 @@
|
|
631
631
|
"DescribeDBPrice": [
|
632
632
|
{
|
633
633
|
"document": "查询数据库实例新购价格",
|
634
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou-1\",\n \"GoodsNum\":
|
634
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou-1\",\n \"GoodsNum\": 1,\n \"PayType\": \"PRE_PAID\",\n \"Period\": 24,\n \"Volume\": 25,\n \"Memory\": 1000\n}",
|
635
635
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"Currency\": \"CNY\",\n \"Price\": 48000,\n \"OriginalPrice\": 460800\n }\n}",
|
636
636
|
"title": "查询数据库实例新购价格"
|
637
637
|
},
|
638
638
|
{
|
639
639
|
"document": "查询数据库实例续费价格",
|
640
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-6no119yd\",\n \"Period\":
|
640
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-6no119yd\",\n \"Period\": 24\n}",
|
641
641
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"Currency\": \"CNY\",\n \"Price\": 48000,\n \"OriginalPrice\": 460800\n }\n}",
|
642
642
|
"title": "查询数据库实例续费价格"
|
643
643
|
}
|
@@ -466,13 +466,13 @@
|
|
466
466
|
"members": [
|
467
467
|
{
|
468
468
|
"disabled": false,
|
469
|
-
"document": "
|
470
|
-
"example": "
|
469
|
+
"document": "错误信息",
|
470
|
+
"example": "error",
|
471
471
|
"member": "string",
|
472
472
|
"name": "ErrorMsg",
|
473
473
|
"output_required": true,
|
474
474
|
"type": "string",
|
475
|
-
"value_allowed_null":
|
475
|
+
"value_allowed_null": false
|
476
476
|
},
|
477
477
|
{
|
478
478
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"ActionAlterUser": [
|
4
4
|
{
|
5
5
|
"document": "",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ActionAlterUser\n<公共请求参数>\n\n{\n \"UserInfo\": {\n \"InstanceId\": \"
|
7
|
-
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"
|
6
|
+
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ActionAlterUser\n<公共请求参数>\n\n{\n \"UserInfo\": {\n \"InstanceId\": \"cdwdoris-xasdf\",\n \"UserName\": \"user\",\n \"PassWord\": \"pwd\",\n \"WhiteHost\": \"host\",\n \"OldWhiteHost\": \"o_host\",\n \"Describe\": \"describe\",\n \"OldPwd\": \"pwd\"\n },\n \"ApiType\": \"type\",\n \"UserPrivilege\": 3\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"err\",\n \"RequestId\": \"xawef0-asxca\"\n }\n}",
|
8
8
|
"title": "新增、修改ck集群用户"
|
9
9
|
}
|
10
10
|
],
|
tccli/services/cfw/cfw_client.py
CHANGED
@@ -3449,58 +3449,6 @@ def doModifySequenceRules(args, parsed_globals):
|
|
3449
3449
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3450
3450
|
|
3451
3451
|
|
3452
|
-
def doAddAcRule(args, parsed_globals):
|
3453
|
-
g_param = parse_global_arg(parsed_globals)
|
3454
|
-
|
3455
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3456
|
-
cred = credential.CVMRoleCredential()
|
3457
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3458
|
-
cred = credential.STSAssumeRoleCredential(
|
3459
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3460
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3461
|
-
)
|
3462
|
-
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):
|
3463
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3464
|
-
else:
|
3465
|
-
cred = credential.Credential(
|
3466
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3467
|
-
)
|
3468
|
-
http_profile = HttpProfile(
|
3469
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3470
|
-
reqMethod="POST",
|
3471
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
3472
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3473
|
-
)
|
3474
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3475
|
-
if g_param[OptionsDefine.Language]:
|
3476
|
-
profile.language = g_param[OptionsDefine.Language]
|
3477
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3478
|
-
client = mod.CfwClient(cred, g_param[OptionsDefine.Region], profile)
|
3479
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
3480
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3481
|
-
model = models.AddAcRuleRequest()
|
3482
|
-
model.from_json_string(json.dumps(args))
|
3483
|
-
start_time = time.time()
|
3484
|
-
while True:
|
3485
|
-
rsp = client.AddAcRule(model)
|
3486
|
-
result = rsp.to_json_string()
|
3487
|
-
try:
|
3488
|
-
json_obj = json.loads(result)
|
3489
|
-
except TypeError as e:
|
3490
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3491
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3492
|
-
break
|
3493
|
-
cur_time = time.time()
|
3494
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3495
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3496
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3497
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3498
|
-
else:
|
3499
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3500
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3501
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
|
-
|
3503
|
-
|
3504
3452
|
def doModifySequenceAclRules(args, parsed_globals):
|
3505
3453
|
g_param = parse_global_arg(parsed_globals)
|
3506
3454
|
|
@@ -5970,7 +5918,6 @@ ACTION_MAP = {
|
|
5970
5918
|
"ModifyAssetScan": doModifyAssetScan,
|
5971
5919
|
"DeleteIdsWhiteRule": doDeleteIdsWhiteRule,
|
5972
5920
|
"ModifySequenceRules": doModifySequenceRules,
|
5973
|
-
"AddAcRule": doAddAcRule,
|
5974
5921
|
"ModifySequenceAclRules": doModifySequenceAclRules,
|
5975
5922
|
"DescribeRuleOverview": doDescribeRuleOverview,
|
5976
5923
|
"DescribeIPStatusList": doDescribeIPStatusList,
|
@@ -1,12 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
-
"AddAcRule": {
|
4
|
-
"document": "接口不再使用,已有新接口AddAclRule\n\n添加互联网边界规则",
|
5
|
-
"input": "AddAcRuleRequest",
|
6
|
-
"name": "添加互联网边界规则(不再使用,已迁移到新接口AddAclRule)",
|
7
|
-
"output": "AddAcRuleResponse",
|
8
|
-
"status": "deprecated"
|
9
|
-
},
|
10
3
|
"AddAclRule": {
|
11
4
|
"document": "添加互联网边界访问控制规则",
|
12
5
|
"input": "AddAclRuleRequest",
|
@@ -1045,162 +1038,6 @@
|
|
1045
1038
|
],
|
1046
1039
|
"usage": "out"
|
1047
1040
|
},
|
1048
|
-
"AddAcRuleRequest": {
|
1049
|
-
"document": "AddAcRule请求参数结构体",
|
1050
|
-
"members": [
|
1051
|
-
{
|
1052
|
-
"disabled": false,
|
1053
|
-
"document": "-1表示优先级最低,1表示优先级最高",
|
1054
|
-
"example": "-1",
|
1055
|
-
"member": "string",
|
1056
|
-
"name": "OrderIndex",
|
1057
|
-
"required": true,
|
1058
|
-
"type": "string"
|
1059
|
-
},
|
1060
|
-
{
|
1061
|
-
"disabled": false,
|
1062
|
-
"document": "访问控制策略中设置的流量通过云防火墙的方式。取值:\naccept:放行\ndrop:拒绝\nlog:观察",
|
1063
|
-
"example": "accept",
|
1064
|
-
"member": "string",
|
1065
|
-
"name": "RuleAction",
|
1066
|
-
"required": true,
|
1067
|
-
"type": "string"
|
1068
|
-
},
|
1069
|
-
{
|
1070
|
-
"disabled": false,
|
1071
|
-
"document": "访问控制策略的流量方向。取值:\nin:外对内流量访问控制\nout:内对外流量访问控制",
|
1072
|
-
"example": "in",
|
1073
|
-
"member": "string",
|
1074
|
-
"name": "Direction",
|
1075
|
-
"required": true,
|
1076
|
-
"type": "string"
|
1077
|
-
},
|
1078
|
-
{
|
1079
|
-
"disabled": false,
|
1080
|
-
"document": "访问控制策略的描述信息",
|
1081
|
-
"example": "默认拒绝所有流量",
|
1082
|
-
"member": "string",
|
1083
|
-
"name": "Description",
|
1084
|
-
"required": true,
|
1085
|
-
"type": "string"
|
1086
|
-
},
|
1087
|
-
{
|
1088
|
-
"disabled": false,
|
1089
|
-
"document": "访问控制策略中的源地址类型。取值:\nnet:源IP或网段(IP或者CIDR)\nlocation:源区域\ntemplate:云防火墙地址模板\ninstance:实例id\nvendor:云厂商",
|
1090
|
-
"example": "net",
|
1091
|
-
"member": "string",
|
1092
|
-
"name": "SourceType",
|
1093
|
-
"required": true,
|
1094
|
-
"type": "string"
|
1095
|
-
},
|
1096
|
-
{
|
1097
|
-
"disabled": false,
|
1098
|
-
"document": "访问控制策略中的源地址。取值:\n当SourceType为net时,SourceContent为源IP地址或者CIDR地址。\n例如:1.1.1.0/24\n\n当SourceType为template时,SourceContent为源地址模板id。\n\n当SourceType为location时,SourceContent为源区域。\n例如[\"BJ11\", \"ZB\"]\n\n当SourceType为instance时,SourceContent为该实例id对应的公网ip。\n例如ins-xxxxx\n\n当SourceType为vendor时,SourceContent为所选择厂商的公网ip列表。\n例如:aws,huawei,tencent,aliyun,azure,all代表以上五个",
|
1099
|
-
"example": "1.1.1.1",
|
1100
|
-
"member": "string",
|
1101
|
-
"name": "SourceContent",
|
1102
|
-
"required": true,
|
1103
|
-
"type": "string"
|
1104
|
-
},
|
1105
|
-
{
|
1106
|
-
"disabled": false,
|
1107
|
-
"document": "访问控制策略中的目的地址类型。取值:\nnet:目的IP或者网段(IP或者CIDR)\nlocation:源区域\ntemplate:云防火墙地址模板\ninstance:实例id\nvendor:云厂商\ndomain: 域名或者ip",
|
1108
|
-
"example": "domain",
|
1109
|
-
"member": "string",
|
1110
|
-
"name": "DestType",
|
1111
|
-
"required": true,
|
1112
|
-
"type": "string"
|
1113
|
-
},
|
1114
|
-
{
|
1115
|
-
"disabled": false,
|
1116
|
-
"document": "访问控制策略中的目的地址。取值:\n当DestType为net时,DestContent为源IP地址或者CIDR地址。\n例如:1.1.1.0/24\n\n当DestType为template时,DestContent为源地址模板id。\n\n当DestType为location时,DestContent为源区域。\n例如[\"BJ11\", \"ZB\"]\n\n当DestType为instance时,DestContent为该实例id对应的公网ip。\n例如ins-xxxxx\n\n当DestType为domain时,DestContent为该实例id对应的域名规则。\n例如*.qq.com\n\n当DestType为vendor时,DestContent为所选择厂商的公网ip列表。\n例如:aws,huawei,tencent,aliyun,azure,all代表以上五个",
|
1117
|
-
"example": "*.qq.com",
|
1118
|
-
"member": "string",
|
1119
|
-
"name": "DestContent",
|
1120
|
-
"required": true,
|
1121
|
-
"type": "string"
|
1122
|
-
},
|
1123
|
-
{
|
1124
|
-
"disabled": false,
|
1125
|
-
"document": "访问控制策略的端口。取值:\n-1/-1:全部端口\n80,443:80或者443",
|
1126
|
-
"example": "-1/-1",
|
1127
|
-
"member": "string",
|
1128
|
-
"name": "Port",
|
1129
|
-
"required": true,
|
1130
|
-
"type": "string"
|
1131
|
-
},
|
1132
|
-
{
|
1133
|
-
"disabled": false,
|
1134
|
-
"document": "访问控制策略中流量访问的协议类型。取值:TCP,目前互联网边界规则只能支持TCP,不传参数默认就是TCP",
|
1135
|
-
"example": "TCP",
|
1136
|
-
"member": "string",
|
1137
|
-
"name": "Protocol",
|
1138
|
-
"required": false,
|
1139
|
-
"type": "string"
|
1140
|
-
},
|
1141
|
-
{
|
1142
|
-
"disabled": false,
|
1143
|
-
"document": "七层协议,取值:\nHTTP/HTTPS\nTLS/SSL",
|
1144
|
-
"example": "HTTP",
|
1145
|
-
"member": "string",
|
1146
|
-
"name": "ApplicationName",
|
1147
|
-
"required": false,
|
1148
|
-
"type": "string"
|
1149
|
-
},
|
1150
|
-
{
|
1151
|
-
"disabled": false,
|
1152
|
-
"document": "是否启用规则,默认为启用,取值:\ntrue为启用,false为不启用",
|
1153
|
-
"example": "true",
|
1154
|
-
"member": "string",
|
1155
|
-
"name": "Enable",
|
1156
|
-
"required": false,
|
1157
|
-
"type": "string"
|
1158
|
-
}
|
1159
|
-
],
|
1160
|
-
"type": "object"
|
1161
|
-
},
|
1162
|
-
"AddAcRuleResponse": {
|
1163
|
-
"document": "AddAcRule返回参数结构体",
|
1164
|
-
"members": [
|
1165
|
-
{
|
1166
|
-
"disabled": false,
|
1167
|
-
"document": "创建成功后返回新策略的uuid",
|
1168
|
-
"example": "8888",
|
1169
|
-
"member": "int64",
|
1170
|
-
"name": "RuleUuid",
|
1171
|
-
"output_required": true,
|
1172
|
-
"type": "int",
|
1173
|
-
"value_allowed_null": false
|
1174
|
-
},
|
1175
|
-
{
|
1176
|
-
"disabled": false,
|
1177
|
-
"document": "0代表成功,-1代表失败",
|
1178
|
-
"example": "0",
|
1179
|
-
"member": "int64",
|
1180
|
-
"name": "ReturnCode",
|
1181
|
-
"output_required": true,
|
1182
|
-
"type": "int",
|
1183
|
-
"value_allowed_null": false
|
1184
|
-
},
|
1185
|
-
{
|
1186
|
-
"disabled": false,
|
1187
|
-
"document": "success代表成功,failed代表失败",
|
1188
|
-
"example": "success",
|
1189
|
-
"member": "string",
|
1190
|
-
"name": "ReturnMsg",
|
1191
|
-
"output_required": true,
|
1192
|
-
"type": "string",
|
1193
|
-
"value_allowed_null": false
|
1194
|
-
},
|
1195
|
-
{
|
1196
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1197
|
-
"member": "string",
|
1198
|
-
"name": "RequestId",
|
1199
|
-
"type": "string"
|
1200
|
-
}
|
1201
|
-
],
|
1202
|
-
"type": "object"
|
1203
|
-
},
|
1204
1041
|
"AddAclRuleRequest": {
|
1205
1042
|
"document": "AddAclRule请求参数结构体",
|
1206
1043
|
"members": [
|
@@ -8962,7 +8799,7 @@
|
|
8962
8799
|
{
|
8963
8800
|
"disabled": false,
|
8964
8801
|
"document": "若为cdc防火墙时填充该id",
|
8965
|
-
"example": "cluster-
|
8802
|
+
"example": "cluster-dxd31akg",
|
8966
8803
|
"member": "string",
|
8967
8804
|
"name": "CdcId",
|
8968
8805
|
"required": false,
|
@@ -13504,7 +13341,7 @@
|
|
13504
13341
|
{
|
13505
13342
|
"disabled": false,
|
13506
13343
|
"document": "资产id",
|
13507
|
-
"example": "ins-
|
13344
|
+
"example": "ins-nl6svll8",
|
13508
13345
|
"member": "string",
|
13509
13346
|
"name": "InsID",
|
13510
13347
|
"output_required": true,
|
@@ -13514,7 +13351,7 @@
|
|
13514
13351
|
{
|
13515
13352
|
"disabled": false,
|
13516
13353
|
"document": "资产名称",
|
13517
|
-
"example": "
|
13354
|
+
"example": "Dev Proxy",
|
13518
13355
|
"member": "string",
|
13519
13356
|
"name": "InsName",
|
13520
13357
|
"output_required": true,
|
@@ -1,13 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
-
"AddAcRule": [
|
4
|
-
{
|
5
|
-
"document": "",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: cfw.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddAcRule\n<公共请求参数>\n\n{\n \"OrderIndex\": \"-1\",\n \"Description\": \"api test1\",\n \"SourceType\": \"location\",\n \"SourceContent\": \"cq50,sh31,tj12,bj11\",\n \"DestType\": \"net\",\n \"DestContent\": \"0.0.0.0/0\",\n \"Enable\": \"true\",\n \"Direction\": \"in\",\n \"RuleAction\": \"accept\",\n \"Port\": \"-1/-1\",\n \"Protocol\": \"tcp\"\n}",
|
7
|
-
"output": "{\n \"Response\": {\n \"RuleUuid\": 8888,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"ReturnCode\": 0,\n \"ReturnMsg\": \"success\"\n }\n}",
|
8
|
-
"title": "添加互联网边界规则"
|
9
|
-
}
|
10
|
-
],
|
11
3
|
"AddAclRule": [
|
12
4
|
{
|
13
5
|
"document": "添加互联网边界访问控制规则",
|
@@ -13612,8 +13612,8 @@
|
|
13612
13612
|
},
|
13613
13613
|
{
|
13614
13614
|
"disabled": false,
|
13615
|
-
"document": "
|
13616
|
-
"example": "
|
13615
|
+
"document": "用于修改升级版本或升配定时任务的执行时间,Unix时间戳,精确到秒",
|
13616
|
+
"example": "1566144000",
|
13617
13617
|
"member": "int64",
|
13618
13618
|
"name": "RebalanceTime",
|
13619
13619
|
"required": false,
|
@@ -13645,6 +13645,15 @@
|
|
13645
13645
|
"name": "MaxMessageByte",
|
13646
13646
|
"required": false,
|
13647
13647
|
"type": "int"
|
13648
|
+
},
|
13649
|
+
{
|
13650
|
+
"disabled": false,
|
13651
|
+
"document": "集群topic默认 unclean.leader.election.enable配置: 1 开启 0 关闭",
|
13652
|
+
"example": "1",
|
13653
|
+
"member": "int64",
|
13654
|
+
"name": "UncleanLeaderElectionEnable",
|
13655
|
+
"required": false,
|
13656
|
+
"type": "int"
|
13648
13657
|
}
|
13649
13658
|
],
|
13650
13659
|
"type": "object"
|
@@ -11270,7 +11270,7 @@
|
|
11270
11270
|
},
|
11271
11271
|
{
|
11272
11272
|
"disabled": false,
|
11273
|
-
"document": "系统盘ID
|
11273
|
+
"document": "系统盘ID。\n该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。",
|
11274
11274
|
"example": "disk-xyzw1234",
|
11275
11275
|
"member": "string",
|
11276
11276
|
"name": "DiskId",
|