tccli 3.0.1407.1__py2.py3-none-any.whl → 3.0.1408.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/ccc/v20200210/api.json +9 -0
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +54 -0
- tccli/services/cdb/v20170320/examples.json +8 -0
- tccli/services/dbbrain/v20210527/api.json +7 -7
- tccli/services/dcdb/v20180411/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/essbasic/v20210526/examples.json +6 -6
- tccli/services/gaap/v20180529/api.json +13 -3
- tccli/services/ioa/ioa_client.py +61 -8
- tccli/services/ioa/v20220601/api.json +126 -0
- tccli/services/ioa/v20220601/examples.json +8 -0
- tccli/services/lighthouse/v20200324/api.json +36 -0
- tccli/services/lighthouse/v20200324/examples.json +1 -1
- tccli/services/live/v20180801/examples.json +6 -0
- tccli/services/mariadb/v20170312/api.json +1 -1
- tccli/services/mps/v20190612/api.json +26 -4
- tccli/services/oceanus/v20190422/api.json +2 -2
- tccli/services/oceanus/v20190422/examples.json +2 -2
- tccli/services/pts/v20210728/api.json +2 -2
- tccli/services/rum/v20210622/api.json +18 -0
- tccli/services/tmt/v20180321/api.json +78 -1
- tccli/services/tsf/v20180326/api.json +3 -0
- tccli/services/vpc/v20170312/api.json +819 -0
- tccli/services/vpc/v20170312/examples.json +96 -0
- tccli/services/vpc/vpc_client.py +669 -33
- tccli/services/wedata/v20250806/api.json +43 -4
- {tccli-3.0.1407.1.dist-info → tccli-3.0.1408.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1407.1.dist-info → tccli-3.0.1408.1.dist-info}/RECORD +33 -33
- {tccli-3.0.1407.1.dist-info → tccli-3.0.1408.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1407.1.dist-info → tccli-3.0.1408.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1407.1.dist-info → tccli-3.0.1408.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.1408.1'
|
|
@@ -1268,6 +1268,15 @@
|
|
|
1268
1268
|
"name": "CallInInterface",
|
|
1269
1269
|
"required": false,
|
|
1270
1270
|
"type": "object"
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"disabled": false,
|
|
1274
|
+
"document": "绑定号码类型: inner: 内线号码 | number: 正常线路号码",
|
|
1275
|
+
"example": "number",
|
|
1276
|
+
"member": "string",
|
|
1277
|
+
"name": "NumberType",
|
|
1278
|
+
"required": false,
|
|
1279
|
+
"type": "string"
|
|
1271
1280
|
}
|
|
1272
1281
|
],
|
|
1273
1282
|
"type": "object"
|
tccli/services/cdb/cdb_client.py
CHANGED
|
@@ -3553,6 +3553,58 @@ def doDescribeDBInstanceConfig(args, parsed_globals):
|
|
|
3553
3553
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3554
3554
|
|
|
3555
3555
|
|
|
3556
|
+
def doDescribeInstancePasswordComplexity(args, parsed_globals):
|
|
3557
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3558
|
+
|
|
3559
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3560
|
+
cred = credential.CVMRoleCredential()
|
|
3561
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3562
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3563
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3564
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3565
|
+
)
|
|
3566
|
+
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):
|
|
3567
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3568
|
+
else:
|
|
3569
|
+
cred = credential.Credential(
|
|
3570
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3571
|
+
)
|
|
3572
|
+
http_profile = HttpProfile(
|
|
3573
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3574
|
+
reqMethod="POST",
|
|
3575
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3576
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3577
|
+
)
|
|
3578
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
3579
|
+
if g_param[OptionsDefine.Language]:
|
|
3580
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3581
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3582
|
+
client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3583
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3584
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3585
|
+
model = models.DescribeInstancePasswordComplexityRequest()
|
|
3586
|
+
model.from_json_string(json.dumps(args))
|
|
3587
|
+
start_time = time.time()
|
|
3588
|
+
while True:
|
|
3589
|
+
rsp = client.DescribeInstancePasswordComplexity(model)
|
|
3590
|
+
result = rsp.to_json_string()
|
|
3591
|
+
try:
|
|
3592
|
+
json_obj = json.loads(result)
|
|
3593
|
+
except TypeError as e:
|
|
3594
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3595
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3596
|
+
break
|
|
3597
|
+
cur_time = time.time()
|
|
3598
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3599
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3600
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3601
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3602
|
+
else:
|
|
3603
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3604
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3605
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3606
|
+
|
|
3607
|
+
|
|
3556
3608
|
def doCreateCdbProxyAddress(args, parsed_globals):
|
|
3557
3609
|
g_param = parse_global_arg(parsed_globals)
|
|
3558
3610
|
|
|
@@ -9196,6 +9248,7 @@ ACTION_MAP = {
|
|
|
9196
9248
|
"CreateBackup": doCreateBackup,
|
|
9197
9249
|
"ModifyDBInstanceVipVport": doModifyDBInstanceVipVport,
|
|
9198
9250
|
"DescribeDBInstanceConfig": doDescribeDBInstanceConfig,
|
|
9251
|
+
"DescribeInstancePasswordComplexity": doDescribeInstancePasswordComplexity,
|
|
9199
9252
|
"CreateCdbProxyAddress": doCreateCdbProxyAddress,
|
|
9200
9253
|
"DeleteAuditPolicy": doDeleteAuditPolicy,
|
|
9201
9254
|
"DescribeProjectSecurityGroups": doDescribeProjectSecurityGroups,
|
|
@@ -609,6 +609,13 @@
|
|
|
609
609
|
"output": "DescribeInstanceParamsResponse",
|
|
610
610
|
"status": "online"
|
|
611
611
|
},
|
|
612
|
+
"DescribeInstancePasswordComplexity": {
|
|
613
|
+
"document": "该接口(DescribeInstancePasswordComplexity)用于查询实例的密码复杂度参数列表。",
|
|
614
|
+
"input": "DescribeInstancePasswordComplexityRequest",
|
|
615
|
+
"name": "查询实例的密码复杂度",
|
|
616
|
+
"output": "DescribeInstancePasswordComplexityResponse",
|
|
617
|
+
"status": "online"
|
|
618
|
+
},
|
|
612
619
|
"DescribeInstanceUpgradeCheckJob": {
|
|
613
620
|
"document": "该接口(DescribeInstanceUpgradeCheckJob)查询实例版本升级校验任务。",
|
|
614
621
|
"input": "DescribeInstanceUpgradeCheckJobRequest",
|
|
@@ -11814,6 +11821,53 @@
|
|
|
11814
11821
|
],
|
|
11815
11822
|
"type": "object"
|
|
11816
11823
|
},
|
|
11824
|
+
"DescribeInstancePasswordComplexityRequest": {
|
|
11825
|
+
"document": "DescribeInstancePasswordComplexity请求参数结构体",
|
|
11826
|
+
"members": [
|
|
11827
|
+
{
|
|
11828
|
+
"disabled": false,
|
|
11829
|
+
"document": "实例ID ",
|
|
11830
|
+
"example": "\"cdb-1urqrvpf\"",
|
|
11831
|
+
"member": "string",
|
|
11832
|
+
"name": "InstanceId",
|
|
11833
|
+
"required": true,
|
|
11834
|
+
"type": "string"
|
|
11835
|
+
}
|
|
11836
|
+
],
|
|
11837
|
+
"type": "object"
|
|
11838
|
+
},
|
|
11839
|
+
"DescribeInstancePasswordComplexityResponse": {
|
|
11840
|
+
"document": "DescribeInstancePasswordComplexity返回参数结构体",
|
|
11841
|
+
"members": [
|
|
11842
|
+
{
|
|
11843
|
+
"disabled": false,
|
|
11844
|
+
"document": "实例的参数总数",
|
|
11845
|
+
"example": "72",
|
|
11846
|
+
"member": "int64",
|
|
11847
|
+
"name": "TotalCount",
|
|
11848
|
+
"output_required": true,
|
|
11849
|
+
"type": "int",
|
|
11850
|
+
"value_allowed_null": false
|
|
11851
|
+
},
|
|
11852
|
+
{
|
|
11853
|
+
"disabled": false,
|
|
11854
|
+
"document": "参数详情",
|
|
11855
|
+
"example": "[ ]",
|
|
11856
|
+
"member": "ParameterDetail",
|
|
11857
|
+
"name": "Items",
|
|
11858
|
+
"output_required": true,
|
|
11859
|
+
"type": "list",
|
|
11860
|
+
"value_allowed_null": false
|
|
11861
|
+
},
|
|
11862
|
+
{
|
|
11863
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
11864
|
+
"member": "string",
|
|
11865
|
+
"name": "RequestId",
|
|
11866
|
+
"type": "string"
|
|
11867
|
+
}
|
|
11868
|
+
],
|
|
11869
|
+
"type": "object"
|
|
11870
|
+
},
|
|
11817
11871
|
"DescribeInstanceUpgradeCheckJobRequest": {
|
|
11818
11872
|
"document": "DescribeInstanceUpgradeCheckJob请求参数结构体",
|
|
11819
11873
|
"members": [
|
|
@@ -750,6 +750,14 @@
|
|
|
750
750
|
"title": "查询实例的可设置参数列表"
|
|
751
751
|
}
|
|
752
752
|
],
|
|
753
|
+
"DescribeInstancePasswordComplexity": [
|
|
754
|
+
{
|
|
755
|
+
"document": "查询实例的密码复杂度",
|
|
756
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstancePasswordComplexity\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-1urqrvpf\"\n}",
|
|
757
|
+
"output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CurrentValue\": \"8\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of characters that validate_password requires passwords to have.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 64,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_length\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n },\n {\n \"CurrentValue\": \"1\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of lowercase and uppercase characters that validate_password requires passwords to have if the password policy is MEDIUM or stronger.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 16,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_mixed_case_count\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n },\n {\n \"CurrentValue\": \"2\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of numeric (digit) characters that validate_password requires passwords to have if the password policy is MEDIUM or stronger.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 16,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_number_count\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n },\n {\n \"CurrentValue\": \"MEDIUM\",\n \"Default\": \"LOW\",\n \"Description\": \"The password policy enforced by validate_password. The validate_password.policy value can be specified using numeric values 0, 1, 2.\",\n \"EnumValue\": [\n \"LOW\",\n \"MEDIUM\",\n \"STRONG\"\n ],\n \"IsNotSupportEdit\": false,\n \"Max\": 0,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_policy\",\n \"NeedReboot\": 0,\n \"ParamType\": \"enum\"\n },\n {\n \"CurrentValue\": \"3\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of nonalphanumeric characters that validate_password requires passwords to have if the password policy is MEDIUM or stronger.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 16,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_special_char_count\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n }\n ],\n \"RequestId\": \"103be0cb-4ca7-400b-a6b1-4c3fc7b7227c\",\n \"TotalCount\": 5\n }\n}",
|
|
758
|
+
"title": "查询实例的密码复杂度"
|
|
759
|
+
}
|
|
760
|
+
],
|
|
753
761
|
"DescribeInstanceUpgradeCheckJob": [
|
|
754
762
|
{
|
|
755
763
|
"document": "无",
|
|
@@ -10950,7 +10950,7 @@
|
|
|
10950
10950
|
"members": [
|
|
10951
10951
|
{
|
|
10952
10952
|
"disabled": false,
|
|
10953
|
-
"document": "
|
|
10953
|
+
"document": "命令模板。",
|
|
10954
10954
|
"example": "bgsave",
|
|
10955
10955
|
"member": "string",
|
|
10956
10956
|
"name": "Cmd",
|
|
@@ -10980,7 +10980,7 @@
|
|
|
10980
10980
|
},
|
|
10981
10981
|
{
|
|
10982
10982
|
"disabled": false,
|
|
10983
|
-
"document": "
|
|
10983
|
+
"document": "总耗时。单位:s",
|
|
10984
10984
|
"example": "0.01",
|
|
10985
10985
|
"member": "float",
|
|
10986
10986
|
"name": "QueryTime",
|
|
@@ -10990,7 +10990,7 @@
|
|
|
10990
10990
|
},
|
|
10991
10991
|
{
|
|
10992
10992
|
"disabled": false,
|
|
10993
|
-
"document": "
|
|
10993
|
+
"document": "平均执行时间。单位:s",
|
|
10994
10994
|
"example": "0.01",
|
|
10995
10995
|
"member": "float",
|
|
10996
10996
|
"name": "QueryTimeAvg",
|
|
@@ -11000,7 +11000,7 @@
|
|
|
11000
11000
|
},
|
|
11001
11001
|
{
|
|
11002
11002
|
"disabled": false,
|
|
11003
|
-
"document": "
|
|
11003
|
+
"document": "最大执行时间。单位:s",
|
|
11004
11004
|
"example": "0.02",
|
|
11005
11005
|
"member": "float",
|
|
11006
11006
|
"name": "QueryTimeMax",
|
|
@@ -11010,7 +11010,7 @@
|
|
|
11010
11010
|
},
|
|
11011
11011
|
{
|
|
11012
11012
|
"disabled": false,
|
|
11013
|
-
"document": "
|
|
11013
|
+
"document": "最小执行时间。单位:s",
|
|
11014
11014
|
"example": "0.001",
|
|
11015
11015
|
"member": "float",
|
|
11016
11016
|
"name": "QueryTimeMin",
|
|
@@ -11020,8 +11020,8 @@
|
|
|
11020
11020
|
},
|
|
11021
11021
|
{
|
|
11022
11022
|
"disabled": false,
|
|
11023
|
-
"document": "
|
|
11024
|
-
"example": "100",
|
|
11023
|
+
"document": "总耗时占比。单位:%",
|
|
11024
|
+
"example": "100.0",
|
|
11025
11025
|
"member": "float",
|
|
11026
11026
|
"name": "QueryTimeRatio",
|
|
11027
11027
|
"output_required": false,
|
|
@@ -8132,7 +8132,7 @@
|
|
|
8132
8132
|
{
|
|
8133
8133
|
"disabled": false,
|
|
8134
8134
|
"document": "要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。<br>注意:该入参会全量替换存量已有安全组集合,并非增量更新。修改需传入全量的预期集合。",
|
|
8135
|
-
"example": "[\"sg-ajr1jzgj
|
|
8135
|
+
"example": "[\"sg-ajr1jzgj\"]",
|
|
8136
8136
|
"member": "string",
|
|
8137
8137
|
"name": "SecurityGroupIds",
|
|
8138
8138
|
"required": true,
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
"status": "online"
|
|
583
583
|
},
|
|
584
584
|
"DescribeUserFlowType": {
|
|
585
|
-
"document": "
|
|
585
|
+
"document": "查询用户模板类型,分为两种模式:\n<ul>\n<li>QueryBindTemplate:false,查询用户合同模板类型,返回用户合同模板类型ID,用户合同模板类型名称,用户合同模板类型描述信息</li>\n<li>QueryBindTemplate:false,查询用户合同模板类型,返回用户合同模板类型ID,用户合同模板类型名称,用户合同模板类型描述信息,被绑定的模板数量</li>\n</ul>",
|
|
586
586
|
"input": "DescribeUserFlowTypeRequest",
|
|
587
587
|
"name": "查询用户合同类型",
|
|
588
588
|
"output": "DescribeUserFlowTypeResponse",
|
|
@@ -9876,7 +9876,7 @@
|
|
|
9876
9876
|
},
|
|
9877
9877
|
{
|
|
9878
9878
|
"disabled": false,
|
|
9879
|
-
"document": "搜索过滤的条件,本字段允许您通过指定模板 ID 或模板名称来进行查询。 <ul><li><strong>模板的用户合同类型</strong>:<strong>Key</strong>设置为 <code>user-flow-type-id</code> ,<strong>Values</strong
|
|
9879
|
+
"document": "搜索过滤的条件,本字段允许您通过指定模板 ID 或模板名称来进行查询。 <ul><li><strong>模板的用户合同类型</strong>:<strong>Key</strong>设置为 <code>user-flow-type-id</code> ,<strong>Values</strong>为您想要查询的用户模板类型id列表。</li></ul>\t",
|
|
9880
9880
|
"example": "无",
|
|
9881
9881
|
"member": "Filter",
|
|
9882
9882
|
"name": "Filters",
|
|
@@ -9885,7 +9885,7 @@
|
|
|
9885
9885
|
},
|
|
9886
9886
|
{
|
|
9887
9887
|
"disabled": false,
|
|
9888
|
-
"document": "
|
|
9888
|
+
"document": "查询绑定了模板的用户合同类型<ul><li>false(默认值),查询用户合同类型</li><li>true,查询绑定了模板的用户合同类型</li></ul>",
|
|
9889
9889
|
"example": "true",
|
|
9890
9890
|
"member": "bool",
|
|
9891
9891
|
"name": "QueryBindTemplate",
|
|
@@ -1296,22 +1296,22 @@
|
|
|
1296
1296
|
"title": "查询用户合同类型(不指定filter)"
|
|
1297
1297
|
},
|
|
1298
1298
|
{
|
|
1299
|
-
"document": "
|
|
1299
|
+
"document": "查询用户合同类型(不指定查询绑定模板的合同类型)",
|
|
1300
1300
|
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserFlowType\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"yDwhxUUckp3gl8j5UuFX33LSNozpRsbi\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"ProxyAppId\": \"\"\n },\n \"QueryBindTemplate\": false\n}",
|
|
1301
1301
|
"output": "{\n \"Response\": {\n \"AllUserFlowTypes\": [\n {\n \"Description\": \"\",\n \"Name\": \"单方合同\",\n \"TemplateNum\": 0,\n \"UserFlowTypeId\": \"yDwXXUUckp19hvn8URxp4X6wVwCLodxJ\"\n }\n ],\n \"RequestId\": \"s1741681654595707818\"\n }\n}",
|
|
1302
|
-
"title": "
|
|
1302
|
+
"title": "查询用户合同类型(不指定查询绑定模板的合同类型)"
|
|
1303
1303
|
},
|
|
1304
1304
|
{
|
|
1305
|
-
"document": "
|
|
1305
|
+
"document": "查询用户合同类型(指定查询绑定模板的合同类型)",
|
|
1306
1306
|
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserFlowType\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"yDwhxUUckp3gl8j5UuFX33LSNozpRsbi\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"ProxyAppId\": \"\"\n },\n \"QueryBindTemplate\": true\n}",
|
|
1307
1307
|
"output": "{\n \"Response\": {\n \"AllUserFlowTypes\": [\n {\n \"Description\": \"\",\n \"Name\": \"单方合同\",\n \"TemplateNum\": 10,\n \"UserFlowTypeId\": \"yDwXXUUckp19hvn8URxp4X6wVwCLodxJ\"\n }\n ],\n \"RequestId\": \"s1741681654595707818\"\n }\n}",
|
|
1308
|
-
"title": "
|
|
1308
|
+
"title": "查询用户合同类型(指定查询绑定模板的合同类型)"
|
|
1309
1309
|
},
|
|
1310
1310
|
{
|
|
1311
|
-
"document": "
|
|
1311
|
+
"document": "查询用户合同类型(指定用户模板id)",
|
|
1312
1312
|
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserFlowType\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"yDwhxUUckp3gl8j5UuFX33LSNozpRsbi\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"ProxyAppId\": \"\"\n },\n \"Filters\": [\n {\n \"Key\": \"user-flow-type-id\",\n \"Values\": [\n \"yDwXXUUckp19hvn8URxp4X6wVwCLodxJ\"\n ]\n }\n ],\n \"QueryBindTemplate\": true\n}",
|
|
1313
1313
|
"output": "{\n \"Response\": {\n \"AllUserFlowTypes\": [\n {\n \"Description\": \"\",\n \"Name\": \"单方合同\",\n \"TemplateNum\": 10,\n \"UserFlowTypeId\": \"yDwXXUUckp19hvn8URxp4X6wVwCLodxJ\"\n }\n ],\n \"RequestId\": \"s1741681654595707818\"\n }\n}",
|
|
1314
|
-
"title": "
|
|
1314
|
+
"title": "查询用户合同类型(指定用户模板id)"
|
|
1315
1315
|
}
|
|
1316
1316
|
],
|
|
1317
1317
|
"GetDownloadFlowUrl": [
|
|
@@ -10247,7 +10247,7 @@
|
|
|
10247
10247
|
{
|
|
10248
10248
|
"disabled": false,
|
|
10249
10249
|
"document": "健康检查相关参数",
|
|
10250
|
-
"example": "
|
|
10250
|
+
"example": "无",
|
|
10251
10251
|
"member": "RuleCheckParams",
|
|
10252
10252
|
"name": "CheckParams",
|
|
10253
10253
|
"output_required": true,
|
|
@@ -10257,7 +10257,7 @@
|
|
|
10257
10257
|
{
|
|
10258
10258
|
"disabled": false,
|
|
10259
10259
|
"document": "已绑定的源站相关信息",
|
|
10260
|
-
"example": "
|
|
10260
|
+
"example": "无",
|
|
10261
10261
|
"member": "BindRealServer",
|
|
10262
10262
|
"name": "RealServerSet",
|
|
10263
10263
|
"output_required": true,
|
|
@@ -10266,7 +10266,7 @@
|
|
|
10266
10266
|
},
|
|
10267
10267
|
{
|
|
10268
10268
|
"disabled": false,
|
|
10269
|
-
"document": "源站的服务状态,0表示异常,1表示正常。\n
|
|
10269
|
+
"document": "源站的服务状态,0表示异常,1表示正常。\n未开启健康检查时,该状态始终为正常。\n只要有一个源站健康状态为异常时,该状态为异常,具体源站的状态请查看RealServerSet。",
|
|
10270
10270
|
"example": "1",
|
|
10271
10271
|
"member": "uint64",
|
|
10272
10272
|
"name": "BindStatus",
|
|
@@ -10313,6 +10313,16 @@
|
|
|
10313
10313
|
"output_required": true,
|
|
10314
10314
|
"type": "string",
|
|
10315
10315
|
"value_allowed_null": true
|
|
10316
|
+
},
|
|
10317
|
+
{
|
|
10318
|
+
"disabled": false,
|
|
10319
|
+
"document": "七层转发规则的回源协议类型",
|
|
10320
|
+
"example": "HTTP",
|
|
10321
|
+
"member": "string",
|
|
10322
|
+
"name": "ForwardProtocol",
|
|
10323
|
+
"output_required": false,
|
|
10324
|
+
"type": "string",
|
|
10325
|
+
"value_allowed_null": false
|
|
10316
10326
|
}
|
|
10317
10327
|
],
|
|
10318
10328
|
"usage": "out"
|
tccli/services/ioa/ioa_client.py
CHANGED
|
@@ -69,6 +69,58 @@ def doDescribeAggrSoftDeviceList(args, parsed_globals):
|
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
70
70
|
|
|
71
71
|
|
|
72
|
+
def doExportDeviceDownloadTask(args, parsed_globals):
|
|
73
|
+
g_param = parse_global_arg(parsed_globals)
|
|
74
|
+
|
|
75
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
76
|
+
cred = credential.CVMRoleCredential()
|
|
77
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
78
|
+
cred = credential.STSAssumeRoleCredential(
|
|
79
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
80
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
81
|
+
)
|
|
82
|
+
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):
|
|
83
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
84
|
+
else:
|
|
85
|
+
cred = credential.Credential(
|
|
86
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
87
|
+
)
|
|
88
|
+
http_profile = HttpProfile(
|
|
89
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
90
|
+
reqMethod="POST",
|
|
91
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
92
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
93
|
+
)
|
|
94
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
95
|
+
if g_param[OptionsDefine.Language]:
|
|
96
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
97
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
98
|
+
client = mod.IoaClient(cred, g_param[OptionsDefine.Region], profile)
|
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
101
|
+
model = models.ExportDeviceDownloadTaskRequest()
|
|
102
|
+
model.from_json_string(json.dumps(args))
|
|
103
|
+
start_time = time.time()
|
|
104
|
+
while True:
|
|
105
|
+
rsp = client.ExportDeviceDownloadTask(model)
|
|
106
|
+
result = rsp.to_json_string()
|
|
107
|
+
try:
|
|
108
|
+
json_obj = json.loads(result)
|
|
109
|
+
except TypeError as e:
|
|
110
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
111
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
112
|
+
break
|
|
113
|
+
cur_time = time.time()
|
|
114
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
115
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
116
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
117
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
118
|
+
else:
|
|
119
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
120
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
121
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
122
|
+
|
|
123
|
+
|
|
72
124
|
def doCreateDeviceTask(args, parsed_globals):
|
|
73
125
|
g_param = parse_global_arg(parsed_globals)
|
|
74
126
|
|
|
@@ -225,7 +277,7 @@ def doCreateDLPFileDetectTask(args, parsed_globals):
|
|
|
225
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
226
278
|
|
|
227
279
|
|
|
228
|
-
def
|
|
280
|
+
def doCreateDeviceVirtualGroup(args, parsed_globals):
|
|
229
281
|
g_param = parse_global_arg(parsed_globals)
|
|
230
282
|
|
|
231
283
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -254,11 +306,11 @@ def doDescribeDeviceChildGroups(args, parsed_globals):
|
|
|
254
306
|
client = mod.IoaClient(cred, g_param[OptionsDefine.Region], profile)
|
|
255
307
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
256
308
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
257
|
-
model = models.
|
|
309
|
+
model = models.CreateDeviceVirtualGroupRequest()
|
|
258
310
|
model.from_json_string(json.dumps(args))
|
|
259
311
|
start_time = time.time()
|
|
260
312
|
while True:
|
|
261
|
-
rsp = client.
|
|
313
|
+
rsp = client.CreateDeviceVirtualGroup(model)
|
|
262
314
|
result = rsp.to_json_string()
|
|
263
315
|
try:
|
|
264
316
|
json_obj = json.loads(result)
|
|
@@ -901,7 +953,7 @@ def doDescribeDeviceHardwareInfoList(args, parsed_globals):
|
|
|
901
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
902
954
|
|
|
903
955
|
|
|
904
|
-
def
|
|
956
|
+
def doDescribeDeviceChildGroups(args, parsed_globals):
|
|
905
957
|
g_param = parse_global_arg(parsed_globals)
|
|
906
958
|
|
|
907
959
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -930,11 +982,11 @@ def doCreateDeviceVirtualGroup(args, parsed_globals):
|
|
|
930
982
|
client = mod.IoaClient(cred, g_param[OptionsDefine.Region], profile)
|
|
931
983
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
932
984
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
933
|
-
model = models.
|
|
985
|
+
model = models.DescribeDeviceChildGroupsRequest()
|
|
934
986
|
model.from_json_string(json.dumps(args))
|
|
935
987
|
start_time = time.time()
|
|
936
988
|
while True:
|
|
937
|
-
rsp = client.
|
|
989
|
+
rsp = client.DescribeDeviceChildGroups(model)
|
|
938
990
|
result = rsp.to_json_string()
|
|
939
991
|
try:
|
|
940
992
|
json_obj = json.loads(result)
|
|
@@ -1381,10 +1433,11 @@ MODELS_MAP = {
|
|
|
1381
1433
|
|
|
1382
1434
|
ACTION_MAP = {
|
|
1383
1435
|
"DescribeAggrSoftDeviceList": doDescribeAggrSoftDeviceList,
|
|
1436
|
+
"ExportDeviceDownloadTask": doExportDeviceDownloadTask,
|
|
1384
1437
|
"CreateDeviceTask": doCreateDeviceTask,
|
|
1385
1438
|
"DescribeSoftwareInformation": doDescribeSoftwareInformation,
|
|
1386
1439
|
"CreateDLPFileDetectTask": doCreateDLPFileDetectTask,
|
|
1387
|
-
"
|
|
1440
|
+
"CreateDeviceVirtualGroup": doCreateDeviceVirtualGroup,
|
|
1388
1441
|
"DescribeDLPFileDetectTaskResult": doDescribeDLPFileDetectTaskResult,
|
|
1389
1442
|
"DescribeVirtualDevices": doDescribeVirtualDevices,
|
|
1390
1443
|
"ExportSoftwareInformationList": doExportSoftwareInformationList,
|
|
@@ -1397,7 +1450,7 @@ ACTION_MAP = {
|
|
|
1397
1450
|
"DescribeAggrSoftDetail": doDescribeAggrSoftDetail,
|
|
1398
1451
|
"DescribeDeviceInfo": doDescribeDeviceInfo,
|
|
1399
1452
|
"DescribeDeviceHardwareInfoList": doDescribeDeviceHardwareInfoList,
|
|
1400
|
-
"
|
|
1453
|
+
"DescribeDeviceChildGroups": doDescribeDeviceChildGroups,
|
|
1401
1454
|
"DescribeAccountGroups": doDescribeAccountGroups,
|
|
1402
1455
|
"DescribeDeviceDetailList": doDescribeDeviceDetailList,
|
|
1403
1456
|
"DescribeLocalAccounts": doDescribeLocalAccounts,
|
|
@@ -168,6 +168,13 @@
|
|
|
168
168
|
"output": "DescribeVirtualDevicesResponse",
|
|
169
169
|
"status": "online"
|
|
170
170
|
},
|
|
171
|
+
"ExportDeviceDownloadTask": {
|
|
172
|
+
"document": "创建终端导出任务,私有化调用path为:capi/Assets/Device/ExportDeviceDownloadTask",
|
|
173
|
+
"input": "ExportDeviceDownloadTaskRequest",
|
|
174
|
+
"name": "导出终端相关的数据",
|
|
175
|
+
"output": "ExportDeviceDownloadTaskResponse",
|
|
176
|
+
"status": "online"
|
|
177
|
+
},
|
|
171
178
|
"ExportSoftwareInformationList": {
|
|
172
179
|
"document": "导出基于指定终端查看软件信息详情列表查询,私有化调用path为:capi/Software/ExportSoftwareInformationList",
|
|
173
180
|
"input": "ExportSoftwareInformationListRequest",
|
|
@@ -4471,6 +4478,34 @@
|
|
|
4471
4478
|
],
|
|
4472
4479
|
"usage": "both"
|
|
4473
4480
|
},
|
|
4481
|
+
"DeviceDownloadTask": {
|
|
4482
|
+
"document": "业务响应数据",
|
|
4483
|
+
"members": [
|
|
4484
|
+
{
|
|
4485
|
+
"disabled": false,
|
|
4486
|
+
"document": "同步数据下载的url",
|
|
4487
|
+
"example": "\"https://xxxxx\"",
|
|
4488
|
+
"member": "string",
|
|
4489
|
+
"name": "DownloadURL",
|
|
4490
|
+
"output_required": false,
|
|
4491
|
+
"required": false,
|
|
4492
|
+
"type": "string",
|
|
4493
|
+
"value_allowed_null": false
|
|
4494
|
+
},
|
|
4495
|
+
{
|
|
4496
|
+
"disabled": false,
|
|
4497
|
+
"document": "异步任务id,需要根据id去任务中心下载",
|
|
4498
|
+
"example": "186947",
|
|
4499
|
+
"member": "int64",
|
|
4500
|
+
"name": "TaskId",
|
|
4501
|
+
"output_required": false,
|
|
4502
|
+
"required": false,
|
|
4503
|
+
"type": "int",
|
|
4504
|
+
"value_allowed_null": false
|
|
4505
|
+
}
|
|
4506
|
+
],
|
|
4507
|
+
"usage": "both"
|
|
4508
|
+
},
|
|
4474
4509
|
"DeviceGroupDetail": {
|
|
4475
4510
|
"document": "返回的数组列表",
|
|
4476
4511
|
"members": [
|
|
@@ -4996,6 +5031,97 @@
|
|
|
4996
5031
|
],
|
|
4997
5032
|
"usage": "both"
|
|
4998
5033
|
},
|
|
5034
|
+
"ExportDeviceDownloadTaskRequest": {
|
|
5035
|
+
"document": "ExportDeviceDownloadTask请求参数结构体",
|
|
5036
|
+
"members": [
|
|
5037
|
+
{
|
|
5038
|
+
"disabled": false,
|
|
5039
|
+
"document": "系统类型(0: win,1:linux,2: mac,4:android,5:ios;默认值0)",
|
|
5040
|
+
"example": "0",
|
|
5041
|
+
"member": "int64",
|
|
5042
|
+
"name": "OsType",
|
|
5043
|
+
"required": false,
|
|
5044
|
+
"type": "int"
|
|
5045
|
+
},
|
|
5046
|
+
{
|
|
5047
|
+
"disabled": false,
|
|
5048
|
+
"document": "管理域实例ID,用于CAM管理域权限分配。若企业未进行管理域的划分,可直接传入根域\"1\",此时表示针对当前企业的全部设备和账号进行接口CRUD,具体CRUD的影响范围限制于相应接口的入参。",
|
|
5049
|
+
"example": "1",
|
|
5050
|
+
"member": "string",
|
|
5051
|
+
"name": "DomainInstanceId",
|
|
5052
|
+
"required": false,
|
|
5053
|
+
"type": "string"
|
|
5054
|
+
},
|
|
5055
|
+
{
|
|
5056
|
+
"disabled": false,
|
|
5057
|
+
"document": "分组id",
|
|
5058
|
+
"example": "1120",
|
|
5059
|
+
"member": "int64",
|
|
5060
|
+
"name": "GroupId",
|
|
5061
|
+
"required": false,
|
|
5062
|
+
"type": "int"
|
|
5063
|
+
},
|
|
5064
|
+
{
|
|
5065
|
+
"disabled": false,
|
|
5066
|
+
"document": " 在线状态 2 在线 0,1 离线",
|
|
5067
|
+
"example": "0",
|
|
5068
|
+
"member": "int64",
|
|
5069
|
+
"name": "OnlineStatus",
|
|
5070
|
+
"required": false,
|
|
5071
|
+
"type": "int"
|
|
5072
|
+
},
|
|
5073
|
+
{
|
|
5074
|
+
"disabled": false,
|
|
5075
|
+
"document": "导出顺序,接口返回的数据字段",
|
|
5076
|
+
"example": "Name,RemarkName,IOAUserName,AccountName,UserName,LocalIpList,Ip,Mid,VulVersion,SysRepVersion,VirusVer,Os,Tags,SerialNum,AccountList,BaseBoardSn,MacAddr,GroupName,StrVersion,DomainName",
|
|
5077
|
+
"member": "string",
|
|
5078
|
+
"name": "ExportOrder",
|
|
5079
|
+
"required": false,
|
|
5080
|
+
"type": "string"
|
|
5081
|
+
},
|
|
5082
|
+
{
|
|
5083
|
+
"disabled": false,
|
|
5084
|
+
"document": " 导出类型, 0:终端树;7:硬件信息列表导出;",
|
|
5085
|
+
"example": "0",
|
|
5086
|
+
"member": "int64",
|
|
5087
|
+
"name": "ExportType",
|
|
5088
|
+
"required": false,
|
|
5089
|
+
"type": "int"
|
|
5090
|
+
},
|
|
5091
|
+
{
|
|
5092
|
+
"disabled": false,
|
|
5093
|
+
"document": "过滤条件。同DescribeDevices接口",
|
|
5094
|
+
"example": "无",
|
|
5095
|
+
"member": "Condition",
|
|
5096
|
+
"name": "Condition",
|
|
5097
|
+
"required": false,
|
|
5098
|
+
"type": "object"
|
|
5099
|
+
}
|
|
5100
|
+
],
|
|
5101
|
+
"type": "object"
|
|
5102
|
+
},
|
|
5103
|
+
"ExportDeviceDownloadTaskResponse": {
|
|
5104
|
+
"document": "ExportDeviceDownloadTask返回参数结构体",
|
|
5105
|
+
"members": [
|
|
5106
|
+
{
|
|
5107
|
+
"disabled": false,
|
|
5108
|
+
"document": "业务响应数据",
|
|
5109
|
+
"example": "无",
|
|
5110
|
+
"member": "DeviceDownloadTask",
|
|
5111
|
+
"name": "Data",
|
|
5112
|
+
"output_required": true,
|
|
5113
|
+
"type": "object",
|
|
5114
|
+
"value_allowed_null": false
|
|
5115
|
+
},
|
|
5116
|
+
{
|
|
5117
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
5118
|
+
"member": "string",
|
|
5119
|
+
"name": "RequestId",
|
|
5120
|
+
"type": "string"
|
|
5121
|
+
}
|
|
5122
|
+
],
|
|
5123
|
+
"type": "object"
|
|
5124
|
+
},
|
|
4999
5125
|
"ExportSoftwareDownloadUrlRspData": {
|
|
5000
5126
|
"document": "业务响应数据",
|
|
5001
5127
|
"members": [
|
|
@@ -240,6 +240,14 @@
|
|
|
240
240
|
"title": "示例1"
|
|
241
241
|
}
|
|
242
242
|
],
|
|
243
|
+
"ExportDeviceDownloadTask": [
|
|
244
|
+
{
|
|
245
|
+
"document": "测试全网终端分组(ID=1120)的数据导出",
|
|
246
|
+
"input": "POST / HTTP/1.1\nHost: ioa.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ExportDeviceDownloadTask\n<公共请求参数>\n\n{\n \"OsType\": 0,\n \"DomainInstanceId\": \"1\",\n \"GroupId\": 1120,\n \"ExportType\": 0\n}",
|
|
247
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"DownloadURL\": \"\",\n \"TaskId\": 186954\n },\n \"RequestId\": \"23b2ad49-f082-401c-a3f1-8b903291d5a6\"\n }\n}",
|
|
248
|
+
"title": "测试全网终端分组(ID=1120)的数据导出"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
243
251
|
"ExportSoftwareInformationList": [
|
|
244
252
|
{
|
|
245
253
|
"document": "",
|