tccli 3.0.1064.1__py2.py3-none-any.whl → 3.0.1067.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/examples/ccc/v20200210/AbortPredictiveDialingCampaign.md +21 -0
- tccli/examples/ccc/v20200210/CreatePredictiveDialingCampaign.md +33 -0
- tccli/examples/ccc/v20200210/DeletePredictiveDialingCampaign.md +21 -0
- tccli/examples/ccc/v20200210/DescribePredictiveDialingCampaign.md +32 -0
- tccli/examples/ccc/v20200210/DescribePredictiveDialingCampaigns.md +55 -0
- tccli/examples/ccc/v20200210/DescribePredictiveDialingSessions.md +29 -0
- tccli/examples/ccc/v20200210/PausePredictiveDialingCampaign.md +21 -0
- tccli/examples/ccc/v20200210/ResumePredictiveDialingCampaign.md +21 -0
- tccli/examples/ccc/v20200210/UpdatePredictiveDialingCampaign.md +33 -0
- tccli/examples/cfw/v20190904/CreateBlockIgnoreRuleNew.md +25 -0
- tccli/examples/cfw/v20190904/DeleteBlockIgnoreRuleNew.md +23 -0
- tccli/examples/cfw/v20190904/ModifyBlockIgnoreRuleNew.md +24 -0
- tccli/examples/cls/v20201016/DescribeConfigMachineGroups.md +1 -0
- tccli/examples/cls/v20201016/DescribeMachineGroups.md +1 -0
- tccli/examples/csip/v20221121/DescribeTopAttackInfo.md +26 -0
- tccli/examples/ecm/v20190719/ModifyPrivateIpAddressesAttribute.md +1 -1
- tccli/examples/mna/v20210119/AddDevice.md +1 -1
- tccli/examples/mna/v20210119/GetMultiFlowStatistic.md +7 -1
- tccli/examples/mna/v20210119/GetNetMonitor.md +7 -49
- tccli/examples/mna/v20210119/GetStatisticData.md +5 -3
- tccli/examples/omics/v20221128/CreateVolume.md +25 -0
- tccli/examples/omics/v20221128/DeleteVolume.md +20 -0
- tccli/examples/omics/v20221128/DeleteVolumeData.md +21 -0
- tccli/examples/omics/v20221128/DescribeVolumes.md +37 -0
- tccli/examples/omics/v20221128/ModifyVolume.md +21 -0
- tccli/examples/postgres/v20170312/ModifyDBInstanceSpec.md +1 -0
- tccli/examples/tse/v20201207/CreateGovernanceInstances.md +32 -0
- tccli/examples/tse/v20201207/DeleteGovernanceInstances.md +35 -0
- tccli/examples/tse/v20201207/DescribeGovernanceInstances.md +56 -0
- tccli/examples/tse/v20201207/ModifyGovernanceInstances.md +35 -0
- tccli/examples/vod/v20180717/CreateDomainVerifyRecord.md +3 -1
- tccli/examples/vod/v20180717/DescribeDefaultDistributionConfig.md +22 -0
- tccli/examples/vod/v20180717/ModifyDefaultDistributionConfig.md +21 -0
- tccli/examples/waf/v20180125/CreateDeals.md +42 -0
- tccli/examples/wedata/v20210820/BatchStartIntegrationTasks.md +10 -7
- tccli/examples/wedata/v20210820/BatchStopIntegrationTasks.md +37 -6
- tccli/services/ccc/ccc_client.py +493 -16
- tccli/services/ccc/v20200210/api.json +927 -42
- tccli/services/ccc/v20200210/examples.json +72 -0
- tccli/services/cdb/v20170320/api.json +1 -1
- tccli/services/cfw/cfw_client.py +171 -12
- tccli/services/cfw/v20190904/api.json +258 -2
- tccli/services/cfw/v20190904/examples.json +24 -0
- tccli/services/ckafka/v20190819/api.json +17 -17
- tccli/services/cls/v20201016/api.json +45 -17
- tccli/services/cls/v20201016/examples.json +2 -2
- tccli/services/csip/csip_client.py +57 -4
- tccli/services/csip/v20221121/api.json +70 -0
- tccli/services/csip/v20221121/examples.json +8 -0
- tccli/services/cynosdb/v20190107/api.json +3 -3
- tccli/services/ecm/v20190719/api.json +3 -3
- tccli/services/ecm/v20190719/examples.json +1 -1
- tccli/services/ess/v20201111/api.json +3 -3
- tccli/services/essbasic/v20210526/api.json +5 -5
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/mna/v20210119/api.json +144 -9
- tccli/services/mna/v20210119/examples.json +6 -6
- tccli/services/monitor/v20180724/api.json +20 -0
- tccli/services/omics/omics_client.py +277 -12
- tccli/services/omics/v20221128/api.json +425 -0
- tccli/services/omics/v20221128/examples.json +40 -0
- tccli/services/postgres/v20170312/api.json +27 -0
- tccli/services/postgres/v20170312/examples.json +1 -1
- tccli/services/trp/v20210515/api.json +18 -0
- tccli/services/trtc/v20190722/api.json +10 -1
- tccli/services/tse/tse_client.py +220 -8
- tccli/services/tse/v20201207/api.json +779 -42
- tccli/services/tse/v20201207/examples.json +32 -0
- tccli/services/vod/v20180717/api.json +146 -1
- tccli/services/vod/v20180717/examples.json +17 -1
- tccli/services/vod/vod_client.py +106 -0
- tccli/services/waf/v20180125/api.json +256 -1
- tccli/services/waf/v20180125/examples.json +8 -0
- tccli/services/waf/waf_client.py +57 -4
- tccli/services/wedata/v20210820/api.json +140 -15
- tccli/services/wedata/v20210820/examples.json +10 -4
- {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/RECORD +83 -58
- {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/license_files/LICENSE +0 -0
@@ -4128,6 +4128,15 @@
|
|
4128
4128
|
"required": false,
|
4129
4129
|
"type": "bool"
|
4130
4130
|
},
|
4131
|
+
{
|
4132
|
+
"disabled": false,
|
4133
|
+
"document": "机器组中机器离线清理时间",
|
4134
|
+
"example": "30",
|
4135
|
+
"member": "int64",
|
4136
|
+
"name": "DelayCleanupTime",
|
4137
|
+
"required": false,
|
4138
|
+
"type": "int"
|
4139
|
+
},
|
4131
4140
|
{
|
4132
4141
|
"disabled": false,
|
4133
4142
|
"document": "机器组元数据信息列表",
|
@@ -7291,11 +7300,11 @@
|
|
7291
7300
|
"type": "object"
|
7292
7301
|
},
|
7293
7302
|
"DynamicIndex": {
|
7294
|
-
"document": "
|
7303
|
+
"document": "键值索引自动配置,启用后自动将日志内的字段添加到键值索引中,包括日志中后续新增的字段。",
|
7295
7304
|
"members": [
|
7296
7305
|
{
|
7297
7306
|
"disabled": false,
|
7298
|
-
"document": "
|
7307
|
+
"document": "键值索引自动配置开关\n注意:此字段可能返回 null,表示取不到有效值。",
|
7299
7308
|
"example": "false",
|
7300
7309
|
"member": "bool",
|
7301
7310
|
"name": "Status",
|
@@ -8996,7 +9005,7 @@
|
|
8996
9005
|
"example": "559d015f-fac7-43cd-ad6e-3c4523fe8767",
|
8997
9006
|
"member": "string",
|
8998
9007
|
"name": "GroupId",
|
8999
|
-
"
|
9008
|
+
"output_required": true,
|
9000
9009
|
"type": "string",
|
9001
9010
|
"value_allowed_null": false
|
9002
9011
|
},
|
@@ -9006,7 +9015,7 @@
|
|
9006
9015
|
"example": "test",
|
9007
9016
|
"member": "string",
|
9008
9017
|
"name": "GroupName",
|
9009
|
-
"
|
9018
|
+
"output_required": true,
|
9010
9019
|
"type": "string",
|
9011
9020
|
"value_allowed_null": false
|
9012
9021
|
},
|
@@ -9016,7 +9025,7 @@
|
|
9016
9025
|
"example": "无",
|
9017
9026
|
"member": "MachineGroupTypeInfo",
|
9018
9027
|
"name": "MachineGroupType",
|
9019
|
-
"
|
9028
|
+
"output_required": true,
|
9020
9029
|
"type": "object",
|
9021
9030
|
"value_allowed_null": false
|
9022
9031
|
},
|
@@ -9026,7 +9035,7 @@
|
|
9026
9035
|
"example": "2021-03-05 00:40:22",
|
9027
9036
|
"member": "string",
|
9028
9037
|
"name": "CreateTime",
|
9029
|
-
"
|
9038
|
+
"output_required": true,
|
9030
9039
|
"type": "string",
|
9031
9040
|
"value_allowed_null": false
|
9032
9041
|
},
|
@@ -9036,7 +9045,7 @@
|
|
9036
9045
|
"example": "无",
|
9037
9046
|
"member": "Tag",
|
9038
9047
|
"name": "Tags",
|
9039
|
-
"
|
9048
|
+
"output_required": true,
|
9040
9049
|
"type": "list",
|
9041
9050
|
"value_allowed_null": true
|
9042
9051
|
},
|
@@ -9046,7 +9055,7 @@
|
|
9046
9055
|
"example": "\"true\"",
|
9047
9056
|
"member": "string",
|
9048
9057
|
"name": "AutoUpdate",
|
9049
|
-
"
|
9058
|
+
"output_required": true,
|
9050
9059
|
"type": "string",
|
9051
9060
|
"value_allowed_null": true
|
9052
9061
|
},
|
@@ -9056,7 +9065,7 @@
|
|
9056
9065
|
"example": "\"12:00:00\"",
|
9057
9066
|
"member": "string",
|
9058
9067
|
"name": "UpdateStartTime",
|
9059
|
-
"
|
9068
|
+
"output_required": true,
|
9060
9069
|
"type": "string",
|
9061
9070
|
"value_allowed_null": true
|
9062
9071
|
},
|
@@ -9066,7 +9075,7 @@
|
|
9066
9075
|
"example": "\"13:00:00\"",
|
9067
9076
|
"member": "string",
|
9068
9077
|
"name": "UpdateEndTime",
|
9069
|
-
"
|
9078
|
+
"output_required": true,
|
9070
9079
|
"type": "string",
|
9071
9080
|
"value_allowed_null": true
|
9072
9081
|
},
|
@@ -9076,17 +9085,27 @@
|
|
9076
9085
|
"example": "true",
|
9077
9086
|
"member": "bool",
|
9078
9087
|
"name": "ServiceLogging",
|
9079
|
-
"
|
9088
|
+
"output_required": true,
|
9080
9089
|
"type": "bool",
|
9081
9090
|
"value_allowed_null": true
|
9082
9091
|
},
|
9092
|
+
{
|
9093
|
+
"disabled": false,
|
9094
|
+
"document": "机器组中机器离线定期清理时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
9095
|
+
"example": "30",
|
9096
|
+
"member": "int64",
|
9097
|
+
"name": "DelayCleanupTime",
|
9098
|
+
"output_required": true,
|
9099
|
+
"type": "int",
|
9100
|
+
"value_allowed_null": true
|
9101
|
+
},
|
9083
9102
|
{
|
9084
9103
|
"disabled": false,
|
9085
9104
|
"document": "机器组元数据信息列表",
|
9086
9105
|
"example": "无",
|
9087
9106
|
"member": "MetaTagInfo",
|
9088
9107
|
"name": "MetaTags",
|
9089
|
-
"
|
9108
|
+
"output_required": true,
|
9090
9109
|
"type": "list",
|
9091
9110
|
"value_allowed_null": false
|
9092
9111
|
},
|
@@ -9096,7 +9115,7 @@
|
|
9096
9115
|
"example": "0",
|
9097
9116
|
"member": "uint64",
|
9098
9117
|
"name": "OSType",
|
9099
|
-
"
|
9118
|
+
"output_required": true,
|
9100
9119
|
"type": "int",
|
9101
9120
|
"value_allowed_null": false
|
9102
9121
|
}
|
@@ -10518,6 +10537,15 @@
|
|
10518
10537
|
"required": false,
|
10519
10538
|
"type": "bool"
|
10520
10539
|
},
|
10540
|
+
{
|
10541
|
+
"disabled": false,
|
10542
|
+
"document": "机器组中机器定期离线清理时间",
|
10543
|
+
"example": "30",
|
10544
|
+
"member": "int64",
|
10545
|
+
"name": "DelayCleanupTime",
|
10546
|
+
"required": false,
|
10547
|
+
"type": "int"
|
10548
|
+
},
|
10521
10549
|
{
|
10522
10550
|
"disabled": false,
|
10523
10551
|
"document": "机器组元数据信息列表",
|
@@ -11649,7 +11677,7 @@
|
|
11649
11677
|
"members": [
|
11650
11678
|
{
|
11651
11679
|
"disabled": false,
|
11652
|
-
"document": "全文索引配置,
|
11680
|
+
"document": "全文索引配置, 为空时代表未开启全文索引\n注意:此字段可能返回 null,表示取不到有效值。",
|
11653
11681
|
"example": "空",
|
11654
11682
|
"member": "FullTextInfo",
|
11655
11683
|
"name": "FullText",
|
@@ -11660,7 +11688,7 @@
|
|
11660
11688
|
},
|
11661
11689
|
{
|
11662
11690
|
"disabled": false,
|
11663
|
-
"document": "
|
11691
|
+
"document": "键值索引配置,为空时代表未开启键值索引\n注意:此字段可能返回 null,表示取不到有效值。",
|
11664
11692
|
"example": "空",
|
11665
11693
|
"member": "RuleKeyValueInfo",
|
11666
11694
|
"name": "KeyValue",
|
@@ -11671,7 +11699,7 @@
|
|
11671
11699
|
},
|
11672
11700
|
{
|
11673
11701
|
"disabled": false,
|
11674
|
-
"document": "
|
11702
|
+
"document": "元字段索引配置,为空时代表未开启元字段索引\n注意:此字段可能返回 null,表示取不到有效值。",
|
11675
11703
|
"example": "空",
|
11676
11704
|
"member": "RuleTagInfo",
|
11677
11705
|
"name": "Tag",
|
@@ -11682,7 +11710,7 @@
|
|
11682
11710
|
},
|
11683
11711
|
{
|
11684
11712
|
"disabled": false,
|
11685
|
-
"document": "
|
11713
|
+
"document": "键值索引自动配置,为空时代表未开启该功能。\n启用后自动将日志内的字段添加到键值索引中,包括日志中后续新增的字段。\n注意:此字段可能返回 null,表示取不到有效值。",
|
11686
11714
|
"example": "无",
|
11687
11715
|
"member": "DynamicIndex",
|
11688
11716
|
"name": "DynamicIndex",
|
@@ -356,7 +356,7 @@
|
|
356
356
|
{
|
357
357
|
"document": "获取采集规则配置所绑定的机器组",
|
358
358
|
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeConfigMachineGroups\n<公共请求参数>\n\n{\n \"ConfigId\": \"xxxxxxxxxx\"\n}",
|
359
|
-
"output": "{\n \"Response\": {\n \"MachineGroups\": [\n {\n \"AutoUpdate\": \"\",\n \"CreateTime\": \"2023-11-24 10:22:58\",\n \"GroupId\": \"59613f03-304e-492d-8bcc-af04716f4111\",\n \"GroupName\": \"test-filter\",\n \"MachineGroupType\": {\n \"Type\": \"ip\",\n \"Values\": [\n \"9.1.9.1\"\n ]\n },\n \"MetaTags\": [],\n \"OSType\": 0,\n \"ServiceLogging\": false,\n \"Tags\": [],\n \"UpdateEndTime\": \"\",\n \"UpdateStartTime\": \"\"\n }\n ],\n \"RequestId\": \"f32611a9-c1ff-48f3-97b3-32e28fe5b359\"\n }\n}",
|
359
|
+
"output": "{\n \"Response\": {\n \"MachineGroups\": [\n {\n \"AutoUpdate\": \"\",\n \"CreateTime\": \"2023-11-24 10:22:58\",\n \"DelayCleanupTime\": 0,\n \"GroupId\": \"59613f03-304e-492d-8bcc-af04716f4111\",\n \"GroupName\": \"test-filter\",\n \"MachineGroupType\": {\n \"Type\": \"ip\",\n \"Values\": [\n \"9.1.9.1\"\n ]\n },\n \"MetaTags\": [],\n \"OSType\": 0,\n \"ServiceLogging\": false,\n \"Tags\": [],\n \"UpdateEndTime\": \"\",\n \"UpdateStartTime\": \"\"\n }\n ],\n \"RequestId\": \"f32611a9-c1ff-48f3-97b3-32e28fe5b359\"\n }\n}",
|
360
360
|
"title": "获取采集规则配置所绑定的机器组"
|
361
361
|
}
|
362
362
|
],
|
@@ -476,7 +476,7 @@
|
|
476
476
|
{
|
477
477
|
"document": "获取包含指定标签的机器组列表",
|
478
478
|
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMachineGroups\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"tagKey\",\n \"Values\": [\n \"k1\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
479
|
-
"output": "{\n \"Response\": {\n \"MachineGroups\": [\n {\n \"GroupId\": \"4a4ee397-xxxx-466f-a04c-b3413b9db40c\",\n \"GroupName\": \"cos-recharge\",\n \"MachineGroupType\": {\n \"Type\": \"label\",\n \"Values\": [\n \"cos-recharge\"\n ]\n },\n \"CreateTime\": \"2022-02-13 21:07:54\",\n \"AutoUpdate\": \"\",\n \"UpdateStartTime\": \"\",\n \"UpdateEndTime\": \"\",\n \"ServiceLogging\": true,\n \"MetaTags\": [],\n \"Tags\": []\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"2dc17eaa-xxxx-40ea-8cdc-650aa85ccb80\"\n }\n}",
|
479
|
+
"output": "{\n \"Response\": {\n \"MachineGroups\": [\n {\n \"GroupId\": \"4a4ee397-xxxx-466f-a04c-b3413b9db40c\",\n \"GroupName\": \"cos-recharge\",\n \"MachineGroupType\": {\n \"Type\": \"label\",\n \"Values\": [\n \"cos-recharge\"\n ]\n },\n \"CreateTime\": \"2022-02-13 21:07:54\",\n \"AutoUpdate\": \"\",\n \"UpdateStartTime\": \"\",\n \"UpdateEndTime\": \"\",\n \"ServiceLogging\": true,\n \"DelayCleanupTime\": 30,\n \"MetaTags\": [],\n \"Tags\": []\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"2dc17eaa-xxxx-40ea-8cdc-650aa85ccb80\"\n }\n}",
|
480
480
|
"title": "获取机器组列表"
|
481
481
|
}
|
482
482
|
],
|
@@ -485,6 +485,58 @@ def doDescribeListenerList(args, parsed_globals):
|
|
485
485
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
486
|
|
487
487
|
|
488
|
+
def doDescribeOrganizationUserInfo(args, parsed_globals):
|
489
|
+
g_param = parse_global_arg(parsed_globals)
|
490
|
+
|
491
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
492
|
+
cred = credential.CVMRoleCredential()
|
493
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
494
|
+
cred = credential.STSAssumeRoleCredential(
|
495
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
496
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
497
|
+
)
|
498
|
+
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):
|
499
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
500
|
+
else:
|
501
|
+
cred = credential.Credential(
|
502
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
503
|
+
)
|
504
|
+
http_profile = HttpProfile(
|
505
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
506
|
+
reqMethod="POST",
|
507
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
508
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
509
|
+
)
|
510
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
511
|
+
if g_param[OptionsDefine.Language]:
|
512
|
+
profile.language = g_param[OptionsDefine.Language]
|
513
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
514
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
515
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
516
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
517
|
+
model = models.DescribeOrganizationUserInfoRequest()
|
518
|
+
model.from_json_string(json.dumps(args))
|
519
|
+
start_time = time.time()
|
520
|
+
while True:
|
521
|
+
rsp = client.DescribeOrganizationUserInfo(model)
|
522
|
+
result = rsp.to_json_string()
|
523
|
+
try:
|
524
|
+
json_obj = json.loads(result)
|
525
|
+
except TypeError as e:
|
526
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
527
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
528
|
+
break
|
529
|
+
cur_time = time.time()
|
530
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
531
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
532
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
533
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
534
|
+
else:
|
535
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
536
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
537
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
|
+
|
539
|
+
|
488
540
|
def doDeleteRiskScanTask(args, parsed_globals):
|
489
541
|
g_param = parse_global_arg(parsed_globals)
|
490
542
|
|
@@ -1733,7 +1785,7 @@ def doModifyOrganizationAccountStatus(args, parsed_globals):
|
|
1733
1785
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
1786
|
|
1735
1787
|
|
1736
|
-
def
|
1788
|
+
def doDescribeTopAttackInfo(args, parsed_globals):
|
1737
1789
|
g_param = parse_global_arg(parsed_globals)
|
1738
1790
|
|
1739
1791
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1762,11 +1814,11 @@ def doDescribeOrganizationUserInfo(args, parsed_globals):
|
|
1762
1814
|
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
1815
|
client._sdkVersion += ("_CLI_" + __version__)
|
1764
1816
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
-
model = models.
|
1817
|
+
model = models.DescribeTopAttackInfoRequest()
|
1766
1818
|
model.from_json_string(json.dumps(args))
|
1767
1819
|
start_time = time.time()
|
1768
1820
|
while True:
|
1769
|
-
rsp = client.
|
1821
|
+
rsp = client.DescribeTopAttackInfo(model)
|
1770
1822
|
result = rsp.to_json_string()
|
1771
1823
|
try:
|
1772
1824
|
json_obj = json.loads(result)
|
@@ -1909,6 +1961,7 @@ ACTION_MAP = {
|
|
1909
1961
|
"AddNewBindRoleUser": doAddNewBindRoleUser,
|
1910
1962
|
"DescribeSubnetAssets": doDescribeSubnetAssets,
|
1911
1963
|
"DescribeListenerList": doDescribeListenerList,
|
1964
|
+
"DescribeOrganizationUserInfo": doDescribeOrganizationUserInfo,
|
1912
1965
|
"DeleteRiskScanTask": doDeleteRiskScanTask,
|
1913
1966
|
"DescribeRiskCenterAssetViewWeakPasswordRiskList": doDescribeRiskCenterAssetViewWeakPasswordRiskList,
|
1914
1967
|
"DescribeRiskCenterAssetViewVULRiskList": doDescribeRiskCenterAssetViewVULRiskList,
|
@@ -1933,7 +1986,7 @@ ACTION_MAP = {
|
|
1933
1986
|
"DescribeVULRiskAdvanceCFGList": doDescribeVULRiskAdvanceCFGList,
|
1934
1987
|
"ModifyRiskCenterRiskStatus": doModifyRiskCenterRiskStatus,
|
1935
1988
|
"ModifyOrganizationAccountStatus": doModifyOrganizationAccountStatus,
|
1936
|
-
"
|
1989
|
+
"DescribeTopAttackInfo": doDescribeTopAttackInfo,
|
1937
1990
|
"DescribeTaskLogURL": doDescribeTaskLogURL,
|
1938
1991
|
"DescribeCVMAssetInfo": doDescribeCVMAssetInfo,
|
1939
1992
|
|
@@ -210,6 +210,13 @@
|
|
210
210
|
"output": "DescribeTaskLogURLResponse",
|
211
211
|
"status": "online"
|
212
212
|
},
|
213
|
+
"DescribeTopAttackInfo": {
|
214
|
+
"document": "查询TOP攻击信息",
|
215
|
+
"input": "DescribeTopAttackInfoRequest",
|
216
|
+
"name": "查询TOP攻击信息",
|
217
|
+
"output": "DescribeTopAttackInfoResponse",
|
218
|
+
"status": "online"
|
219
|
+
},
|
213
220
|
"DescribeVULRiskAdvanceCFGList": {
|
214
221
|
"document": "查询漏洞风险高级配置",
|
215
222
|
"input": "DescribeVULRiskAdvanceCFGListRequest",
|
@@ -5775,6 +5782,43 @@
|
|
5775
5782
|
],
|
5776
5783
|
"type": "object"
|
5777
5784
|
},
|
5785
|
+
"DescribeTopAttackInfoRequest": {
|
5786
|
+
"document": "DescribeTopAttackInfo请求参数结构体",
|
5787
|
+
"members": [
|
5788
|
+
{
|
5789
|
+
"disabled": false,
|
5790
|
+
"document": "被调用的集团账号的成员id",
|
5791
|
+
"example": "[]{\"mem-6wfo0fzks3\",\"mem-85fo0fzks4\"}",
|
5792
|
+
"member": "string",
|
5793
|
+
"name": "OperatedMemberId",
|
5794
|
+
"required": false,
|
5795
|
+
"type": "list"
|
5796
|
+
}
|
5797
|
+
],
|
5798
|
+
"type": "object"
|
5799
|
+
},
|
5800
|
+
"DescribeTopAttackInfoResponse": {
|
5801
|
+
"document": "DescribeTopAttackInfo返回参数结构体",
|
5802
|
+
"members": [
|
5803
|
+
{
|
5804
|
+
"disabled": false,
|
5805
|
+
"document": "Top攻击类型/攻击者次数",
|
5806
|
+
"example": "漏洞攻击:1234",
|
5807
|
+
"member": "TagCount",
|
5808
|
+
"name": "TopAttackInfo",
|
5809
|
+
"output_required": true,
|
5810
|
+
"type": "list",
|
5811
|
+
"value_allowed_null": false
|
5812
|
+
},
|
5813
|
+
{
|
5814
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
5815
|
+
"member": "string",
|
5816
|
+
"name": "RequestId",
|
5817
|
+
"type": "string"
|
5818
|
+
}
|
5819
|
+
],
|
5820
|
+
"type": "object"
|
5821
|
+
},
|
5778
5822
|
"DescribeVULRiskAdvanceCFGListRequest": {
|
5779
5823
|
"document": "DescribeVULRiskAdvanceCFGList请求参数结构体",
|
5780
5824
|
"members": [
|
@@ -9258,6 +9302,32 @@
|
|
9258
9302
|
],
|
9259
9303
|
"usage": "both"
|
9260
9304
|
},
|
9305
|
+
"TagCount": {
|
9306
|
+
"document": "产品日志条数",
|
9307
|
+
"members": [
|
9308
|
+
{
|
9309
|
+
"disabled": false,
|
9310
|
+
"document": "产品名\n注意:此字段可能返回 null,表示取不到有效值。",
|
9311
|
+
"example": "CFW",
|
9312
|
+
"member": "string",
|
9313
|
+
"name": "Name",
|
9314
|
+
"required": false,
|
9315
|
+
"type": "string",
|
9316
|
+
"value_allowed_null": true
|
9317
|
+
},
|
9318
|
+
{
|
9319
|
+
"disabled": false,
|
9320
|
+
"document": "日志条数\n注意:此字段可能返回 null,表示取不到有效值。",
|
9321
|
+
"example": "1000",
|
9322
|
+
"member": "uint64",
|
9323
|
+
"name": "Count",
|
9324
|
+
"required": false,
|
9325
|
+
"type": "int",
|
9326
|
+
"value_allowed_null": true
|
9327
|
+
}
|
9328
|
+
],
|
9329
|
+
"usage": "out"
|
9330
|
+
},
|
9261
9331
|
"Tags": {
|
9262
9332
|
"document": "主机标签信息",
|
9263
9333
|
"members": [
|
@@ -240,6 +240,14 @@
|
|
240
240
|
"title": "获取报告下载的临时链接"
|
241
241
|
}
|
242
242
|
],
|
243
|
+
"DescribeTopAttackInfo": [
|
244
|
+
{
|
245
|
+
"document": "",
|
246
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopAttackInfo\n<公共请求参数>\n\n{\n \"OperatedMemberId\": [\n \"abc\"\n ]\n}",
|
247
|
+
"output": "{\n \"Response\": {\n \"TopAttackInfo\": [\n {\n \"Name\": \"漏洞攻击\",\n \"Count\": 123\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
248
|
+
"title": "查询TOP攻击信息示例"
|
249
|
+
}
|
250
|
+
],
|
243
251
|
"DescribeVULRiskAdvanceCFGList": [
|
244
252
|
{
|
245
253
|
"document": "\t\n查询漏洞风险高级配置",
|
@@ -8166,7 +8166,7 @@
|
|
8166
8166
|
},
|
8167
8167
|
{
|
8168
8168
|
"disabled": false,
|
8169
|
-
"document": "
|
8169
|
+
"document": "返回数量,取值范围(0,100]",
|
8170
8170
|
"example": "10",
|
8171
8171
|
"member": "int64",
|
8172
8172
|
"name": "Limit",
|
@@ -8175,7 +8175,7 @@
|
|
8175
8175
|
},
|
8176
8176
|
{
|
8177
8177
|
"disabled": false,
|
8178
|
-
"document": "
|
8178
|
+
"document": "记录偏移量,取值范围[0,INF)",
|
8179
8179
|
"example": "0",
|
8180
8180
|
"member": "int64",
|
8181
8181
|
"name": "Offset",
|
@@ -8211,7 +8211,7 @@
|
|
8211
8211
|
},
|
8212
8212
|
{
|
8213
8213
|
"disabled": false,
|
8214
|
-
"document": "备份方式,可选值:auto,自动备份;manual
|
8214
|
+
"document": "备份方式,可选值:auto,自动备份;manual,手动备份",
|
8215
8215
|
"example": "auto",
|
8216
8216
|
"member": "string",
|
8217
8217
|
"name": "BackupMethod",
|
@@ -10315,7 +10315,7 @@
|
|
10315
10315
|
{
|
10316
10316
|
"disabled": false,
|
10317
10317
|
"document": "弹性网卡实例ID,例如:eni-m6dyj72l。",
|
10318
|
-
"example": "",
|
10318
|
+
"example": "eni-afo43z61",
|
10319
10319
|
"member": "string",
|
10320
10320
|
"name": "NetworkInterfaceId",
|
10321
10321
|
"required": true,
|
@@ -10324,7 +10324,7 @@
|
|
10324
10324
|
{
|
10325
10325
|
"disabled": false,
|
10326
10326
|
"document": "指定的内网IP信息。",
|
10327
|
-
"example": "",
|
10327
|
+
"example": "[{\"PrivateIpAddress\":\"172.16.32.11\", \"Description\":\"TEST\"}]",
|
10328
10328
|
"member": "PrivateIpAddressSpecification",
|
10329
10329
|
"name": "PrivateIpAddresses",
|
10330
10330
|
"required": true,
|
@@ -10333,7 +10333,7 @@
|
|
10333
10333
|
{
|
10334
10334
|
"disabled": false,
|
10335
10335
|
"document": "ECM 节点Region信息,形如ap-xian-ecm。",
|
10336
|
-
"example": "",
|
10336
|
+
"example": "ap-qingdao-ecm",
|
10337
10337
|
"member": "string",
|
10338
10338
|
"name": "EcmRegion",
|
10339
10339
|
"required": true,
|
@@ -931,7 +931,7 @@
|
|
931
931
|
"ModifyPrivateIpAddressesAttribute": [
|
932
932
|
{
|
933
933
|
"document": "",
|
934
|
-
"input": "https://ecm.tencentcloudapi.com/?Action=ModifyPrivateIpAddressesAttribute\n&NetworkInterfaceId=eni-pwbqma5d\n&PrivateIpAddresses.0.PrivateIpAddress=192.168.2.7\n&PrivateIpAddresses.0.Description=new-name\n&EcmRegion
|
934
|
+
"input": "https://ecm.tencentcloudapi.com/?Action=ModifyPrivateIpAddressesAttribute\n&NetworkInterfaceId=eni-pwbqma5d\n&PrivateIpAddresses.0.PrivateIpAddress=192.168.2.7\n&PrivateIpAddresses.0.Description=new-name\n&EcmRegion=ap-guangzhou-ecm\n&<公共请求参数>",
|
935
935
|
"output": "{\n \"Response\": {\n \"RequestId\": \"f23d1450-ed00-4442-98d4-be409e625e6c\"\n }\n}",
|
936
936
|
"title": "修改弹性网卡内网IP属性"
|
937
937
|
}
|
@@ -807,7 +807,7 @@
|
|
807
807
|
},
|
808
808
|
{
|
809
809
|
"disabled": false,
|
810
|
-
"document": "签署人在合同中的填写控件列表,列表中可支持下列多种填写控件,控件的详细定义参考开发者中心的Component结构体\n<ul><li>单行文本控件</li>\n<li>多行文本控件</li>\n<li>勾选框控件</li>\n<li>数字控件</li>\n<li>图片控件</li>\n<li>数据表格等填写控件</li></ul>\n\n具体使用说明可参考[为签署方指定填写控件](https
|
810
|
+
"document": "签署人在合同中的填写控件列表,列表中可支持下列多种填写控件,控件的详细定义参考开发者中心的Component结构体\n<ul><li>单行文本控件</li>\n<li>多行文本控件</li>\n<li>勾选框控件</li>\n<li>数字控件</li>\n<li>图片控件</li>\n<li>数据表格等填写控件</li></ul>\n\n具体使用说明可参考[为签署方指定填写控件](https://qian.tencent.cn/developers/company/createFlowByFiles/#指定签署方填写控件)\n\n注:`此参数仅在通过文件发起合同或者合同组时生效`",
|
811
811
|
"example": "无",
|
812
812
|
"member": "Component",
|
813
813
|
"name": "Components",
|
@@ -1571,7 +1571,7 @@
|
|
1571
1571
|
"usage": "in"
|
1572
1572
|
},
|
1573
1573
|
"Component": {
|
1574
|
-
"document": "此结构体 (Component) 用于描述控件属性。\n\n在通过文件发起合同时,对应的component有三种定位方式\n1.
|
1574
|
+
"document": "此结构体 (Component) 用于描述控件属性。\n\n在通过文件发起合同时,对应的component有三种定位方式\n1. 绝对定位方式 (可以通过 [PDF坐标计算助手](https://qian.tencent.com/developers/tools/template-editor)计算控件的坐标)\n2. 表单域(FIELD)定位方式\n3. 关键字(KEYWORD)定位方式,使用关键字定位时,请确保PDF原始文件内是关键字以文字形式保存在PDF文件中,不支持对图片内文字进行关键字查找\n可以参考官网说明\nhttps://cloud.tencent.com/document/product/1323/78346#component-.E4.B8.89.E7.A7.8D.E5.AE.9A.E4.BD.8D.E6.96.B9.E5.BC.8F.E8.AF.B4.E6.98.8E",
|
1575
1575
|
"members": [
|
1576
1576
|
{
|
1577
1577
|
"disabled": false,
|
@@ -3370,7 +3370,7 @@
|
|
3370
3370
|
},
|
3371
3371
|
{
|
3372
3372
|
"disabled": false,
|
3373
|
-
"document": "合同流程的参与方列表,最多可支持50个参与方,可在列表中指定企业B端签署方和个人C端签署方的联系和认证方式等信息,具体定义可以参考开发者中心的ApproverInfo结构体。\n\n注:
|
3373
|
+
"document": "合同流程的参与方列表,最多可支持50个参与方,可在列表中指定企业B端签署方和个人C端签署方的联系和认证方式等信息,具体定义可以参考开发者中心的ApproverInfo结构体。\n\n注: \n<font color=\"red\" > <b> 在发起流程时,需要保证 approver 中的顺序与模板定义顺序一致,否则会发起失败。\n例如,如果模板中定义的第一个参与人是个人用户,第二个参与人是企业员工,则在 approver 中传参时,第一个也必须是个人用户,第二个参与人必须是企业员工。</b></font>\n\n[点击查看模板参与人顺序定义位置](https://qcloudimg.tencent-cloud.cn/raw/d14457b48cc66b29262ccb9d7b3ed556.png)",
|
3374
3374
|
"example": "无",
|
3375
3375
|
"member": "FlowCreateApprover",
|
3376
3376
|
"name": "Approvers",
|
@@ -5186,7 +5186,7 @@
|
|
5186
5186
|
"usage": "in"
|
5187
5187
|
},
|
5188
5188
|
"Component": {
|
5189
|
-
"document": "此结构体 (Component) 用于描述控件属性。\n\n在通过文件发起合同时,对应的component有三种定位方式\n1.
|
5189
|
+
"document": "此结构体 (Component) 用于描述控件属性。\n\n在通过文件发起合同时,对应的component有三种定位方式\n1. 绝对定位方式 (可以通过 [PDF坐标计算助手](https://qian.tencent.com/developers/tools/template-editor)计算控件的坐标)\n2. 表单域(FIELD)定位方式\n3. 关键字(KEYWORD)定位方式,使用关键字定位时,请确保PDF原始文件内是关键字以文字形式保存在PDF文件中,不支持对图片内文字进行关键字查找\n可以参考官网说明\nhttps://cloud.tencent.com/document/product/1323/78346#component-.E4.B8.89.E7.A7.8D.E5.AE.9A.E4.BD.8D.E6.96.B9.E5.BC.8F.E8.AF.B4.E6.98.8E",
|
5190
5190
|
"members": [
|
5191
5191
|
{
|
5192
5192
|
"disabled": false,
|
@@ -5839,7 +5839,7 @@
|
|
5839
5839
|
},
|
5840
5840
|
{
|
5841
5841
|
"disabled": false,
|
5842
|
-
"document": "认证完成跳转链接。\n注意:`目前仅支持 H5 和 PC
|
5842
|
+
"document": "认证完成跳转链接。\n注意:`目前仅支持 H5 和 PC`。",
|
5843
5843
|
"example": "https://qian.tencent.com/",
|
5844
5844
|
"member": "string",
|
5845
5845
|
"name": "AutoJumpUrl",
|
@@ -8031,7 +8031,7 @@
|
|
8031
8031
|
},
|
8032
8032
|
{
|
8033
8033
|
"disabled": false,
|
8034
|
-
"document": "签署人在合同中的填写控件列表,列表中可支持下列多种填写控件,控件的详细定义参考开发者中心的Component结构体\n<ul><li>单行文本控件</li>\n<li>多行文本控件</li>\n<li>勾选框控件</li>\n<li>数字控件</li>\n<li>图片控件</li>\n<li>数据表格等填写控件</li></ul>\n\n具体使用说明可参考[为签署方指定填写控件](https
|
8034
|
+
"document": "签署人在合同中的填写控件列表,列表中可支持下列多种填写控件,控件的详细定义参考开发者中心的Component结构体\n<ul><li>单行文本控件</li>\n<li>多行文本控件</li>\n<li>勾选框控件</li>\n<li>数字控件</li>\n<li>图片控件</li>\n<li>数据表格等填写控件</li></ul>\n\n具体使用说明可参考[为签署方指定填写控件](https://qian.tencent.cn/developers/partner/createFlowByFiles#为签署方指定填写控件)\n\n\n注:`此参数仅在通过文件发起合同或者合同组时生效`",
|
8035
8035
|
"example": "无",
|
8036
8036
|
"member": "Component",
|
8037
8037
|
"name": "Components",
|
@@ -8409,7 +8409,7 @@
|
|
8409
8409
|
},
|
8410
8410
|
{
|
8411
8411
|
"disabled": false,
|
8412
|
-
"document": "
|
8412
|
+
"document": "合同流程的参与方列表,最多可支持50个参与方\n\n注: \n<font color=\"red\" > <b> 在发起流程时,需要保证 FlowApprovers中的顺序与模板定义顺序一致,否则会发起失败。\n例如,如果模板中定义的第一个参与人是个人用户,第二个参与人是企业员工,则在 approver 中传参时,第一个也必须是个人用户,第二个参与人必须是企业员工。</b></font>\n\n[点击查看模板参与人顺序定义位置](https://qcloudimg.tencent-cloud.cn/raw/c50e0a204fc5c66aaa2ca70e451ef2d6.png)\n",
|
8413
8413
|
"example": "签署人信息",
|
8414
8414
|
"member": "FlowApproverInfo",
|
8415
8415
|
"name": "FlowApprovers",
|
@@ -8599,7 +8599,7 @@
|
|
8599
8599
|
},
|
8600
8600
|
{
|
8601
8601
|
"disabled": false,
|
8602
|
-
"document": "
|
8602
|
+
"document": "程合同ID列表, 可将这些流程ID组织成合同组的形式, 下载时候每个文件夹会是一个zip压缩包, 每个文件夹最多20个合同, 所有文件夹最多50个合同\n如下列组织形式, 控制台下载页面点击下载按钮后, 会生成**2023采购合同.zip**和**2023入职合同.zip** 两个下载任务(注:`部分浏览器需要授权或不支持创建多下载任务`)\n\n**2023采购合同.zip**压缩包会有`yDwivUUckpor6wtoUuogwQHCAB0ES0pQ`和`yDwi8UUckpo5fz9cUqI6nGwcuTvt9YSh`两个合同的文件\n**2023入职合同.zip** 压缩包会有`yDwivUUckpor6wobUuogwQHvdGfvDi5K`的文件\n\n![image](\thttps://dyn.ess.tencent.cn/guide/capi/channel_GetDownloadFlowUrl_DownLoadFlows.png)",
|
8603
8603
|
"example": "无",
|
8604
8604
|
"member": "DownloadFlowInfo",
|
8605
8605
|
"name": "DownLoadFlows",
|
@@ -2174,7 +2174,7 @@
|
|
2174
2174
|
},
|
2175
2175
|
{
|
2176
2176
|
"disabled": false,
|
2177
|
-
"document": "
|
2177
|
+
"document": "云存视频存储区域,国内默认为ap-guangzhou。海外默认为东南亚ap-singapore,可选美东na-ashburn、欧洲eu-frankfurt。",
|
2178
2178
|
"example": "ap-guangzhou",
|
2179
2179
|
"member": "string",
|
2180
2180
|
"name": "StorageRegion",
|
@@ -6905,7 +6905,7 @@
|
|
6905
6905
|
{
|
6906
6906
|
"disabled": false,
|
6907
6907
|
"document": "隔离时间。按照 ISO8601 标准表示,并且使用 UTC 时间。 \n格式为: YYYY-MM-DDThh:mm:ssZ。\n注意:此字段可能返回 null,表示取不到有效值。",
|
6908
|
-
"example": "
|
6908
|
+
"example": "2023-12-01T06:34:59Z",
|
6909
6909
|
"member": "datetime_iso",
|
6910
6910
|
"name": "IsolatedTime",
|
6911
6911
|
"output_required": true,
|