tccli 3.0.1048.1__py2.py3-none-any.whl → 3.0.1050.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/antiddos/v20200309/DescribeBGPIPL7Rules.md +87 -0
- tccli/examples/ckafka/v20190819/DescribeGroup.md +6 -5
- tccli/examples/csip/v20221121/ModifyOrganizationAccountStatus.md +21 -0
- tccli/examples/csip/v20221121/ModifyRiskCenterScanTask.md +41 -0
- tccli/examples/cynosdb/v20190107/AddInstances.md +2 -2
- tccli/examples/cynosdb/v20190107/DescribeClusterInstanceGrps.md +235 -79
- tccli/examples/cynosdb/v20190107/DescribeClusterParams.md +3 -1
- tccli/examples/cynosdb/v20190107/DescribeClusterPasswordComplexity.md +18 -6
- tccli/examples/cynosdb/v20190107/DescribeInstances.md +63 -55
- tccli/examples/cynosdb/v20190107/DescribeParamTemplateDetail.md +3 -1
- tccli/examples/cynosdb/v20190107/ModifyVipVport.md +3 -3
- tccli/examples/essbasic/v20210526/ChannelCreatePrepareFlow.md +2 -2
- tccli/examples/hunyuan/v20230901/ChatPro.md +76 -0
- tccli/examples/hunyuan/v20230901/ChatStd.md +37 -0
- tccli/examples/live/v20180801/DescribeLiveTranscodeTemplates.md +8 -8
- tccli/examples/oceanus/v20190422/CopyJobs.md +11 -20
- tccli/examples/redis/v20180412/CreateInstanceAccount.md +7 -6
- tccli/examples/teo/v20220901/DescribeDefaultCertificates.md +2 -1
- tccli/examples/tke/v20180525/ForwardApplicationRequestV3.md +2 -2
- tccli/examples/trocket/v20230308/CreateMQTTInsPublicEndpoint.md +26 -0
- tccli/examples/trocket/v20230308/CreateMQTTInstance.md +31 -0
- tccli/examples/trocket/v20230308/CreateMQTTTopic.md +25 -0
- tccli/examples/trocket/v20230308/CreateMQTTUser.md +27 -0
- tccli/examples/trocket/v20230308/DeleteMQTTInsPublicEndpoint.md +22 -0
- tccli/examples/trocket/v20230308/DeleteMQTTInstance.md +22 -0
- tccli/examples/trocket/v20230308/DeleteMQTTTopic.md +23 -0
- tccli/examples/trocket/v20230308/DeleteMQTTUser.md +23 -0
- tccli/examples/trocket/v20230308/DescribeMQTTClient.md +82 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInsPublicEndpoints.md +26 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInsVPCEndpoints.md +40 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInstance.md +34 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInstanceCert.md +25 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +176 -0
- tccli/examples/trocket/v20230308/DescribeMQTTMessage.md +83 -0
- tccli/examples/trocket/v20230308/DescribeMQTTMessageList.md +54 -0
- tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +94 -0
- tccli/examples/trocket/v20230308/DescribeMQTTTopic.md +27 -0
- tccli/examples/trocket/v20230308/DescribeMQTTTopicList.md +127 -0
- tccli/examples/trocket/v20230308/DescribeMQTTUserList.md +36 -0
- tccli/examples/trocket/v20230308/ModifyMQTTInsPublicEndpoint.md +26 -0
- tccli/examples/trocket/v20230308/ModifyMQTTInstance.md +24 -0
- tccli/examples/trocket/v20230308/ModifyMQTTInstanceCertBinding.md +24 -0
- tccli/examples/trocket/v20230308/ModifyMQTTTopic.md +24 -0
- tccli/examples/trocket/v20230308/ModifyMQTTUser.md +26 -0
- tccli/examples/wedata/v20210820/DeleteProjectUsers.md +36 -0
- tccli/services/antiddos/antiddos_client.py +53 -0
- tccli/services/antiddos/v20200309/api.json +439 -0
- tccli/services/antiddos/v20200309/examples.json +8 -0
- tccli/services/cfg/v20210820/api.json +21 -10
- tccli/services/ckafka/v20190819/api.json +6 -5
- tccli/services/ckafka/v20190819/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +48 -19
- tccli/services/csip/csip_client.py +106 -0
- tccli/services/csip/v20221121/api.json +188 -0
- tccli/services/csip/v20221121/examples.json +16 -0
- tccli/services/cynosdb/v20190107/api.json +415 -87
- tccli/services/cynosdb/v20190107/examples.json +12 -12
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/hunyuan/v20230901/examples.json +18 -0
- tccli/services/live/v20180801/api.json +13 -3
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/oceanus/v20190422/api.json +32 -3
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/privatedns/v20201028/api.json +29 -19
- tccli/services/redis/v20180412/api.json +13 -10
- tccli/services/redis/v20180412/examples.json +2 -2
- tccli/services/ssl/ssl_client.py +0 -53
- tccli/services/ssl/v20191205/api.json +0 -99
- tccli/services/ssl/v20191205/examples.json +0 -8
- tccli/services/teo/v20220901/api.json +14 -3
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/tke/v20180525/api.json +26 -22
- tccli/services/tke/v20180525/examples.json +1 -1
- tccli/services/trocket/trocket_client.py +1377 -52
- tccli/services/trocket/v20230308/api.json +2946 -502
- tccli/services/trocket/v20230308/examples.json +212 -0
- tccli/services/ump/v20200918/api.json +2 -2
- tccli/services/wedata/v20210820/api.json +24 -0
- tccli/services/wedata/v20210820/examples.json +14 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/RECORD +88 -59
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/license_files/LICENSE +0 -0
@@ -4199,6 +4199,15 @@
|
|
4199
4199
|
"name": "EndTime",
|
4200
4200
|
"required": false,
|
4201
4201
|
"type": "int"
|
4202
|
+
},
|
4203
|
+
{
|
4204
|
+
"disabled": false,
|
4205
|
+
"document": "cos桶存储类型",
|
4206
|
+
"example": "STANDARD",
|
4207
|
+
"member": "string",
|
4208
|
+
"name": "StorageType",
|
4209
|
+
"required": false,
|
4210
|
+
"type": "string"
|
4202
4211
|
}
|
4203
4212
|
],
|
4204
4213
|
"type": "object"
|
@@ -4212,6 +4221,7 @@
|
|
4212
4221
|
"example": "57f5808c-4a55-11eb-b378-0242ac130002",
|
4213
4222
|
"member": "string",
|
4214
4223
|
"name": "ShipperId",
|
4224
|
+
"output_required": true,
|
4215
4225
|
"type": "string",
|
4216
4226
|
"value_allowed_null": false
|
4217
4227
|
},
|
@@ -10284,6 +10294,15 @@
|
|
10284
10294
|
"name": "FilenameMode",
|
10285
10295
|
"required": false,
|
10286
10296
|
"type": "int"
|
10297
|
+
},
|
10298
|
+
{
|
10299
|
+
"disabled": false,
|
10300
|
+
"document": "cos桶类型",
|
10301
|
+
"example": "STANDARD",
|
10302
|
+
"member": "string",
|
10303
|
+
"name": "StorageType",
|
10304
|
+
"required": false,
|
10305
|
+
"type": "string"
|
10287
10306
|
}
|
10288
10307
|
],
|
10289
10308
|
"type": "object"
|
@@ -11987,7 +12006,7 @@
|
|
11987
12006
|
"example": "57f5808c-4a55-11eb-b378-0242ac130002",
|
11988
12007
|
"member": "string",
|
11989
12008
|
"name": "ShipperId",
|
11990
|
-
"
|
12009
|
+
"output_required": true,
|
11991
12010
|
"type": "string",
|
11992
12011
|
"value_allowed_null": false
|
11993
12012
|
},
|
@@ -11997,7 +12016,7 @@
|
|
11997
12016
|
"example": "57f5808c-4a55-11eb-b378-0242ac130002",
|
11998
12017
|
"member": "string",
|
11999
12018
|
"name": "TopicId",
|
12000
|
-
"
|
12019
|
+
"output_required": true,
|
12001
12020
|
"type": "string",
|
12002
12021
|
"value_allowed_null": false
|
12003
12022
|
},
|
@@ -12007,7 +12026,7 @@
|
|
12007
12026
|
"example": "无",
|
12008
12027
|
"member": "string",
|
12009
12028
|
"name": "Bucket",
|
12010
|
-
"
|
12029
|
+
"output_required": true,
|
12011
12030
|
"type": "string",
|
12012
12031
|
"value_allowed_null": false
|
12013
12032
|
},
|
@@ -12017,7 +12036,7 @@
|
|
12017
12036
|
"example": "无",
|
12018
12037
|
"member": "string",
|
12019
12038
|
"name": "Prefix",
|
12020
|
-
"
|
12039
|
+
"output_required": true,
|
12021
12040
|
"type": "string",
|
12022
12041
|
"value_allowed_null": false
|
12023
12042
|
},
|
@@ -12027,7 +12046,7 @@
|
|
12027
12046
|
"example": "testShipper",
|
12028
12047
|
"member": "string",
|
12029
12048
|
"name": "ShipperName",
|
12030
|
-
"
|
12049
|
+
"output_required": true,
|
12031
12050
|
"type": "string",
|
12032
12051
|
"value_allowed_null": false
|
12033
12052
|
},
|
@@ -12037,7 +12056,7 @@
|
|
12037
12056
|
"example": "300",
|
12038
12057
|
"member": "uint64",
|
12039
12058
|
"name": "Interval",
|
12040
|
-
"
|
12059
|
+
"output_required": true,
|
12041
12060
|
"type": "int",
|
12042
12061
|
"value_allowed_null": false
|
12043
12062
|
},
|
@@ -12047,7 +12066,7 @@
|
|
12047
12066
|
"example": "256",
|
12048
12067
|
"member": "uint64",
|
12049
12068
|
"name": "MaxSize",
|
12050
|
-
"
|
12069
|
+
"output_required": true,
|
12051
12070
|
"type": "int",
|
12052
12071
|
"value_allowed_null": false
|
12053
12072
|
},
|
@@ -12057,7 +12076,7 @@
|
|
12057
12076
|
"example": "true",
|
12058
12077
|
"member": "bool",
|
12059
12078
|
"name": "Status",
|
12060
|
-
"
|
12079
|
+
"output_required": true,
|
12061
12080
|
"type": "bool",
|
12062
12081
|
"value_allowed_null": false
|
12063
12082
|
},
|
@@ -12067,7 +12086,7 @@
|
|
12067
12086
|
"example": "无",
|
12068
12087
|
"member": "FilterRuleInfo",
|
12069
12088
|
"name": "FilterRules",
|
12070
|
-
"
|
12089
|
+
"output_required": true,
|
12071
12090
|
"type": "list",
|
12072
12091
|
"value_allowed_null": true
|
12073
12092
|
},
|
@@ -12077,7 +12096,7 @@
|
|
12077
12096
|
"example": "无",
|
12078
12097
|
"member": "string",
|
12079
12098
|
"name": "Partition",
|
12080
|
-
"
|
12099
|
+
"output_required": true,
|
12081
12100
|
"type": "string",
|
12082
12101
|
"value_allowed_null": false
|
12083
12102
|
},
|
@@ -12087,7 +12106,7 @@
|
|
12087
12106
|
"example": "无",
|
12088
12107
|
"member": "CompressInfo",
|
12089
12108
|
"name": "Compress",
|
12090
|
-
"
|
12109
|
+
"output_required": true,
|
12091
12110
|
"type": "object",
|
12092
12111
|
"value_allowed_null": true
|
12093
12112
|
},
|
@@ -12097,7 +12116,7 @@
|
|
12097
12116
|
"example": "无",
|
12098
12117
|
"member": "ContentInfo",
|
12099
12118
|
"name": "Content",
|
12100
|
-
"
|
12119
|
+
"output_required": true,
|
12101
12120
|
"type": "object",
|
12102
12121
|
"value_allowed_null": true
|
12103
12122
|
},
|
@@ -12107,7 +12126,7 @@
|
|
12107
12126
|
"example": "无",
|
12108
12127
|
"member": "string",
|
12109
12128
|
"name": "CreateTime",
|
12110
|
-
"
|
12129
|
+
"output_required": true,
|
12111
12130
|
"type": "string",
|
12112
12131
|
"value_allowed_null": false
|
12113
12132
|
},
|
@@ -12117,7 +12136,7 @@
|
|
12117
12136
|
"example": "无",
|
12118
12137
|
"member": "uint64",
|
12119
12138
|
"name": "FilenameMode",
|
12120
|
-
"
|
12139
|
+
"output_required": true,
|
12121
12140
|
"type": "int",
|
12122
12141
|
"value_allowed_null": true
|
12123
12142
|
},
|
@@ -12127,7 +12146,7 @@
|
|
12127
12146
|
"example": "1670642281",
|
12128
12147
|
"member": "int64",
|
12129
12148
|
"name": "StartTime",
|
12130
|
-
"
|
12149
|
+
"output_required": true,
|
12131
12150
|
"type": "int",
|
12132
12151
|
"value_allowed_null": true
|
12133
12152
|
},
|
@@ -12137,7 +12156,7 @@
|
|
12137
12156
|
"example": "0",
|
12138
12157
|
"member": "int64",
|
12139
12158
|
"name": "EndTime",
|
12140
|
-
"
|
12159
|
+
"output_required": true,
|
12141
12160
|
"type": "int",
|
12142
12161
|
"value_allowed_null": true
|
12143
12162
|
},
|
@@ -12147,7 +12166,7 @@
|
|
12147
12166
|
"example": "5.6",
|
12148
12167
|
"member": "float",
|
12149
12168
|
"name": "Progress",
|
12150
|
-
"
|
12169
|
+
"output_required": true,
|
12151
12170
|
"type": "float",
|
12152
12171
|
"value_allowed_null": true
|
12153
12172
|
},
|
@@ -12157,7 +12176,7 @@
|
|
12157
12176
|
"example": "23",
|
12158
12177
|
"member": "int64",
|
12159
12178
|
"name": "RemainTime",
|
12160
|
-
"
|
12179
|
+
"output_required": true,
|
12161
12180
|
"type": "int",
|
12162
12181
|
"value_allowed_null": true
|
12163
12182
|
},
|
@@ -12167,9 +12186,19 @@
|
|
12167
12186
|
"example": "1",
|
12168
12187
|
"member": "int64",
|
12169
12188
|
"name": "HistoryStatus",
|
12170
|
-
"
|
12189
|
+
"output_required": true,
|
12171
12190
|
"type": "int",
|
12172
12191
|
"value_allowed_null": true
|
12192
|
+
},
|
12193
|
+
{
|
12194
|
+
"disabled": false,
|
12195
|
+
"document": "cos桶类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
12196
|
+
"example": "无",
|
12197
|
+
"member": "string",
|
12198
|
+
"name": "StorageType",
|
12199
|
+
"output_required": false,
|
12200
|
+
"type": "string",
|
12201
|
+
"value_allowed_null": true
|
12173
12202
|
}
|
12174
12203
|
],
|
12175
12204
|
"usage": "out"
|
@@ -901,6 +901,58 @@ def doDescribeCVMAssets(args, parsed_globals):
|
|
901
901
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
902
|
|
903
903
|
|
904
|
+
def doModifyRiskCenterScanTask(args, parsed_globals):
|
905
|
+
g_param = parse_global_arg(parsed_globals)
|
906
|
+
|
907
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
908
|
+
cred = credential.CVMRoleCredential()
|
909
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
910
|
+
cred = credential.STSAssumeRoleCredential(
|
911
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
912
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
913
|
+
)
|
914
|
+
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):
|
915
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
916
|
+
else:
|
917
|
+
cred = credential.Credential(
|
918
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
919
|
+
)
|
920
|
+
http_profile = HttpProfile(
|
921
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
922
|
+
reqMethod="POST",
|
923
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
924
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
925
|
+
)
|
926
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
927
|
+
if g_param[OptionsDefine.Language]:
|
928
|
+
profile.language = g_param[OptionsDefine.Language]
|
929
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
930
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
931
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
932
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
933
|
+
model = models.ModifyRiskCenterScanTaskRequest()
|
934
|
+
model.from_json_string(json.dumps(args))
|
935
|
+
start_time = time.time()
|
936
|
+
while True:
|
937
|
+
rsp = client.ModifyRiskCenterScanTask(model)
|
938
|
+
result = rsp.to_json_string()
|
939
|
+
try:
|
940
|
+
json_obj = json.loads(result)
|
941
|
+
except TypeError as e:
|
942
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
943
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
944
|
+
break
|
945
|
+
cur_time = time.time()
|
946
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
947
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
948
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
949
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
950
|
+
else:
|
951
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
952
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
953
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
|
+
|
955
|
+
|
904
956
|
def doDescribeRiskCenterWebsiteRiskList(args, parsed_globals):
|
905
957
|
g_param = parse_global_arg(parsed_globals)
|
906
958
|
|
@@ -1629,6 +1681,58 @@ def doModifyRiskCenterRiskStatus(args, parsed_globals):
|
|
1629
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
1682
|
|
1631
1683
|
|
1684
|
+
def doModifyOrganizationAccountStatus(args, parsed_globals):
|
1685
|
+
g_param = parse_global_arg(parsed_globals)
|
1686
|
+
|
1687
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1688
|
+
cred = credential.CVMRoleCredential()
|
1689
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1690
|
+
cred = credential.STSAssumeRoleCredential(
|
1691
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1692
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1693
|
+
)
|
1694
|
+
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):
|
1695
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1696
|
+
else:
|
1697
|
+
cred = credential.Credential(
|
1698
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1699
|
+
)
|
1700
|
+
http_profile = HttpProfile(
|
1701
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1702
|
+
reqMethod="POST",
|
1703
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1704
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1705
|
+
)
|
1706
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1707
|
+
if g_param[OptionsDefine.Language]:
|
1708
|
+
profile.language = g_param[OptionsDefine.Language]
|
1709
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1710
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1712
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
+
model = models.ModifyOrganizationAccountStatusRequest()
|
1714
|
+
model.from_json_string(json.dumps(args))
|
1715
|
+
start_time = time.time()
|
1716
|
+
while True:
|
1717
|
+
rsp = client.ModifyOrganizationAccountStatus(model)
|
1718
|
+
result = rsp.to_json_string()
|
1719
|
+
try:
|
1720
|
+
json_obj = json.loads(result)
|
1721
|
+
except TypeError as e:
|
1722
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1723
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1724
|
+
break
|
1725
|
+
cur_time = time.time()
|
1726
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1727
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1728
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1729
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1730
|
+
else:
|
1731
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1732
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1733
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
|
+
|
1735
|
+
|
1632
1736
|
def doDescribeOrganizationUserInfo(args, parsed_globals):
|
1633
1737
|
g_param = parse_global_arg(parsed_globals)
|
1634
1738
|
|
@@ -1813,6 +1917,7 @@ ACTION_MAP = {
|
|
1813
1917
|
"DescribeVpcAssets": doDescribeVpcAssets,
|
1814
1918
|
"DescribeRiskCenterServerRiskList": doDescribeRiskCenterServerRiskList,
|
1815
1919
|
"DescribeCVMAssets": doDescribeCVMAssets,
|
1920
|
+
"ModifyRiskCenterScanTask": doModifyRiskCenterScanTask,
|
1816
1921
|
"DescribeRiskCenterWebsiteRiskList": doDescribeRiskCenterWebsiteRiskList,
|
1817
1922
|
"StopRiskCenterTask": doStopRiskCenterTask,
|
1818
1923
|
"CreateRiskCenterScanTask": doCreateRiskCenterScanTask,
|
@@ -1827,6 +1932,7 @@ ACTION_MAP = {
|
|
1827
1932
|
"DescribeRiskCenterAssetViewPortRiskList": doDescribeRiskCenterAssetViewPortRiskList,
|
1828
1933
|
"DescribeVULRiskAdvanceCFGList": doDescribeVULRiskAdvanceCFGList,
|
1829
1934
|
"ModifyRiskCenterRiskStatus": doModifyRiskCenterRiskStatus,
|
1935
|
+
"ModifyOrganizationAccountStatus": doModifyOrganizationAccountStatus,
|
1830
1936
|
"DescribeOrganizationUserInfo": doDescribeOrganizationUserInfo,
|
1831
1937
|
"DescribeTaskLogURL": doDescribeTaskLogURL,
|
1832
1938
|
"DescribeCVMAssetInfo": doDescribeCVMAssetInfo,
|
@@ -224,6 +224,13 @@
|
|
224
224
|
"output": "DescribeVpcAssetsResponse",
|
225
225
|
"status": "online"
|
226
226
|
},
|
227
|
+
"ModifyOrganizationAccountStatus": {
|
228
|
+
"document": "修改集团账号状态",
|
229
|
+
"input": "ModifyOrganizationAccountStatusRequest",
|
230
|
+
"name": "修改集团账号状态",
|
231
|
+
"output": "ModifyOrganizationAccountStatusResponse",
|
232
|
+
"status": "online"
|
233
|
+
},
|
227
234
|
"ModifyRiskCenterRiskStatus": {
|
228
235
|
"document": "修改风险中心风险状态",
|
229
236
|
"input": "ModifyRiskCenterRiskStatusRequest",
|
@@ -231,6 +238,13 @@
|
|
231
238
|
"output": "ModifyRiskCenterRiskStatusResponse",
|
232
239
|
"status": "online"
|
233
240
|
},
|
241
|
+
"ModifyRiskCenterScanTask": {
|
242
|
+
"document": "修改风险中心扫描任务",
|
243
|
+
"input": "ModifyRiskCenterScanTaskRequest",
|
244
|
+
"name": "修改风险中心扫描任务",
|
245
|
+
"output": "ModifyRiskCenterScanTaskResponse",
|
246
|
+
"status": "online"
|
247
|
+
},
|
234
248
|
"StopRiskCenterTask": {
|
235
249
|
"document": "停止扫风险中心扫描任务",
|
236
250
|
"input": "StopRiskCenterTaskRequest",
|
@@ -6866,6 +6880,42 @@
|
|
6866
6880
|
],
|
6867
6881
|
"usage": "out"
|
6868
6882
|
},
|
6883
|
+
"ModifyOrganizationAccountStatusRequest": {
|
6884
|
+
"document": "ModifyOrganizationAccountStatus请求参数结构体",
|
6885
|
+
"members": [
|
6886
|
+
{
|
6887
|
+
"disabled": false,
|
6888
|
+
"document": "修改集团账号状态,1 开启, 2关闭",
|
6889
|
+
"example": "无",
|
6890
|
+
"member": "int64",
|
6891
|
+
"name": "Status",
|
6892
|
+
"required": true,
|
6893
|
+
"type": "int"
|
6894
|
+
}
|
6895
|
+
],
|
6896
|
+
"type": "object"
|
6897
|
+
},
|
6898
|
+
"ModifyOrganizationAccountStatusResponse": {
|
6899
|
+
"document": "ModifyOrganizationAccountStatus返回参数结构体",
|
6900
|
+
"members": [
|
6901
|
+
{
|
6902
|
+
"disabled": false,
|
6903
|
+
"document": "返回值为0,则修改成功",
|
6904
|
+
"example": "0",
|
6905
|
+
"member": "int64",
|
6906
|
+
"name": "Status",
|
6907
|
+
"type": "int",
|
6908
|
+
"value_allowed_null": false
|
6909
|
+
},
|
6910
|
+
{
|
6911
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
6912
|
+
"member": "string",
|
6913
|
+
"name": "RequestId",
|
6914
|
+
"type": "string"
|
6915
|
+
}
|
6916
|
+
],
|
6917
|
+
"type": "object"
|
6918
|
+
},
|
6869
6919
|
"ModifyRiskCenterRiskStatusRequest": {
|
6870
6920
|
"document": "ModifyRiskCenterRiskStatus请求参数结构体",
|
6871
6921
|
"members": [
|
@@ -6911,6 +6961,144 @@
|
|
6911
6961
|
],
|
6912
6962
|
"type": "object"
|
6913
6963
|
},
|
6964
|
+
"ModifyRiskCenterScanTaskRequest": {
|
6965
|
+
"document": "ModifyRiskCenterScanTask请求参数结构体",
|
6966
|
+
"members": [
|
6967
|
+
{
|
6968
|
+
"disabled": false,
|
6969
|
+
"document": "任务名称",
|
6970
|
+
"example": "helloworld",
|
6971
|
+
"member": "string",
|
6972
|
+
"name": "TaskName",
|
6973
|
+
"required": true,
|
6974
|
+
"type": "string"
|
6975
|
+
},
|
6976
|
+
{
|
6977
|
+
"disabled": false,
|
6978
|
+
"document": "0-全扫,1-指定资产扫,2-排除资产扫,3-手动填写扫;1和2则Assets字段必填,3则SelfDefiningAssets必填",
|
6979
|
+
"example": "0",
|
6980
|
+
"member": "int64",
|
6981
|
+
"name": "ScanAssetType",
|
6982
|
+
"required": true,
|
6983
|
+
"type": "int"
|
6984
|
+
},
|
6985
|
+
{
|
6986
|
+
"disabled": false,
|
6987
|
+
"document": "扫描项目;port/poc/weakpass/webcontent/configrisk",
|
6988
|
+
"example": "无",
|
6989
|
+
"member": "string",
|
6990
|
+
"name": "ScanItem",
|
6991
|
+
"required": true,
|
6992
|
+
"type": "list"
|
6993
|
+
},
|
6994
|
+
{
|
6995
|
+
"disabled": false,
|
6996
|
+
"document": "0-周期任务,1-立即扫描,2-定时扫描,3-自定义;0,2,3则ScanPlanContent必填",
|
6997
|
+
"example": "1",
|
6998
|
+
"member": "int64",
|
6999
|
+
"name": "ScanPlanType",
|
7000
|
+
"required": true,
|
7001
|
+
"type": "int"
|
7002
|
+
},
|
7003
|
+
{
|
7004
|
+
"disabled": false,
|
7005
|
+
"document": "要修改的任务id",
|
7006
|
+
"example": "无",
|
7007
|
+
"member": "string",
|
7008
|
+
"name": "TaskId",
|
7009
|
+
"required": true,
|
7010
|
+
"type": "string"
|
7011
|
+
},
|
7012
|
+
{
|
7013
|
+
"disabled": false,
|
7014
|
+
"document": "扫描资产信息列表",
|
7015
|
+
"example": "无",
|
7016
|
+
"member": "TaskAssetObject",
|
7017
|
+
"name": "Assets",
|
7018
|
+
"required": false,
|
7019
|
+
"type": "list"
|
7020
|
+
},
|
7021
|
+
{
|
7022
|
+
"disabled": false,
|
7023
|
+
"document": "扫描计划详情",
|
7024
|
+
"example": "无",
|
7025
|
+
"member": "string",
|
7026
|
+
"name": "ScanPlanContent",
|
7027
|
+
"required": false,
|
7028
|
+
"type": "string"
|
7029
|
+
},
|
7030
|
+
{
|
7031
|
+
"disabled": false,
|
7032
|
+
"document": "ip/域名/url数组",
|
7033
|
+
"example": "无",
|
7034
|
+
"member": "string",
|
7035
|
+
"name": "SelfDefiningAssets",
|
7036
|
+
"required": false,
|
7037
|
+
"type": "list"
|
7038
|
+
},
|
7039
|
+
{
|
7040
|
+
"disabled": false,
|
7041
|
+
"document": "高级配置",
|
7042
|
+
"example": "无",
|
7043
|
+
"member": "TaskAdvanceCFG",
|
7044
|
+
"name": "TaskAdvanceCFG",
|
7045
|
+
"required": false,
|
7046
|
+
"type": "object"
|
7047
|
+
},
|
7048
|
+
{
|
7049
|
+
"disabled": false,
|
7050
|
+
"document": "体检模式,0-标准模式,1-快速模式,2-高级模式,默认标准模式",
|
7051
|
+
"example": "无",
|
7052
|
+
"member": "int64",
|
7053
|
+
"name": "TaskMode",
|
7054
|
+
"required": false,
|
7055
|
+
"type": "int"
|
7056
|
+
}
|
7057
|
+
],
|
7058
|
+
"type": "object"
|
7059
|
+
},
|
7060
|
+
"ModifyRiskCenterScanTaskResponse": {
|
7061
|
+
"document": "ModifyRiskCenterScanTask返回参数结构体",
|
7062
|
+
"members": [
|
7063
|
+
{
|
7064
|
+
"disabled": false,
|
7065
|
+
"document": "任务id",
|
7066
|
+
"example": "无",
|
7067
|
+
"member": "string",
|
7068
|
+
"name": "TaskId",
|
7069
|
+
"output_required": true,
|
7070
|
+
"type": "string",
|
7071
|
+
"value_allowed_null": false
|
7072
|
+
},
|
7073
|
+
{
|
7074
|
+
"disabled": false,
|
7075
|
+
"document": "0,修改成功,其他失败;-1为存在资产未认证",
|
7076
|
+
"example": "0",
|
7077
|
+
"member": "int64",
|
7078
|
+
"name": "Status",
|
7079
|
+
"output_required": true,
|
7080
|
+
"type": "int",
|
7081
|
+
"value_allowed_null": false
|
7082
|
+
},
|
7083
|
+
{
|
7084
|
+
"disabled": false,
|
7085
|
+
"document": "未认证资产列表",
|
7086
|
+
"example": "无",
|
7087
|
+
"member": "string",
|
7088
|
+
"name": "UnAuthAsset",
|
7089
|
+
"output_required": false,
|
7090
|
+
"type": "list",
|
7091
|
+
"value_allowed_null": false
|
7092
|
+
},
|
7093
|
+
{
|
7094
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
7095
|
+
"member": "string",
|
7096
|
+
"name": "RequestId",
|
7097
|
+
"type": "string"
|
7098
|
+
}
|
7099
|
+
],
|
7100
|
+
"type": "object"
|
7101
|
+
},
|
6914
7102
|
"NICAsset": {
|
6915
7103
|
"document": "网卡资产",
|
6916
7104
|
"members": [
|
@@ -256,6 +256,14 @@
|
|
256
256
|
"title": "空示例"
|
257
257
|
}
|
258
258
|
],
|
259
|
+
"ModifyOrganizationAccountStatus": [
|
260
|
+
{
|
261
|
+
"document": "修改集团账号状态",
|
262
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyOrganizationAccountStatus\n<公共请求参数>\n\n{\n \"Status\": 0\n}",
|
263
|
+
"output": "{\n \"Response\": {\n \"Status\": 0,\n \"RequestId\": \"abc\"\n }\n}",
|
264
|
+
"title": "修改集团账号状态"
|
265
|
+
}
|
266
|
+
],
|
259
267
|
"ModifyRiskCenterRiskStatus": [
|
260
268
|
{
|
261
269
|
"document": "修改风险中心风险状态",
|
@@ -264,6 +272,14 @@
|
|
264
272
|
"title": "修改风险中心风险状态"
|
265
273
|
}
|
266
274
|
],
|
275
|
+
"ModifyRiskCenterScanTask": [
|
276
|
+
{
|
277
|
+
"document": "修改风险中心扫描任务",
|
278
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRiskCenterScanTask\n<公共请求参数>\n\n{\n \"TaskName\": \"abc\",\n \"Assets\": [\n {\n \"AssetName\": \"abc\",\n \"InstanceType\": \"abc\",\n \"AssetType\": \"abc\",\n \"Asset\": \"abc\",\n \"Region\": \"abc\"\n }\n ],\n \"ScanAssetType\": 0,\n \"ScanItem\": [\n \"abc\"\n ],\n \"ScanPlanType\": 0,\n \"ScanPlanContent\": \"abc\",\n \"SelfDefiningAssets\": [\n \"abc\"\n ],\n \"TaskId\": \"abc\",\n \"TaskAdvanceCFG\": {\n \"VulRisk\": [\n {\n \"RiskId\": \"abc\",\n \"Enable\": 0\n }\n ],\n \"WeakPwdRisk\": [\n {\n \"CheckItemId\": 0,\n \"Enable\": 0\n }\n ],\n \"CFGRisk\": [\n {\n \"ItemId\": \"abc\",\n \"Enable\": 0,\n \"ResourceType\": \"abc\"\n }\n ]\n },\n \"TaskMode\": 0\n}",
|
279
|
+
"output": "{\n \"Response\": {\n \"TaskId\": \"abc\",\n \"Status\": 0,\n \"RequestId\": \"abc\"\n }\n}",
|
280
|
+
"title": "修改风险中心扫描任务"
|
281
|
+
}
|
282
|
+
],
|
267
283
|
"StopRiskCenterTask": [
|
268
284
|
{
|
269
285
|
"document": "停止扫风险中心扫描任务",
|