tccli 3.0.1176.1__py2.py3-none-any.whl → 3.0.1177.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/cdwdoris/cdwdoris_client.py +53 -0
- tccli/services/cdwdoris/v20211228/api.json +151 -0
- tccli/services/cdwdoris/v20211228/examples.json +8 -0
- tccli/services/clb/v20180317/api.json +1 -1
- tccli/services/dcdb/v20180411/api.json +28 -1
- tccli/services/dnspod/v20210323/api.json +1 -0
- tccli/services/dsgc/v20190723/api.json +85 -9
- tccli/services/dsgc/v20190723/examples.json +4 -4
- tccli/services/faceid/v20180301/api.json +29 -1
- tccli/services/mrs/v20200910/api.json +3 -0
- tccli/services/mrs/v20200910/examples.json +1 -1
- tccli/services/organization/v20210331/api.json +23 -23
- tccli/services/organization/v20210331/examples.json +4 -4
- tccli/services/redis/v20180412/api.json +85 -39
- tccli/services/redis/v20180412/examples.json +2 -2
- tccli/services/trtc/trtc_client.py +53 -0
- tccli/services/trtc/v20190722/api.json +80 -1
- tccli/services/trtc/v20190722/examples.json +8 -0
- tccli/services/tse/v20201207/api.json +58 -0
- tccli/services/tts/v20190823/api.json +2 -2
- tccli/services/vclm/v20240523/api.json +9 -0
- tccli/services/vod/v20180717/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +158 -37
- {tccli-3.0.1176.1.dist-info → tccli-3.0.1177.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1176.1.dist-info → tccli-3.0.1177.1.dist-info}/RECORD +29 -29
- {tccli-3.0.1176.1.dist-info → tccli-3.0.1177.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1176.1.dist-info → tccli-3.0.1177.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1176.1.dist-info → tccli-3.0.1177.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1177.1'
|
@@ -1941,6 +1941,58 @@ def doModifyCoolDownPolicy(args, parsed_globals):
|
|
1941
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1942
1942
|
|
1943
1943
|
|
1944
|
+
def doActionAlterUser(args, parsed_globals):
|
1945
|
+
g_param = parse_global_arg(parsed_globals)
|
1946
|
+
|
1947
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1948
|
+
cred = credential.CVMRoleCredential()
|
1949
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1950
|
+
cred = credential.STSAssumeRoleCredential(
|
1951
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1952
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1953
|
+
)
|
1954
|
+
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):
|
1955
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1956
|
+
else:
|
1957
|
+
cred = credential.Credential(
|
1958
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1959
|
+
)
|
1960
|
+
http_profile = HttpProfile(
|
1961
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1962
|
+
reqMethod="POST",
|
1963
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1964
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1965
|
+
)
|
1966
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1967
|
+
if g_param[OptionsDefine.Language]:
|
1968
|
+
profile.language = g_param[OptionsDefine.Language]
|
1969
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1970
|
+
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1971
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1972
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1973
|
+
model = models.ActionAlterUserRequest()
|
1974
|
+
model.from_json_string(json.dumps(args))
|
1975
|
+
start_time = time.time()
|
1976
|
+
while True:
|
1977
|
+
rsp = client.ActionAlterUser(model)
|
1978
|
+
result = rsp.to_json_string()
|
1979
|
+
try:
|
1980
|
+
json_obj = json.loads(result)
|
1981
|
+
except TypeError as e:
|
1982
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1983
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1984
|
+
break
|
1985
|
+
cur_time = time.time()
|
1986
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1987
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1988
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1989
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1990
|
+
else:
|
1991
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1992
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1993
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
|
+
|
1995
|
+
|
1944
1996
|
def doDescribeSqlApis(args, parsed_globals):
|
1945
1997
|
g_param = parse_global_arg(parsed_globals)
|
1946
1998
|
|
@@ -3081,6 +3133,7 @@ ACTION_MAP = {
|
|
3081
3133
|
"DescribeInstanceOperations": doDescribeInstanceOperations,
|
3082
3134
|
"ModifyWorkloadGroupStatus": doModifyWorkloadGroupStatus,
|
3083
3135
|
"ModifyCoolDownPolicy": doModifyCoolDownPolicy,
|
3136
|
+
"ActionAlterUser": doActionAlterUser,
|
3084
3137
|
"DescribeSqlApis": doDescribeSqlApis,
|
3085
3138
|
"DescribeBackUpTaskDetail": doDescribeBackUpTaskDetail,
|
3086
3139
|
"DescribeInstance": doDescribeInstance,
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ActionAlterUser": {
|
4
|
+
"document": "新增和修改用户接口",
|
5
|
+
"input": "ActionAlterUserRequest",
|
6
|
+
"name": "新增、修改用户接口",
|
7
|
+
"output": "ActionAlterUserResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"CancelBackupJob": {
|
4
11
|
"document": "取消对应的备份实例任务",
|
5
12
|
"input": "CancelBackupJobRequest",
|
@@ -414,6 +421,61 @@
|
|
414
421
|
"serviceShortName": "cdwdoris"
|
415
422
|
},
|
416
423
|
"objects": {
|
424
|
+
"ActionAlterUserRequest": {
|
425
|
+
"document": "ActionAlterUser请求参数结构体",
|
426
|
+
"members": [
|
427
|
+
{
|
428
|
+
"disabled": false,
|
429
|
+
"document": "用户信息",
|
430
|
+
"example": "cdwch-xxxx",
|
431
|
+
"member": "UserInfo",
|
432
|
+
"name": "UserInfo",
|
433
|
+
"required": true,
|
434
|
+
"type": "object"
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"disabled": false,
|
438
|
+
"document": "api接口类型",
|
439
|
+
"example": "AddSystemUser",
|
440
|
+
"member": "string",
|
441
|
+
"name": "ApiType",
|
442
|
+
"required": true,
|
443
|
+
"type": "string"
|
444
|
+
},
|
445
|
+
{
|
446
|
+
"disabled": false,
|
447
|
+
"document": "用户权限类型 0:普通用户 1:管理员",
|
448
|
+
"example": "1",
|
449
|
+
"member": "int64",
|
450
|
+
"name": "UserPrivilege",
|
451
|
+
"required": false,
|
452
|
+
"type": "int"
|
453
|
+
}
|
454
|
+
],
|
455
|
+
"type": "object"
|
456
|
+
},
|
457
|
+
"ActionAlterUserResponse": {
|
458
|
+
"document": "ActionAlterUser返回参数结构体",
|
459
|
+
"members": [
|
460
|
+
{
|
461
|
+
"disabled": false,
|
462
|
+
"document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
463
|
+
"example": "-",
|
464
|
+
"member": "string",
|
465
|
+
"name": "ErrorMsg",
|
466
|
+
"output_required": true,
|
467
|
+
"type": "string",
|
468
|
+
"value_allowed_null": true
|
469
|
+
},
|
470
|
+
{
|
471
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
472
|
+
"member": "string",
|
473
|
+
"name": "RequestId",
|
474
|
+
"type": "string"
|
475
|
+
}
|
476
|
+
],
|
477
|
+
"type": "object"
|
478
|
+
},
|
417
479
|
"AttachCBSSpec": {
|
418
480
|
"document": "集群内节点的规格磁盘规格描述",
|
419
481
|
"members": [
|
@@ -5073,6 +5135,26 @@
|
|
5073
5135
|
"output_required": false,
|
5074
5136
|
"type": "object",
|
5075
5137
|
"value_allowed_null": true
|
5138
|
+
},
|
5139
|
+
{
|
5140
|
+
"disabled": false,
|
5141
|
+
"document": "是否启用DLC 0:关闭 1:开启\n注意:此字段可能返回 null,表示取不到有效值。",
|
5142
|
+
"example": "0",
|
5143
|
+
"member": "int64",
|
5144
|
+
"name": "EnableDlc",
|
5145
|
+
"output_required": false,
|
5146
|
+
"type": "int",
|
5147
|
+
"value_allowed_null": true
|
5148
|
+
},
|
5149
|
+
{
|
5150
|
+
"disabled": false,
|
5151
|
+
"document": "账户类型 0:普通用户 1:CAM用户\n注意:此字段可能返回 null,表示取不到有效值。",
|
5152
|
+
"example": "0",
|
5153
|
+
"member": "int64",
|
5154
|
+
"name": "AccountType",
|
5155
|
+
"output_required": false,
|
5156
|
+
"type": "int",
|
5157
|
+
"value_allowed_null": true
|
5076
5158
|
}
|
5077
5159
|
],
|
5078
5160
|
"usage": "out"
|
@@ -7686,6 +7768,75 @@
|
|
7686
7768
|
],
|
7687
7769
|
"usage": "in"
|
7688
7770
|
},
|
7771
|
+
"UserInfo": {
|
7772
|
+
"document": "新增或是修改用户",
|
7773
|
+
"members": [
|
7774
|
+
{
|
7775
|
+
"disabled": false,
|
7776
|
+
"document": "集群实例id",
|
7777
|
+
"example": "cdwch-xxxx",
|
7778
|
+
"member": "string",
|
7779
|
+
"name": "InstanceId",
|
7780
|
+
"required": true,
|
7781
|
+
"type": "string"
|
7782
|
+
},
|
7783
|
+
{
|
7784
|
+
"disabled": false,
|
7785
|
+
"document": "用户名",
|
7786
|
+
"example": "test",
|
7787
|
+
"member": "string",
|
7788
|
+
"name": "UserName",
|
7789
|
+
"required": true,
|
7790
|
+
"type": "string"
|
7791
|
+
},
|
7792
|
+
{
|
7793
|
+
"disabled": false,
|
7794
|
+
"document": "密码",
|
7795
|
+
"example": "password",
|
7796
|
+
"member": "string",
|
7797
|
+
"name": "PassWord",
|
7798
|
+
"required": true,
|
7799
|
+
"type": "string"
|
7800
|
+
},
|
7801
|
+
{
|
7802
|
+
"disabled": false,
|
7803
|
+
"document": "用户链接来自的 IP",
|
7804
|
+
"example": "10.0.2.123",
|
7805
|
+
"member": "string",
|
7806
|
+
"name": "WhiteHost",
|
7807
|
+
"required": false,
|
7808
|
+
"type": "string"
|
7809
|
+
},
|
7810
|
+
{
|
7811
|
+
"disabled": false,
|
7812
|
+
"document": "修改前用户链接来自的 IP",
|
7813
|
+
"example": "10.0.2.1",
|
7814
|
+
"member": "string",
|
7815
|
+
"name": "OldWhiteHost",
|
7816
|
+
"required": false,
|
7817
|
+
"type": "string"
|
7818
|
+
},
|
7819
|
+
{
|
7820
|
+
"disabled": false,
|
7821
|
+
"document": "描述",
|
7822
|
+
"example": "描述",
|
7823
|
+
"member": "string",
|
7824
|
+
"name": "Describe",
|
7825
|
+
"required": false,
|
7826
|
+
"type": "string"
|
7827
|
+
},
|
7828
|
+
{
|
7829
|
+
"disabled": false,
|
7830
|
+
"document": "旧密码",
|
7831
|
+
"example": "pwd—***",
|
7832
|
+
"member": "string",
|
7833
|
+
"name": "OldPwd",
|
7834
|
+
"required": false,
|
7835
|
+
"type": "string"
|
7836
|
+
}
|
7837
|
+
],
|
7838
|
+
"usage": "in"
|
7839
|
+
},
|
7689
7840
|
"UserWorkloadGroup": {
|
7690
7841
|
"document": "用户绑定资源组信息",
|
7691
7842
|
"members": [
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ActionAlterUser": [
|
4
|
+
{
|
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\": \"abc\",\n \"UserName\": \"abc\",\n \"PassWord\": \"abc\",\n \"WhiteHost\": \"abc\",\n \"OldWhiteHost\": \"abc\",\n \"Describe\": \"abc\",\n \"OldPwd\": \"abc\"\n },\n \"ApiType\": \"abc\",\n \"UserPrivilege\": 0\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
8
|
+
"title": "新增、修改ck集群用户"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"CancelBackupJob": [
|
4
12
|
{
|
5
13
|
"document": "",
|
@@ -2742,7 +2742,7 @@
|
|
2742
2742
|
},
|
2743
2743
|
{
|
2744
2744
|
"disabled": false,
|
2745
|
-
"document": "空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。取值范围:共享型实例和独占型实例支持:300
|
2745
|
+
"document": "空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。取值范围:共享型实例和独占型实例支持:300-900,性能容量型实例支持:300-2000。如需设置请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)。",
|
2746
2746
|
"example": "900",
|
2747
2747
|
"member": "int64",
|
2748
2748
|
"name": "IdleConnectTimeout",
|
@@ -9325,6 +9325,33 @@
|
|
9325
9325
|
"name": "Zones",
|
9326
9326
|
"required": false,
|
9327
9327
|
"type": "list"
|
9328
|
+
},
|
9329
|
+
{
|
9330
|
+
"disabled": false,
|
9331
|
+
"document": "切换开始时间,格式如: \"2019-12-12 07:00:00\"。开始时间必须在当前时间一个小时以后,3天以内。",
|
9332
|
+
"example": "2019-12-12 07:00:00",
|
9333
|
+
"member": "string",
|
9334
|
+
"name": "SwitchStartTime",
|
9335
|
+
"required": false,
|
9336
|
+
"type": "string"
|
9337
|
+
},
|
9338
|
+
{
|
9339
|
+
"disabled": false,
|
9340
|
+
"document": "切换结束时间, 格式如: \"2019-12-12 07:15:00\",结束时间必须大于开始时间。",
|
9341
|
+
"example": "2019-12-12 07:15:00",
|
9342
|
+
"member": "string",
|
9343
|
+
"name": "SwitchEndTime",
|
9344
|
+
"required": false,
|
9345
|
+
"type": "string"
|
9346
|
+
},
|
9347
|
+
{
|
9348
|
+
"disabled": false,
|
9349
|
+
"document": "是否自动重试。 0:不自动重试 1:自动重试",
|
9350
|
+
"example": "1",
|
9351
|
+
"member": "int64",
|
9352
|
+
"name": "SwitchAutoRetry",
|
9353
|
+
"required": false,
|
9354
|
+
"type": "int"
|
9328
9355
|
}
|
9329
9356
|
],
|
9330
9357
|
"type": "object"
|
@@ -9338,7 +9365,7 @@
|
|
9338
9365
|
"example": "20180103110035",
|
9339
9366
|
"member": "string",
|
9340
9367
|
"name": "DealName",
|
9341
|
-
"
|
9368
|
+
"output_required": true,
|
9342
9369
|
"type": "string",
|
9343
9370
|
"value_allowed_null": false
|
9344
9371
|
},
|
@@ -120,7 +120,7 @@
|
|
120
120
|
"status": "online"
|
121
121
|
},
|
122
122
|
"CreateDSPADiscoveryRule": {
|
123
|
-
"document": "新增分类分级规则,单个用户最多允许创建200
|
123
|
+
"document": "新增分类分级规则,单个用户最多允许创建200个规则。",
|
124
124
|
"input": "CreateDSPADiscoveryRuleRequest",
|
125
125
|
"name": "新增分类分级发现规则",
|
126
126
|
"output": "CreateDSPADiscoveryRuleResponse",
|
@@ -2408,6 +2408,26 @@
|
|
2408
2408
|
"output_required": false,
|
2409
2409
|
"type": "string",
|
2410
2410
|
"value_allowed_null": true
|
2411
|
+
},
|
2412
|
+
{
|
2413
|
+
"disabled": false,
|
2414
|
+
"document": "各类分类分级规则数量\n注意:此字段可能返回 null,表示取不到有效值。",
|
2415
|
+
"example": "无",
|
2416
|
+
"member": "RuleEffectItem",
|
2417
|
+
"name": "RuleEffectItems",
|
2418
|
+
"output_required": false,
|
2419
|
+
"type": "list",
|
2420
|
+
"value_allowed_null": true
|
2421
|
+
},
|
2422
|
+
{
|
2423
|
+
"disabled": false,
|
2424
|
+
"document": "规则状态\n注意:此字段可能返回 null,表示取不到有效值。",
|
2425
|
+
"example": "无",
|
2426
|
+
"member": "int64",
|
2427
|
+
"name": "RuleStatus",
|
2428
|
+
"output_required": false,
|
2429
|
+
"type": "int",
|
2430
|
+
"value_allowed_null": true
|
2411
2431
|
}
|
2412
2432
|
],
|
2413
2433
|
"usage": "out"
|
@@ -3811,6 +3831,15 @@
|
|
3811
3831
|
"name": "COSRules",
|
3812
3832
|
"required": false,
|
3813
3833
|
"type": "object"
|
3834
|
+
},
|
3835
|
+
{
|
3836
|
+
"disabled": false,
|
3837
|
+
"document": "规则状态;0 不启用, 1 启用",
|
3838
|
+
"example": "1",
|
3839
|
+
"member": "int64",
|
3840
|
+
"name": "Status",
|
3841
|
+
"required": false,
|
3842
|
+
"type": "int"
|
3814
3843
|
}
|
3815
3844
|
],
|
3816
3845
|
"type": "object"
|
@@ -3824,7 +3853,7 @@
|
|
3824
3853
|
"example": "1",
|
3825
3854
|
"member": "int64",
|
3826
3855
|
"name": "RuleId",
|
3827
|
-
"
|
3856
|
+
"output_required": true,
|
3828
3857
|
"type": "int",
|
3829
3858
|
"value_allowed_null": false
|
3830
3859
|
},
|
@@ -8476,7 +8505,7 @@
|
|
8476
8505
|
"example": "无",
|
8477
8506
|
"member": "CategoryRule",
|
8478
8507
|
"name": "CategoryRules",
|
8479
|
-
"
|
8508
|
+
"output_required": true,
|
8480
8509
|
"type": "list",
|
8481
8510
|
"value_allowed_null": true
|
8482
8511
|
},
|
@@ -12384,7 +12413,7 @@
|
|
12384
12413
|
"example": "1",
|
12385
12414
|
"member": "int64",
|
12386
12415
|
"name": "RuleId",
|
12387
|
-
"
|
12416
|
+
"output_required": true,
|
12388
12417
|
"type": "int",
|
12389
12418
|
"value_allowed_null": true
|
12390
12419
|
},
|
@@ -12394,7 +12423,7 @@
|
|
12394
12423
|
"example": "rule_001",
|
12395
12424
|
"member": "string",
|
12396
12425
|
"name": "Name",
|
12397
|
-
"
|
12426
|
+
"output_required": true,
|
12398
12427
|
"type": "string",
|
12399
12428
|
"value_allowed_null": true
|
12400
12429
|
},
|
@@ -12404,7 +12433,7 @@
|
|
12404
12433
|
"example": "rule_description",
|
12405
12434
|
"member": "string",
|
12406
12435
|
"name": "Description",
|
12407
|
-
"
|
12436
|
+
"output_required": true,
|
12408
12437
|
"type": "string",
|
12409
12438
|
"value_allowed_null": true
|
12410
12439
|
},
|
@@ -12414,7 +12443,7 @@
|
|
12414
12443
|
"example": "0",
|
12415
12444
|
"member": "int64",
|
12416
12445
|
"name": "Source",
|
12417
|
-
"
|
12446
|
+
"output_required": true,
|
12418
12447
|
"type": "int",
|
12419
12448
|
"value_allowed_null": true
|
12420
12449
|
},
|
@@ -12424,7 +12453,7 @@
|
|
12424
12453
|
"example": "无",
|
12425
12454
|
"member": "DspaDiscoveryRDBRules",
|
12426
12455
|
"name": "RDBRules",
|
12427
|
-
"
|
12456
|
+
"output_required": true,
|
12428
12457
|
"type": "object",
|
12429
12458
|
"value_allowed_null": true
|
12430
12459
|
},
|
@@ -12434,9 +12463,19 @@
|
|
12434
12463
|
"example": "无",
|
12435
12464
|
"member": "DspaDiscoveryCOSRules",
|
12436
12465
|
"name": "COSRules",
|
12437
|
-
"
|
12466
|
+
"output_required": true,
|
12438
12467
|
"type": "object",
|
12439
12468
|
"value_allowed_null": true
|
12469
|
+
},
|
12470
|
+
{
|
12471
|
+
"disabled": false,
|
12472
|
+
"document": "0关闭,1开启\n注意:此字段可能返回 null,表示取不到有效值。",
|
12473
|
+
"example": "1",
|
12474
|
+
"member": "int64",
|
12475
|
+
"name": "Status",
|
12476
|
+
"output_required": true,
|
12477
|
+
"type": "int",
|
12478
|
+
"value_allowed_null": true
|
12440
12479
|
}
|
12441
12480
|
],
|
12442
12481
|
"usage": "out"
|
@@ -16008,6 +16047,15 @@
|
|
16008
16047
|
"name": "COSRules",
|
16009
16048
|
"required": false,
|
16010
16049
|
"type": "object"
|
16050
|
+
},
|
16051
|
+
{
|
16052
|
+
"disabled": false,
|
16053
|
+
"document": "规则状态",
|
16054
|
+
"example": "无",
|
16055
|
+
"member": "int64",
|
16056
|
+
"name": "Status",
|
16057
|
+
"required": false,
|
16058
|
+
"type": "int"
|
16011
16059
|
}
|
16012
16060
|
],
|
16013
16061
|
"type": "object"
|
@@ -17888,6 +17936,34 @@
|
|
17888
17936
|
],
|
17889
17937
|
"usage": "out"
|
17890
17938
|
},
|
17939
|
+
"RuleEffectItem": {
|
17940
|
+
"document": "分类分级规则数量",
|
17941
|
+
"members": [
|
17942
|
+
{
|
17943
|
+
"disabled": false,
|
17944
|
+
"document": "规则描述\n注意:此字段可能返回 null,表示取不到有效值。",
|
17945
|
+
"example": "无",
|
17946
|
+
"member": "string",
|
17947
|
+
"name": "Name",
|
17948
|
+
"output_required": false,
|
17949
|
+
"required": false,
|
17950
|
+
"type": "string",
|
17951
|
+
"value_allowed_null": true
|
17952
|
+
},
|
17953
|
+
{
|
17954
|
+
"disabled": false,
|
17955
|
+
"document": "规则值\n注意:此字段可能返回 null,表示取不到有效值。",
|
17956
|
+
"example": "无",
|
17957
|
+
"member": "int64",
|
17958
|
+
"name": "Value",
|
17959
|
+
"output_required": false,
|
17960
|
+
"required": false,
|
17961
|
+
"type": "int",
|
17962
|
+
"value_allowed_null": true
|
17963
|
+
}
|
17964
|
+
],
|
17965
|
+
"usage": "both"
|
17966
|
+
},
|
17891
17967
|
"ScanTaskCOSRules": {
|
17892
17968
|
"document": "敏感识别任务COS识别规则",
|
17893
17969
|
"members": [
|
@@ -139,7 +139,7 @@
|
|
139
139
|
"CreateDSPADiscoveryRule": [
|
140
140
|
{
|
141
141
|
"document": "",
|
142
|
-
"input": "POST / HTTP/1.1\nHost: dsgc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDSPADiscoveryRule\n<公共请求参数>\n\n{\n \"DspaId\": \"
|
142
|
+
"input": "POST / HTTP/1.1\nHost: dsgc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDSPADiscoveryRule\n<公共请求参数>\n\n{\n \"DspaId\": \"abc\",\n \"Name\": \"abc\",\n \"Description\": \"abc\",\n \"RDBRules\": {\n \"Status\": 0,\n \"MatchOperator\": \"abc\",\n \"MetaRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleType\": \"abc\",\n \"RuleContent\": \"abc\",\n \"ExtendParameters\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ]\n }\n ]\n },\n \"ContentRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleType\": \"abc\",\n \"RuleContent\": \"abc\",\n \"ExtendParameters\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ]\n }\n ]\n }\n },\n \"COSRules\": {\n \"Status\": 0,\n \"RegexRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"KeywordRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"IgnoreStringRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"MaxMatch\": 0\n },\n \"Status\": 0\n}",
|
143
143
|
"output": "{\n \"Response\": {\n \"RequestId\": \"20569756-56ba-4a13-b545-e1528d5cb239\",\n \"RuleId\": 1\n }\n}",
|
144
144
|
"title": "新增分类分级规则"
|
145
145
|
}
|
@@ -596,7 +596,7 @@
|
|
596
596
|
{
|
597
597
|
"document": "获取合规组分类规则信息",
|
598
598
|
"input": "POST / HTTP/1.1\nHost: dsgc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDSPACategoryRules\n<公共请求参数>\n\n{\n \"DspaId\": \"dspa-001\",\n \"CategoryId\": 1,\n \"ComplianceId\": 1\n}",
|
599
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"128009ac-7df4-0530-cc92-52f0d945e191\",\n \"CategoryRules\": [\n {\n \"Id\": 1,\n \"CategoryId\": 165,\n \"RuleId\": 1,\n \"RuleName\": \"银行卡\",\n \"LevelId\": 5,\n \"LevelName\": \"S3\"\n },\n {\n \"Id\": 2,\n \"CategoryId\": 165,\n \"RuleId\": 2,\n \"RuleName\": \"信用卡\",\n \"LevelId\": 6,\n \"LevelName\": \"S2\"\n }\n ]\n }\n}",
|
599
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"128009ac-7df4-0530-cc92-52f0d945e191\",\n \"CategoryRules\": [\n {\n \"Id\": 1,\n \"CategoryId\": 165,\n \"RuleId\": 1,\n \"RuleName\": \"银行卡\",\n \"LevelId\": 5,\n \"RuleStatus\": 1,\n \"LevelName\": \"S3\",\n \"RuleEffectItems\": [\n {\n \"Name\": \"结构化数据\",\n \"Value\": 1\n },\n {\n \"Name\": \"非机构化数据\",\n \"Value\": 2\n }\n ]\n },\n {\n \"Id\": 2,\n \"CategoryId\": 165,\n \"RuleId\": 2,\n \"RuleName\": \"信用卡\",\n \"LevelId\": 6,\n \"RuleStatus\": 0,\n \"LevelName\": \"S2\",\n \"RuleEffectItems\": [\n {\n \"Name\": \"结构化数据\",\n \"Value\": 1\n },\n {\n \"Name\": \"非机构化数据\",\n \"Value\": 2\n }\n ]\n }\n ]\n }\n}",
|
600
600
|
"title": "获取合规组分类规则信息"
|
601
601
|
}
|
602
602
|
],
|
@@ -652,7 +652,7 @@
|
|
652
652
|
{
|
653
653
|
"document": "xx",
|
654
654
|
"input": "POST / HTTP/1.1\nHost: dsgc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDSPADiscoveryRules\n<公共请求参数>\n\n{\n \"DspaId\": \"casb_1\",\n \"RuleId\": 1,\n \"Limit\": 10,\n \"Name\": \"test_rule\",\n \"Offset\": 0\n}",
|
655
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"Items\": [\n {\n \"RuleId\": 0,\n \"Name\": \"abc\",\n \"Description\": \"abc\",\n \"Source\": 0,\n \"RDBRules\": {\n \"Status\": 0,\n \"MatchOperator\": \"abc\",\n \"MetaRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleType\": \"abc\",\n \"RuleContent\": \"abc\",\n \"ExtendParameters\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ]\n }\n ]\n },\n \"ContentRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleType\": \"abc\",\n \"RuleContent\": \"abc\",\n \"ExtendParameters\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ]\n }\n ]\n }\n },\n \"COSRules\": {\n \"Status\": 0,\n \"RegexRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"KeywordRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"IgnoreStringRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"MaxMatch\": 0\n }\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
655
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"Items\": [\n {\n \"RuleId\": 0,\n \"Name\": \"abc\",\n \"Description\": \"abc\",\n \"Source\": 0,\n \"Status\": 1,\n \"RDBRules\": {\n \"Status\": 0,\n \"MatchOperator\": \"abc\",\n \"MetaRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleType\": \"abc\",\n \"RuleContent\": \"abc\",\n \"ExtendParameters\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ]\n }\n ]\n },\n \"ContentRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleType\": \"abc\",\n \"RuleContent\": \"abc\",\n \"ExtendParameters\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ]\n }\n ]\n }\n },\n \"COSRules\": {\n \"Status\": 0,\n \"RegexRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"KeywordRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"IgnoreStringRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"MaxMatch\": 0\n }\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
656
656
|
"title": "获取分类分级规则列表"
|
657
657
|
}
|
658
658
|
],
|
@@ -1049,7 +1049,7 @@
|
|
1049
1049
|
"ModifyDSPADiscoveryRule": [
|
1050
1050
|
{
|
1051
1051
|
"document": "",
|
1052
|
-
"input": "POST / HTTP/1.1\nHost: dsgc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDSPADiscoveryRule\n<公共请求参数>\n\n{\n \"DspaId\": \"
|
1052
|
+
"input": "POST / HTTP/1.1\nHost: dsgc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDSPADiscoveryRule\n<公共请求参数>\n\n{\n \"DspaId\": \"abc\",\n \"Name\": \"abc\",\n \"Description\": \"abc\",\n \"RDBRules\": {\n \"Status\": 0,\n \"MatchOperator\": \"abc\",\n \"MetaRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleType\": \"abc\",\n \"RuleContent\": \"abc\",\n \"ExtendParameters\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ]\n }\n ]\n },\n \"ContentRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleType\": \"abc\",\n \"RuleContent\": \"abc\",\n \"ExtendParameters\": [\n {\n \"Name\": \"abc\",\n \"Value\": \"abc\"\n }\n ]\n }\n ]\n }\n },\n \"COSRules\": {\n \"Status\": 0,\n \"RegexRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"KeywordRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"IgnoreStringRule\": {\n \"Operator\": \"abc\",\n \"Contents\": [\n {\n \"RuleContent\": \"abc\",\n \"IsIgnoreCase\": true\n }\n ]\n },\n \"MaxMatch\": 0\n },\n \"RuleId\": 0,\n \"Status\": 0\n}",
|
1053
1053
|
"output": "{\n \"Response\": {\n \"RequestId\": \"20569756-56ba-4a13-b545-e1528d5cb239\"\n }\n}",
|
1054
1054
|
"title": "修改分类分级规则"
|
1055
1055
|
}
|
@@ -57,7 +57,7 @@
|
|
57
57
|
"status": "online"
|
58
58
|
},
|
59
59
|
"DetectAIFakeFaces": {
|
60
|
-
"document": "
|
60
|
+
"document": "基于多模态的AI大模型算法,提供对人脸图片、视频的防攻击检测能力,可针对性有效识别高仿真的AIGC换脸、高清翻拍、批量黑产攻击、水印等攻击痕迹,增强对图片和视频的防伪安全能力。",
|
61
61
|
"input": "DetectAIFakeFacesRequest",
|
62
62
|
"name": "AI人脸防护盾",
|
63
63
|
"output": "DetectAIFakeFacesResponse",
|
@@ -776,6 +776,24 @@
|
|
776
776
|
"name": "IsEncrypt",
|
777
777
|
"required": false,
|
778
778
|
"type": "bool"
|
779
|
+
},
|
780
|
+
{
|
781
|
+
"disabled": false,
|
782
|
+
"document": "是否需要对响应体加密",
|
783
|
+
"example": "false",
|
784
|
+
"member": "bool",
|
785
|
+
"name": "IsEncryptResponse",
|
786
|
+
"required": false,
|
787
|
+
"type": "bool"
|
788
|
+
},
|
789
|
+
{
|
790
|
+
"disabled": false,
|
791
|
+
"document": "是否需要对返回中的敏感信息进行加密,需指定加密算法Algorithm、CBC加密的初始向量、加密后的对称密钥。",
|
792
|
+
"example": "无",
|
793
|
+
"member": "Encryption",
|
794
|
+
"name": "Encryption",
|
795
|
+
"required": false,
|
796
|
+
"type": "object"
|
779
797
|
}
|
780
798
|
],
|
781
799
|
"type": "object"
|
@@ -913,6 +931,16 @@
|
|
913
931
|
"type": "object",
|
914
932
|
"value_allowed_null": true
|
915
933
|
},
|
934
|
+
{
|
935
|
+
"disabled": false,
|
936
|
+
"document": "加密后的数据",
|
937
|
+
"example": "无",
|
938
|
+
"member": "string",
|
939
|
+
"name": "EncryptedBody",
|
940
|
+
"output_required": false,
|
941
|
+
"type": "string",
|
942
|
+
"value_allowed_null": false
|
943
|
+
},
|
916
944
|
{
|
917
945
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
918
946
|
"member": "string",
|
@@ -6465,6 +6465,7 @@
|
|
6465
6465
|
"example": "无",
|
6466
6466
|
"member": "TextType",
|
6467
6467
|
"name": "TextTypeList",
|
6468
|
+
"output_required": true,
|
6468
6469
|
"type": "list",
|
6469
6470
|
"value_allowed_null": true
|
6470
6471
|
},
|
@@ -6546,6 +6547,7 @@
|
|
6546
6547
|
"example": "无",
|
6547
6548
|
"member": "Template",
|
6548
6549
|
"name": "Template",
|
6550
|
+
"output_required": true,
|
6549
6551
|
"type": "object",
|
6550
6552
|
"value_allowed_null": true
|
6551
6553
|
},
|
@@ -6555,6 +6557,7 @@
|
|
6555
6557
|
"example": "无",
|
6556
6558
|
"member": "TextType",
|
6557
6559
|
"name": "TextTypeList",
|
6560
|
+
"output_required": true,
|
6558
6561
|
"type": "list",
|
6559
6562
|
"value_allowed_null": true
|
6560
6563
|
},
|