tccli 3.0.1190.1__py2.py3-none-any.whl → 3.0.1191.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/command.py +7 -1
- tccli/configure.py +11 -3
- tccli/loaders.py +43 -8
- tccli/oauth.py +115 -0
- tccli/plugin.py +30 -0
- tccli/plugins/__init__.py +0 -0
- tccli/plugins/auth/__init__.py +59 -0
- tccli/plugins/auth/browser_flow.py +88 -0
- tccli/plugins/auth/login.py +130 -0
- tccli/plugins/auth/logout.py +21 -0
- tccli/plugins/auth/texts.py +30 -0
- tccli/plugins/test/__init__.py +87 -0
- tccli/plugins/test/add.py +31 -0
- tccli/services/apm/v20210622/api.json +19 -0
- tccli/services/cam/cam_client.py +138 -32
- tccli/services/cam/v20190116/api.json +203 -0
- tccli/services/cam/v20190116/examples.json +16 -0
- tccli/services/cdb/v20170320/api.json +4 -4
- tccli/services/dasb/dasb_client.py +53 -0
- tccli/services/dasb/v20191018/api.json +168 -0
- tccli/services/dasb/v20191018/examples.json +8 -0
- tccli/services/dlc/v20210125/api.json +287 -37
- tccli/services/dlc/v20210125/examples.json +18 -18
- tccli/services/dsgc/v20190723/api.json +13 -3
- tccli/services/emr/v20190103/api.json +1 -1
- tccli/services/ess/v20201111/api.json +48 -15
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +28 -1
- tccli/services/mps/v20190612/api.json +126 -5
- tccli/services/region/v20220627/api.json +11 -11
- tccli/services/region/v20220627/examples.json +1 -1
- tccli/services/tat/v20201028/api.json +10 -0
- tccli/services/tcb/v20180608/api.json +2 -2
- tccli/services/tdmq/v20200217/api.json +2 -2
- tccli/services/tdmq/v20200217/examples.json +2 -2
- tccli/services/tmt/v20180321/api.json +2 -2
- tccli/services/vdb/v20230616/api.json +29 -1
- tccli/services/vod/v20180717/api.json +30 -9
- tccli/services/vod/v20180717/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +1 -1
- {tccli-3.0.1190.1.dist-info → tccli-3.0.1191.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1190.1.dist-info → tccli-3.0.1191.1.dist-info}/RECORD +46 -36
- {tccli-3.0.1190.1.dist-info → tccli-3.0.1191.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1190.1.dist-info → tccli-3.0.1191.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1190.1.dist-info → tccli-3.0.1191.1.dist-info}/license_files/LICENSE +0 -0
@@ -140,6 +140,13 @@
|
|
140
140
|
"output": "DeleteGroupResponse",
|
141
141
|
"status": "online"
|
142
142
|
},
|
143
|
+
"DeleteMessageReceiver": {
|
144
|
+
"document": "删除消息接收人",
|
145
|
+
"input": "DeleteMessageReceiverRequest",
|
146
|
+
"name": "删除消息接收人",
|
147
|
+
"output": "DeleteMessageReceiverResponse",
|
148
|
+
"status": "online"
|
149
|
+
},
|
143
150
|
"DeleteOIDCConfig": {
|
144
151
|
"document": "删除OIDC身份提供商",
|
145
152
|
"input": "DeleteOIDCConfigRequest",
|
@@ -462,6 +469,13 @@
|
|
462
469
|
"output": "ListPolicyVersionsResponse",
|
463
470
|
"status": "online"
|
464
471
|
},
|
472
|
+
"ListReceiver": {
|
473
|
+
"document": "获取消息接收人列表",
|
474
|
+
"input": "ListReceiverRequest",
|
475
|
+
"name": "获取消息接收人列表",
|
476
|
+
"output": "ListReceiverResponse",
|
477
|
+
"status": "online"
|
478
|
+
},
|
465
479
|
"ListSAMLProviders": {
|
466
480
|
"document": "查询SAML身份提供商列表",
|
467
481
|
"input": "ListSAMLProvidersRequest",
|
@@ -2286,6 +2300,33 @@
|
|
2286
2300
|
],
|
2287
2301
|
"type": "object"
|
2288
2302
|
},
|
2303
|
+
"DeleteMessageReceiverRequest": {
|
2304
|
+
"document": "DeleteMessageReceiver请求参数结构体",
|
2305
|
+
"members": [
|
2306
|
+
{
|
2307
|
+
"disabled": false,
|
2308
|
+
"document": "消息接受者的名称",
|
2309
|
+
"example": "test",
|
2310
|
+
"member": "string",
|
2311
|
+
"name": "Name",
|
2312
|
+
"required": true,
|
2313
|
+
"type": "string"
|
2314
|
+
}
|
2315
|
+
],
|
2316
|
+
"type": "object"
|
2317
|
+
},
|
2318
|
+
"DeleteMessageReceiverResponse": {
|
2319
|
+
"document": "DeleteMessageReceiver返回参数结构体",
|
2320
|
+
"members": [
|
2321
|
+
{
|
2322
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2323
|
+
"member": "string",
|
2324
|
+
"name": "RequestId",
|
2325
|
+
"type": "string"
|
2326
|
+
}
|
2327
|
+
],
|
2328
|
+
"type": "object"
|
2329
|
+
},
|
2289
2330
|
"DeleteOIDCConfigRequest": {
|
2290
2331
|
"document": "DeleteOIDCConfig请求参数结构体",
|
2291
2332
|
"members": [
|
@@ -5276,6 +5317,62 @@
|
|
5276
5317
|
],
|
5277
5318
|
"type": "object"
|
5278
5319
|
},
|
5320
|
+
"ListReceiverRequest": {
|
5321
|
+
"document": "ListReceiver请求参数结构体",
|
5322
|
+
"members": [
|
5323
|
+
{
|
5324
|
+
"disabled": false,
|
5325
|
+
"document": "分页偏移量",
|
5326
|
+
"example": "0",
|
5327
|
+
"member": "uint64",
|
5328
|
+
"name": "Offset",
|
5329
|
+
"required": false,
|
5330
|
+
"type": "int"
|
5331
|
+
},
|
5332
|
+
{
|
5333
|
+
"disabled": false,
|
5334
|
+
"document": "分页限制数目",
|
5335
|
+
"example": "12",
|
5336
|
+
"member": "uint64",
|
5337
|
+
"name": "Limit",
|
5338
|
+
"required": false,
|
5339
|
+
"type": "int"
|
5340
|
+
}
|
5341
|
+
],
|
5342
|
+
"type": "object"
|
5343
|
+
},
|
5344
|
+
"ListReceiverResponse": {
|
5345
|
+
"document": "ListReceiver返回参数结构体",
|
5346
|
+
"members": [
|
5347
|
+
{
|
5348
|
+
"disabled": false,
|
5349
|
+
"document": "总数目",
|
5350
|
+
"example": "12",
|
5351
|
+
"member": "int64",
|
5352
|
+
"name": "TotalCount",
|
5353
|
+
"output_required": true,
|
5354
|
+
"type": "int",
|
5355
|
+
"value_allowed_null": false
|
5356
|
+
},
|
5357
|
+
{
|
5358
|
+
"disabled": false,
|
5359
|
+
"document": "联系人列表",
|
5360
|
+
"example": "[{\"Uid\":1001892,\"Name\":\"nick\",\"Remark\":\"\",\"PhoneNumber\":\"+86 186****3509\",\"PhoneFlag\":1,\"Email\":\"2054****@qq.com\",\"EmailFlag\":1,\"IsReceiverOwner\":1}]",
|
5361
|
+
"member": "Receiver",
|
5362
|
+
"name": "Receivers",
|
5363
|
+
"output_required": true,
|
5364
|
+
"type": "list",
|
5365
|
+
"value_allowed_null": false
|
5366
|
+
},
|
5367
|
+
{
|
5368
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5369
|
+
"member": "string",
|
5370
|
+
"name": "RequestId",
|
5371
|
+
"type": "string"
|
5372
|
+
}
|
5373
|
+
],
|
5374
|
+
"type": "object"
|
5375
|
+
},
|
5279
5376
|
"ListSAMLProvidersRequest": {
|
5280
5377
|
"document": "ListSAMLProviders请求参数结构体",
|
5281
5378
|
"members": [],
|
@@ -5879,6 +5976,112 @@
|
|
5879
5976
|
],
|
5880
5977
|
"type": "object"
|
5881
5978
|
},
|
5979
|
+
"Receiver": {
|
5980
|
+
"document": "消息接收人信息",
|
5981
|
+
"members": [
|
5982
|
+
{
|
5983
|
+
"disabled": false,
|
5984
|
+
"document": "id",
|
5985
|
+
"example": "",
|
5986
|
+
"member": "uint64",
|
5987
|
+
"name": "Uid",
|
5988
|
+
"required": true,
|
5989
|
+
"type": "int",
|
5990
|
+
"value_allowed_null": false
|
5991
|
+
},
|
5992
|
+
{
|
5993
|
+
"disabled": false,
|
5994
|
+
"document": "名字",
|
5995
|
+
"example": "",
|
5996
|
+
"member": "string",
|
5997
|
+
"name": "Name",
|
5998
|
+
"required": true,
|
5999
|
+
"type": "string",
|
6000
|
+
"value_allowed_null": false
|
6001
|
+
},
|
6002
|
+
{
|
6003
|
+
"disabled": false,
|
6004
|
+
"document": "备注\n注意:此字段可能返回 null,表示取不到有效值。",
|
6005
|
+
"example": "",
|
6006
|
+
"member": "string",
|
6007
|
+
"name": "Remark",
|
6008
|
+
"required": true,
|
6009
|
+
"type": "string",
|
6010
|
+
"value_allowed_null": true
|
6011
|
+
},
|
6012
|
+
{
|
6013
|
+
"disabled": false,
|
6014
|
+
"document": "手机号码",
|
6015
|
+
"example": "",
|
6016
|
+
"member": "string",
|
6017
|
+
"name": "PhoneNumber",
|
6018
|
+
"required": true,
|
6019
|
+
"type": "string",
|
6020
|
+
"value_allowed_null": false
|
6021
|
+
},
|
6022
|
+
{
|
6023
|
+
"disabled": false,
|
6024
|
+
"document": "手机号码是否验证",
|
6025
|
+
"example": "",
|
6026
|
+
"member": "int64",
|
6027
|
+
"name": "PhoneFlag",
|
6028
|
+
"required": true,
|
6029
|
+
"type": "int",
|
6030
|
+
"value_allowed_null": false
|
6031
|
+
},
|
6032
|
+
{
|
6033
|
+
"disabled": false,
|
6034
|
+
"document": "邮箱",
|
6035
|
+
"example": "",
|
6036
|
+
"member": "string",
|
6037
|
+
"name": "Email",
|
6038
|
+
"required": true,
|
6039
|
+
"type": "string",
|
6040
|
+
"value_allowed_null": false
|
6041
|
+
},
|
6042
|
+
{
|
6043
|
+
"disabled": false,
|
6044
|
+
"document": "邮箱是否验证",
|
6045
|
+
"example": "",
|
6046
|
+
"member": "int64",
|
6047
|
+
"name": "EmailFlag",
|
6048
|
+
"required": true,
|
6049
|
+
"type": "int",
|
6050
|
+
"value_allowed_null": false
|
6051
|
+
},
|
6052
|
+
{
|
6053
|
+
"disabled": false,
|
6054
|
+
"document": "是否主联系人",
|
6055
|
+
"example": "",
|
6056
|
+
"member": "int64",
|
6057
|
+
"name": "IsReceiverOwner",
|
6058
|
+
"required": true,
|
6059
|
+
"type": "int",
|
6060
|
+
"value_allowed_null": false
|
6061
|
+
},
|
6062
|
+
{
|
6063
|
+
"disabled": false,
|
6064
|
+
"document": "是否允许微信接收通知\n注意:此字段可能返回 null,表示取不到有效值。",
|
6065
|
+
"example": "",
|
6066
|
+
"member": "int64",
|
6067
|
+
"name": "WechatFlag",
|
6068
|
+
"required": true,
|
6069
|
+
"type": "int",
|
6070
|
+
"value_allowed_null": true
|
6071
|
+
},
|
6072
|
+
{
|
6073
|
+
"disabled": false,
|
6074
|
+
"document": "账号uin\n注意:此字段可能返回 null,表示取不到有效值。",
|
6075
|
+
"example": "",
|
6076
|
+
"member": "int64",
|
6077
|
+
"name": "Uin",
|
6078
|
+
"required": true,
|
6079
|
+
"type": "int",
|
6080
|
+
"value_allowed_null": true
|
6081
|
+
}
|
6082
|
+
],
|
6083
|
+
"usage": "out"
|
6084
|
+
},
|
5882
6085
|
"RemoveUserFromGroupRequest": {
|
5883
6086
|
"document": "RemoveUserFromGroup请求参数结构体",
|
5884
6087
|
"members": [
|
@@ -160,6 +160,14 @@
|
|
160
160
|
"title": "删除用户组"
|
161
161
|
}
|
162
162
|
],
|
163
|
+
"DeleteMessageReceiver": [
|
164
|
+
{
|
165
|
+
"document": "删除消息接收人",
|
166
|
+
"input": "POST / HTTP/1.1\nHost: cam.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteMessageReceiver\n<公共请求参数>\n\n{\n \"Name\": \"test\"\n}",
|
167
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"af3a7188-5b3e-41a6-b489-8443e5816494\"\n }\n}",
|
168
|
+
"title": "删除消息接收人"
|
169
|
+
}
|
170
|
+
],
|
163
171
|
"DeleteOIDCConfig": [
|
164
172
|
{
|
165
173
|
"document": "",
|
@@ -540,6 +548,14 @@
|
|
540
548
|
"title": "获取策略版本列表"
|
541
549
|
}
|
542
550
|
],
|
551
|
+
"ListReceiver": [
|
552
|
+
{
|
553
|
+
"document": "",
|
554
|
+
"input": "https://cam.tencentcloudapi.com/?Action=ListReceiver\r\nOffset=0&Limit=10\r\n&<公共请求参数>",
|
555
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Receivers\": [\n {\n \"Uid\": 1001892,\n \"Name\": \"nick\",\n \"Remark\": \"\",\n \"PhoneNumber\": \"+86 186****3509\",\n \"PhoneFlag\": 1,\n \"Email\": \"2054****@qq.com\",\n \"EmailFlag\": 1,\n \"IsReceiverOwner\": 1\n }\n ],\n \"RequestId\": \"9a9d4601-5f14-4293-b314-2319ab9f5450\"\n }\n}",
|
556
|
+
"title": "获取消息接收人列表"
|
557
|
+
}
|
558
|
+
],
|
543
559
|
"ListSAMLProviders": [
|
544
560
|
{
|
545
561
|
"document": "查询身份提供商列表",
|
@@ -12123,7 +12123,7 @@
|
|
12123
12123
|
"members": [
|
12124
12124
|
{
|
12125
12125
|
"disabled": false,
|
12126
|
-
"document": "实例 ID
|
12126
|
+
"document": "实例 ID。\n说明:实例 ID 和实例组 ID 两个参数选其一填写即可。若要查询双节点、三节点实例 SSL 开通情况,请填写实例 ID 参数进行查询。单节点(云盘)、集群版实例不支持开启 SSL,因此不支持查询。",
|
12127
12127
|
"example": "cdb-test",
|
12128
12128
|
"member": "string",
|
12129
12129
|
"name": "InstanceId",
|
@@ -12132,7 +12132,7 @@
|
|
12132
12132
|
},
|
12133
12133
|
{
|
12134
12134
|
"disabled": false,
|
12135
|
-
"document": "只读组 ID
|
12135
|
+
"document": "只读组 ID。\n说明:实例 ID 和实例组 ID 两个参数选其一填写即可。若要查询只读实例或只读组 SSL 开通情况,请填写 RoGroupId 参数,并注意填写的都是只读组 ID。单节点(云盘)、集群版实例不支持开启 SSL,因此不支持查询。",
|
12136
12136
|
"example": "cdbrg-test",
|
12137
12137
|
"member": "string",
|
12138
12138
|
"name": "RoGroupId",
|
@@ -12151,7 +12151,7 @@
|
|
12151
12151
|
"example": "ON",
|
12152
12152
|
"member": "string",
|
12153
12153
|
"name": "Status",
|
12154
|
-
"
|
12154
|
+
"output_required": true,
|
12155
12155
|
"type": "string",
|
12156
12156
|
"value_allowed_null": false
|
12157
12157
|
},
|
@@ -12161,7 +12161,7 @@
|
|
12161
12161
|
"example": "http://testdownload.url",
|
12162
12162
|
"member": "string",
|
12163
12163
|
"name": "Url",
|
12164
|
-
"
|
12164
|
+
"output_required": true,
|
12165
12165
|
"type": "string",
|
12166
12166
|
"value_allowed_null": false
|
12167
12167
|
},
|
@@ -589,6 +589,58 @@ def doDescribeUserGroups(args, parsed_globals):
|
|
589
589
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
590
590
|
|
591
591
|
|
592
|
+
def doDescribeDomains(args, parsed_globals):
|
593
|
+
g_param = parse_global_arg(parsed_globals)
|
594
|
+
|
595
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
596
|
+
cred = credential.CVMRoleCredential()
|
597
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
598
|
+
cred = credential.STSAssumeRoleCredential(
|
599
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
600
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
601
|
+
)
|
602
|
+
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):
|
603
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
604
|
+
else:
|
605
|
+
cred = credential.Credential(
|
606
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
607
|
+
)
|
608
|
+
http_profile = HttpProfile(
|
609
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
610
|
+
reqMethod="POST",
|
611
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
612
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
613
|
+
)
|
614
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
615
|
+
if g_param[OptionsDefine.Language]:
|
616
|
+
profile.language = g_param[OptionsDefine.Language]
|
617
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
618
|
+
client = mod.DasbClient(cred, g_param[OptionsDefine.Region], profile)
|
619
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
620
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
621
|
+
model = models.DescribeDomainsRequest()
|
622
|
+
model.from_json_string(json.dumps(args))
|
623
|
+
start_time = time.time()
|
624
|
+
while True:
|
625
|
+
rsp = client.DescribeDomains(model)
|
626
|
+
result = rsp.to_json_string()
|
627
|
+
try:
|
628
|
+
json_obj = json.loads(result)
|
629
|
+
except TypeError as e:
|
630
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
631
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
632
|
+
break
|
633
|
+
cur_time = time.time()
|
634
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
635
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
636
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
637
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
638
|
+
else:
|
639
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
640
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
641
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
|
+
|
643
|
+
|
592
644
|
def doDeployResource(args, parsed_globals):
|
593
645
|
g_param = parse_global_arg(parsed_globals)
|
594
646
|
|
@@ -3263,6 +3315,7 @@ ACTION_MAP = {
|
|
3263
3315
|
"DeleteDevices": doDeleteDevices,
|
3264
3316
|
"CreateChangePwdTask": doCreateChangePwdTask,
|
3265
3317
|
"DescribeUserGroups": doDescribeUserGroups,
|
3318
|
+
"DescribeDomains": doDescribeDomains,
|
3266
3319
|
"DeployResource": doDeployResource,
|
3267
3320
|
"ModifyDevice": doModifyDevice,
|
3268
3321
|
"BindDeviceResource": doBindDeviceResource,
|
@@ -245,6 +245,13 @@
|
|
245
245
|
"output": "DescribeDevicesResponse",
|
246
246
|
"status": "online"
|
247
247
|
},
|
248
|
+
"DescribeDomains": {
|
249
|
+
"document": "查询网络域",
|
250
|
+
"input": "DescribeDomainsRequest",
|
251
|
+
"name": "查询网络域",
|
252
|
+
"output": "DescribeDomainsResponse",
|
253
|
+
"status": "online"
|
254
|
+
},
|
248
255
|
"DescribeLoginEvent": {
|
249
256
|
"document": "查询登录日志",
|
250
257
|
"input": "DescribeLoginEventRequest",
|
@@ -3884,6 +3891,71 @@
|
|
3884
3891
|
],
|
3885
3892
|
"type": "object"
|
3886
3893
|
},
|
3894
|
+
"DescribeDomainsRequest": {
|
3895
|
+
"document": "DescribeDomains请求参数结构体",
|
3896
|
+
"members": [
|
3897
|
+
{
|
3898
|
+
"disabled": false,
|
3899
|
+
"document": "每页条目数量,默认20,最大500",
|
3900
|
+
"example": "10",
|
3901
|
+
"member": "uint64",
|
3902
|
+
"name": "Limit",
|
3903
|
+
"required": false,
|
3904
|
+
"type": "int"
|
3905
|
+
},
|
3906
|
+
{
|
3907
|
+
"disabled": false,
|
3908
|
+
"document": "过滤数组",
|
3909
|
+
"example": "无",
|
3910
|
+
"member": "Filter",
|
3911
|
+
"name": "Filters",
|
3912
|
+
"required": false,
|
3913
|
+
"type": "list"
|
3914
|
+
},
|
3915
|
+
{
|
3916
|
+
"disabled": false,
|
3917
|
+
"document": "分页偏移位置,默认值为0",
|
3918
|
+
"example": "0",
|
3919
|
+
"member": "uint64",
|
3920
|
+
"name": "Offset",
|
3921
|
+
"required": false,
|
3922
|
+
"type": "int"
|
3923
|
+
}
|
3924
|
+
],
|
3925
|
+
"type": "object"
|
3926
|
+
},
|
3927
|
+
"DescribeDomainsResponse": {
|
3928
|
+
"document": "DescribeDomains返回参数结构体",
|
3929
|
+
"members": [
|
3930
|
+
{
|
3931
|
+
"disabled": false,
|
3932
|
+
"document": "网络域总数",
|
3933
|
+
"example": "1",
|
3934
|
+
"member": "uint64",
|
3935
|
+
"name": "TotalCount",
|
3936
|
+
"output_required": true,
|
3937
|
+
"type": "int",
|
3938
|
+
"value_allowed_null": false
|
3939
|
+
},
|
3940
|
+
{
|
3941
|
+
"disabled": false,
|
3942
|
+
"document": "网络域列表",
|
3943
|
+
"example": "[]",
|
3944
|
+
"member": "Domain",
|
3945
|
+
"name": "DomainSet",
|
3946
|
+
"output_required": true,
|
3947
|
+
"type": "list",
|
3948
|
+
"value_allowed_null": false
|
3949
|
+
},
|
3950
|
+
{
|
3951
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3952
|
+
"member": "string",
|
3953
|
+
"name": "RequestId",
|
3954
|
+
"type": "string"
|
3955
|
+
}
|
3956
|
+
],
|
3957
|
+
"type": "object"
|
3958
|
+
},
|
3887
3959
|
"DescribeLoginEventRequest": {
|
3888
3960
|
"document": "DescribeLoginEvent请求参数结构体",
|
3889
3961
|
"members": [
|
@@ -4759,6 +4831,102 @@
|
|
4759
4831
|
],
|
4760
4832
|
"usage": "out"
|
4761
4833
|
},
|
4834
|
+
"Domain": {
|
4835
|
+
"document": "网络域",
|
4836
|
+
"members": [
|
4837
|
+
{
|
4838
|
+
"disabled": false,
|
4839
|
+
"document": "自增id",
|
4840
|
+
"example": "1",
|
4841
|
+
"member": "uint64",
|
4842
|
+
"name": "Id",
|
4843
|
+
"output_required": true,
|
4844
|
+
"type": "int",
|
4845
|
+
"value_allowed_null": false
|
4846
|
+
},
|
4847
|
+
{
|
4848
|
+
"disabled": false,
|
4849
|
+
"document": "网络域id",
|
4850
|
+
"example": "net-11111111",
|
4851
|
+
"member": "string",
|
4852
|
+
"name": "DomainId",
|
4853
|
+
"output_required": true,
|
4854
|
+
"type": "string",
|
4855
|
+
"value_allowed_null": false
|
4856
|
+
},
|
4857
|
+
{
|
4858
|
+
"disabled": false,
|
4859
|
+
"document": "网络域名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
4860
|
+
"example": "腾讯云网络",
|
4861
|
+
"member": "string",
|
4862
|
+
"name": "DomainName",
|
4863
|
+
"output_required": true,
|
4864
|
+
"type": "string",
|
4865
|
+
"value_allowed_null": true
|
4866
|
+
},
|
4867
|
+
{
|
4868
|
+
"disabled": false,
|
4869
|
+
"document": "堡垒机id\n注意:此字段可能返回 null,表示取不到有效值。",
|
4870
|
+
"example": "bh-saas-xxxxxxxx",
|
4871
|
+
"member": "string",
|
4872
|
+
"name": "ResourceId",
|
4873
|
+
"output_required": false,
|
4874
|
+
"type": "string",
|
4875
|
+
"value_allowed_null": true
|
4876
|
+
},
|
4877
|
+
{
|
4878
|
+
"disabled": false,
|
4879
|
+
"document": "ip,网段\n注意:此字段可能返回 null,表示取不到有效值。",
|
4880
|
+
"example": "ip 192.168.0.1 网段 192.168.0.0/24",
|
4881
|
+
"member": "string",
|
4882
|
+
"name": "WhiteIpSet",
|
4883
|
+
"output_required": false,
|
4884
|
+
"type": "list",
|
4885
|
+
"value_allowed_null": true
|
4886
|
+
},
|
4887
|
+
{
|
4888
|
+
"disabled": false,
|
4889
|
+
"document": "是否启用 默认 1启用 0禁用\n注意:此字段可能返回 null,表示取不到有效值。",
|
4890
|
+
"example": "0",
|
4891
|
+
"member": "uint64",
|
4892
|
+
"name": "Enabled",
|
4893
|
+
"output_required": false,
|
4894
|
+
"type": "int",
|
4895
|
+
"value_allowed_null": true
|
4896
|
+
},
|
4897
|
+
{
|
4898
|
+
"disabled": false,
|
4899
|
+
"document": "状态 0-已断开 1-已连接\n注意:此字段可能返回 null,表示取不到有效值。",
|
4900
|
+
"example": "0",
|
4901
|
+
"member": "uint64",
|
4902
|
+
"name": "Status",
|
4903
|
+
"output_required": false,
|
4904
|
+
"type": "int",
|
4905
|
+
"value_allowed_null": true
|
4906
|
+
},
|
4907
|
+
{
|
4908
|
+
"disabled": false,
|
4909
|
+
"document": "网络域创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
4910
|
+
"example": "2021-02-04T15:23:52+08:00",
|
4911
|
+
"member": "datetime_iso",
|
4912
|
+
"name": "CreateTime",
|
4913
|
+
"output_required": false,
|
4914
|
+
"type": "string",
|
4915
|
+
"value_allowed_null": true
|
4916
|
+
},
|
4917
|
+
{
|
4918
|
+
"disabled": false,
|
4919
|
+
"document": "是否资源默认网络域 1-资源默认网络域 0-用户添加网络域\n注意:此字段可能返回 null,表示取不到有效值。",
|
4920
|
+
"example": "0",
|
4921
|
+
"member": "uint64",
|
4922
|
+
"name": "Default",
|
4923
|
+
"output_required": false,
|
4924
|
+
"type": "int",
|
4925
|
+
"value_allowed_null": true
|
4926
|
+
}
|
4927
|
+
],
|
4928
|
+
"usage": "out"
|
4929
|
+
},
|
4762
4930
|
"ExternalDevice": {
|
4763
4931
|
"document": "主机参数,导入外部主机时使用",
|
4764
4932
|
"members": [
|
@@ -292,6 +292,14 @@
|
|
292
292
|
"title": "根据用户查询有访问权限的资产"
|
293
293
|
}
|
294
294
|
],
|
295
|
+
"DescribeDomains": [
|
296
|
+
{
|
297
|
+
"document": "",
|
298
|
+
"input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDomains\n<公共请求参数>\n\n\n\n\n\n\n\n{\n\n \"Offset\": 0,\n \"Limit\": 10,\n \"Filters\": [{\"Name\": \"Status\",\"Values\": [\"0\"]},{\"Name\": \"Ip\",\"Values\": [\"127.9.9.1\"]}]\n\n}",
|
299
|
+
"output": "{\n \"Response\": {\n \"DomainSet\": [\n {\n \"Id\": 7,\n \"DomainId\": \"net-vvr396q5\",\n \"DomainName\": \"test-name1-9990\",\n \"Enabled\": 1,\n \"Status\": 0,\n \"ResourceId\": \"bh-saas-jtvukub4\",\n \"CreateTime\": \"2024-04-19T11:11:55+08:00\",\n \"Default\": 0,\n \"WhiteIpSet\": [\n \"127.9.9.1\",\n \"171.0.0.1\"\n ]\n }\n ],\n \"RequestId\": \"sdfsadf-sdfasd-sdfsad-sdf2222\",\n \"TotalCount\": 1\n }\n}",
|
300
|
+
"title": "示例1"
|
301
|
+
}
|
302
|
+
],
|
295
303
|
"DescribeLoginEvent": [
|
296
304
|
{
|
297
305
|
"document": "",
|