tccli 3.0.1293.1__py2.py3-none-any.whl → 3.0.1295.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/bh/v20230418/api.json +35 -17
- tccli/services/bh/v20230418/examples.json +1 -1
- tccli/services/cam/v20190116/api.json +1 -1
- tccli/services/cam/v20190116/examples.json +5 -5
- tccli/services/captcha/v20190722/api.json +49 -39
- tccli/services/cbs/v20170312/api.json +16 -16
- tccli/services/ccc/v20200210/api.json +89 -6
- tccli/services/ccc/v20200210/examples.json +1 -1
- tccli/services/cdc/v20201214/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +191 -0
- tccli/services/cdwpg/v20201230/api.json +282 -247
- tccli/services/cdwpg/v20201230/examples.json +39 -39
- tccli/services/chc/v20230418/api.json +92 -92
- tccli/services/chc/v20230418/examples.json +5 -5
- tccli/services/clb/v20180317/api.json +40 -21
- tccli/services/cloudaudit/v20190319/api.json +38 -23
- tccli/services/controlcenter/v20230110/api.json +2 -2
- tccli/services/controlcenter/v20230110/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +8 -8
- tccli/services/dbdc/v20201029/api.json +42 -42
- tccli/services/dcdb/v20180411/api.json +66 -66
- tccli/services/dcdb/v20180411/examples.json +7 -7
- tccli/services/dlc/v20210125/api.json +212 -17
- tccli/services/emr/v20190103/api.json +89 -89
- tccli/services/emr/v20190103/examples.json +1 -1
- tccli/services/ess/v20201111/api.json +2 -2
- tccli/services/ess/v20201111/examples.json +3 -3
- tccli/services/essbasic/v20210526/api.json +4 -4
- tccli/services/essbasic/v20210526/examples.json +3 -3
- tccli/services/gs/v20191118/api.json +80 -82
- tccli/services/gs/v20191118/examples.json +29 -29
- tccli/services/hai/v20230812/api.json +98 -98
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/iap/v20240713/api.json +13 -13
- tccli/services/iap/v20240713/examples.json +3 -3
- tccli/services/iotcloud/v20210408/api.json +29 -29
- tccli/services/iotcloud/v20210408/examples.json +6 -6
- tccli/services/iotexplorer/v20190423/api.json +1 -1
- tccli/services/iotvideo/v20191126/api.json +35 -34
- tccli/services/iotvideo/v20191126/examples.json +2 -2
- tccli/services/iotvideo/v20201215/api.json +310 -292
- tccli/services/iotvideo/v20201215/examples.json +54 -54
- tccli/services/iotvideo/v20211125/api.json +283 -275
- tccli/services/iotvideo/v20211125/examples.json +64 -64
- tccli/services/iotvideoindustry/v20201201/api.json +38 -35
- tccli/services/lcic/v20220817/api.json +46 -44
- tccli/services/lcic/v20220817/examples.json +1 -1
- tccli/services/live/v20180801/api.json +8 -8
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/mariadb/v20170312/api.json +76 -76
- tccli/services/mariadb/v20170312/examples.json +5 -5
- tccli/services/monitor/v20180724/api.json +59 -3
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/mps/v20190612/api.json +123 -4
- tccli/services/mqtt/v20240516/api.json +182 -182
- tccli/services/mqtt/v20240516/examples.json +7 -13
- tccli/services/organization/v20210331/api.json +61 -43
- tccli/services/organization/v20210331/examples.json +25 -25
- tccli/services/privatedns/v20201028/api.json +32 -32
- tccli/services/region/v20220627/examples.json +1 -1
- tccli/services/taf/taf_client.py +53 -0
- tccli/services/taf/v20200210/api.json +138 -0
- tccli/services/taf/v20200210/examples.json +8 -0
- tccli/services/tag/v20180813/api.json +2 -2
- tccli/services/tbaas/v20180416/api.json +74 -64
- tccli/services/tcr/v20190924/api.json +209 -188
- tccli/services/tcr/v20190924/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +16 -16
- tccli/services/thpc/v20230321/api.json +9 -0
- tccli/services/tke/tke_client.py +61 -8
- tccli/services/tke/v20180525/api.json +430 -320
- tccli/services/tke/v20180525/examples.json +14 -0
- tccli/services/trocket/v20230308/api.json +24 -24
- tccli/services/tsf/v20180326/api.json +351 -198
- tccli/services/vcube/v20220410/api.json +382 -327
- tccli/services/vcube/v20220410/examples.json +56 -56
- tccli/services/vod/v20180717/api.json +827 -814
- tccli/services/vod/v20180717/examples.json +19 -19
- tccli/services/vpc/v20170312/api.json +84 -3
- tccli/services/waf/v20180125/api.json +2 -2
- tccli/services/waf/v20180125/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +10 -0
- {tccli-3.0.1293.1.dist-info → tccli-3.0.1295.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1293.1.dist-info → tccli-3.0.1295.1.dist-info}/RECORD +88 -88
- {tccli-3.0.1293.1.dist-info → tccli-3.0.1295.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1293.1.dist-info → tccli-3.0.1295.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1293.1.dist-info → tccli-3.0.1295.1.dist-info}/license_files/LICENSE +0 -0
@@ -204,15 +204,15 @@
|
|
204
204
|
{
|
205
205
|
"document": " 在成员账号上授权",
|
206
206
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRoleAssignment\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-djw83n***\",\n \"RoleAssignmentInfo\": [\n {\n \"RoleConfigurationId\": \"rc-sjsiw2***\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 1000023222,\n \"PrincipalType\": \"User\",\n \"PrincipalId\": \"u-0829jd8d***\"\n }\n ]\n}",
|
207
|
-
"output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"TaskId\": \"t-sowmiwm\",\n \"RoleConfigurationId\": \"r-sjsosmsss\",\n \"RoleConfigurationName\": \"
|
207
|
+
"output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"TaskId\": \"t-sowmiwm\",\n \"RoleConfigurationId\": \"r-sjsosmsss\",\n \"RoleConfigurationName\": \"conf1\",\n \"TargetUin\": 10000323432,\n \"TargetType\": \"MemberUin\",\n \"PrincipalId\": \"u-djiem3o***\",\n \"PrincipalType\": \"User\",\n \"TaskType\": \"CreateRoleAssignment\",\n \"Status\": \"InProgress\"\n }\n ],\n \"RequestId\": \"10accfa5-15ed-41fa-9e09-7efffd8e9345\"\n }\n}",
|
208
208
|
"title": " 在成员账号上授权"
|
209
209
|
}
|
210
210
|
],
|
211
211
|
"CreateRoleConfiguration": [
|
212
212
|
{
|
213
213
|
"document": "创建权限配置",
|
214
|
-
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-33923n\",\n \"RoleConfigurationName\": \"
|
215
|
-
"output": "{\n \"Response\": {\n \"RoleConfigurationInfo\": {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"
|
214
|
+
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-33923n\",\n \"RoleConfigurationName\": \"conf1\",\n \"Description\": \"this is role configuration\",\n \"SessionDuration\": 900,\n \"RelayState\": \"https://console.cloud.tencent.com\"\n}",
|
215
|
+
"output": "{\n \"Response\": {\n \"RoleConfigurationInfo\": {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"conf1\",\n \"Description\": \"this is role configuration\",\n \"SessionDuration\": 900,\n \"RelayState\": \"https://console.cloud.tencent.com\",\n \"CreateTime\": \"2019-01-01 12:12:12\",\n \"UpdateTime\": \"2019-01-01 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}",
|
216
216
|
"title": "创建权限配置"
|
217
217
|
}
|
218
218
|
],
|
@@ -236,7 +236,7 @@
|
|
236
236
|
{
|
237
237
|
"document": "创建子用户同步任务",
|
238
238
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateUserSyncProvisioning\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-di3nd8e***\",\n \"UserSyncProvisionings\": [\n {\n \"DuplicationStrategy\": \"KeepBoth\",\n \"DeletionStrategy\": \"Delete\",\n \"Description\": \"this is cam user sync provisioning\",\n \"PrincipalId\": \"u-sienmcien\",\n \"PrincipalType\": \"User\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 1000234382342\n }\n ]\n}",
|
239
|
-
"output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"TaskId\": \"t-duedin****\",\n \"TargetUin\": 1000289211,\n \"TargetType\": \"MemberUin\",\n \"TaskType\": \"StartProvisioning\",\n \"TaskStatus\": \"InProgress\",\n \"UserProvisioningId\": \"upe-d8n3d9***\",\n \"PrincipalId\": \"u-dend83***\",\n \"PrincipalType\": \"User\",\n \"PrincipalName\": \"
|
239
|
+
"output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"TaskId\": \"t-duedin****\",\n \"TargetUin\": 1000289211,\n \"TargetType\": \"MemberUin\",\n \"TaskType\": \"StartProvisioning\",\n \"TaskStatus\": \"InProgress\",\n \"UserProvisioningId\": \"upe-d8n3d9***\",\n \"PrincipalId\": \"u-dend83***\",\n \"PrincipalType\": \"User\",\n \"PrincipalName\": \"user1\",\n \"DuplicationStrategy\": \"KeepBoth\",\n \"DeletionStrategy\": \"Delete\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-34545s45\"\n }\n}",
|
240
240
|
"title": "创建子用户同步任务"
|
241
241
|
}
|
242
242
|
],
|
@@ -324,7 +324,7 @@
|
|
324
324
|
{
|
325
325
|
"document": "移除成员账号上的授权",
|
326
326
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRoleAssignment\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-2ms923mw\",\n \"RoleConfigurationId\": \"rc-smw9em32\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 10000332,\n \"PrincipalType\": \"User\",\n \"PrincipalId\": \"u-siwnwiene\",\n \"DeprovisionStrategy\": \"DeprovisionForLastRoleAssignmentOnAccount\"\n}",
|
327
|
-
"output": "{\n \"Response\": {\n \"Task\": {\n \"TaskId\": \"t-0md93jfd3\",\n \"RoleConfigurationId\": \"rc-dsk3323\",\n \"RoleConfigurationName\": \"
|
327
|
+
"output": "{\n \"Response\": {\n \"Task\": {\n \"TaskId\": \"t-0md93jfd3\",\n \"RoleConfigurationId\": \"rc-dsk3323\",\n \"RoleConfigurationName\": \"conf1\",\n \"TargetUin\": 100032333,\n \"TargetType\": \"MemberUin\",\n \"PrincipalId\": \"u-siwnwiene\",\n \"PrincipalType\": \"User\",\n \"TaskType\": \"DeleteRolesAssignment\",\n \"Status\": \"InProgress\"\n },\n \"RequestId\": \"abgt*******\"\n }\n}",
|
328
328
|
"title": "移除成员账号上的授权"
|
329
329
|
}
|
330
330
|
],
|
@@ -380,7 +380,7 @@
|
|
380
380
|
{
|
381
381
|
"document": "删除子用户同步任务",
|
382
382
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteUserSyncProvisioning\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dssmowmsd\",\n \"UserProvisioningId\": \"up-sxins8snds\"\n}",
|
383
|
-
"output": "{\n \"Response\": {\n \"Tasks\": {\n \"TaskId\": \"t-duedin****\",\n \"TargetUin\": 1000289211,\n \"TargetType\": \"MemberUin\",\n \"TaskType\": \"DeleteProvisioning\",\n \"TaskStatus\": \"InProgress\",\n \"UserProvisioningId\": \"upe-d8n3d9***\",\n \"PrincipalId\": \"u-dend83***\",\n \"PrincipalType\": \"User\",\n \"PrincipalName\": \"
|
383
|
+
"output": "{\n \"Response\": {\n \"Tasks\": {\n \"TaskId\": \"t-duedin****\",\n \"TargetUin\": 1000289211,\n \"TargetType\": \"MemberUin\",\n \"TaskType\": \"DeleteProvisioning\",\n \"TaskStatus\": \"InProgress\",\n \"UserProvisioningId\": \"upe-d8n3d9***\",\n \"PrincipalId\": \"u-dend83***\",\n \"PrincipalType\": \"User\",\n \"PrincipalName\": \"user1\",\n \"DuplicationStrategy\": \"KeepBoth\",\n \"DeletionStrategy\": \"Delete\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}",
|
384
384
|
"title": "删除子用户同步任务"
|
385
385
|
}
|
386
386
|
],
|
@@ -596,7 +596,7 @@
|
|
596
596
|
{
|
597
597
|
"document": "查询权限配置信息",
|
598
598
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-2s2osm2***\",\n \"RoleConfigurationId\": \"rc-odmo23w\"\n}",
|
599
|
-
"output": "{\n \"Response\": {\n \"RoleConfigurationInfo\": {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"
|
599
|
+
"output": "{\n \"Response\": {\n \"RoleConfigurationInfo\": {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"conf1\",\n \"Description\": \"this is role configuration\",\n \"SessionDuration\": 900,\n \"RelayState\": \"https://console.cloud.tencent.com\",\n \"CreateTime\": \"2019-01-01 12:12:12\",\n \"UpdateTime\": \"2019-01-01 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}",
|
600
600
|
"title": "查询权限配置信息"
|
601
601
|
}
|
602
602
|
],
|
@@ -620,7 +620,7 @@
|
|
620
620
|
{
|
621
621
|
"document": "查询用户信息",
|
622
622
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetUser\n<公共请求参数>\n\n{\n \"UserId\": \"u-4i293bf3indh\",\n \"ZoneId\": \"z-hfp2qqncf343\"\n}",
|
623
|
-
"output": "{\n \"Response\": {\n \"UserInfo\": {\n \"UserName\": \"
|
623
|
+
"output": "{\n \"Response\": {\n \"UserInfo\": {\n \"UserName\": \"user1\",\n \"FirstName\": \"john\",\n \"LastName\": \"smith\",\n \"DisplayName\": \"john\",\n \"Description\": \"this is user\",\n \"Email\": \"test@example.com\",\n \"UserStatus\": \"Enabled\",\n \"UserType\": \"Manual\",\n \"UserId\": \"u-2jsal3jdxk\",\n \"CreateTime\": \"2024-03-12 12:12:12\",\n \"UpdateTime\": \"2024-03-12 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-34545s45\"\n }\n}",
|
624
624
|
"title": "查询用户信息"
|
625
625
|
}
|
626
626
|
],
|
@@ -628,7 +628,7 @@
|
|
628
628
|
{
|
629
629
|
"document": "查询CAM用户同步",
|
630
630
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetUserSyncProvisioning\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dimd3d***\",\n \"UserProvisioningId\": \"up-imei3rdiem\"\n}",
|
631
|
-
"output": "{\n \"Response\": {\n \"UserProvisioning\": {\n \"UserProvisioningId\": \"up-siwnei3nso\",\n \"Description\": \"this is cam user sync\",\n \"Status\": \"Enabled\",\n \"PrincipalId\": \"u-swnd8wn3\",\n \"PrincipalName\": \"
|
631
|
+
"output": "{\n \"Response\": {\n \"UserProvisioning\": {\n \"UserProvisioningId\": \"up-siwnei3nso\",\n \"Description\": \"this is cam user sync\",\n \"Status\": \"Enabled\",\n \"PrincipalId\": \"u-swnd8wn3\",\n \"PrincipalName\": \"user1\",\n \"PrincipalType\": \"User\",\n \"TargetUin\": \"10000338332\",\n \"TargetName\": \"user2\",\n \"TargetType\": \"MemberUin\",\n \"DuplicationStrategy\": \"KeepBoth\",\n \"DeletionStrategy\": \"Delete\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}",
|
632
632
|
"title": "查询CAM用户同步"
|
633
633
|
}
|
634
634
|
],
|
@@ -668,7 +668,7 @@
|
|
668
668
|
{
|
669
669
|
"document": "查询用户组中的用户列表",
|
670
670
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListGroupMembers\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-ds932j9m3\",\n \"GroupId\": \"g29sn2389e\",\n \"NextToken\": \"\",\n \"MaxResults\": 10\n}",
|
671
|
-
"output": "{\n \"Response\": {\n \"NextToken\": \"OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=\",\n \"TotalCounts\": 20,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"GroupMembers\": [\n {\n \"UserName\": \"
|
671
|
+
"output": "{\n \"Response\": {\n \"NextToken\": \"OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=\",\n \"TotalCounts\": 20,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"GroupMembers\": [\n {\n \"UserName\": \"user1\",\n \"DisplayName\": \"john\",\n \"Description\": \"this is test user\",\n \"Email\": \"123456@qq.com\",\n \"UserStatus\": \"Enabled\",\n \"UserType\": \"Manual\",\n \"UserId\": \"u-d032med3\",\n \"JoinTime\": \"2024-01-01 12:12:12\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}",
|
672
672
|
"title": "查询用户组中的用户列表"
|
673
673
|
}
|
674
674
|
],
|
@@ -748,23 +748,23 @@
|
|
748
748
|
{
|
749
749
|
"document": "查询授权列表",
|
750
750
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListRoleAssignments\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-ssmdsowm**\",\n \"RoleConfigurationId\": \"rc2-as245usjsm\",\n \"MaxResults\": 30,\n \"NextToken\": \"\",\n \"TargetType\": \"MemeberUin\",\n \"TargetUin\": \"10000238922\",\n \"PrincipalType\": \"User\",\n \"PrincipalId\": \"u-ss342md**\"\n}",
|
751
|
-
"output": "{\n \"Response\": {\n \"NextToken\": \"
|
751
|
+
"output": "{\n \"Response\": {\n \"NextToken\": \"xgt******\",\n \"TotalCounts\": 30,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"RoleAssignments\": [\n {\n \"RoleConfigurationId\": \"ec-swidn****\",\n \"RoleConfigurationName\": \"conf1\",\n \"TargetUin\": 100000322,\n \"TargetType\": \"MemberUin\",\n \"TargetName\": \"user1\",\n \"PrincipalId\": \"u-ssiisn***\",\n \"PrincipalType\": \"User\",\n \"PrincipalName\": \"testConfig\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}",
|
752
752
|
"title": "查询授权列表"
|
753
753
|
}
|
754
754
|
],
|
755
755
|
"ListRoleConfigurationProvisionings": [
|
756
756
|
{
|
757
757
|
"document": " 查询权限配置部署列表",
|
758
|
-
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListRoleConfigurationProvisionings\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-d8wj\",\n \"RoleConfigurationId\": \"up-dnsisns***\",\n \"MaxResults\": 20,\n \"NextToken\": \"
|
759
|
-
"output": "{\n \"Response\": {\n \"NextToken\": \"\",\n \"TotalCounts\": 30,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"RoleConfigurationProvisionings\": [\n {\n \"DeploymentStatus\": \"DeployedRequired\",\n \"RoleConfigurationId\": \"rc-sjwiwm2ww**\",\n \"RoleConfigurationName\": \"
|
758
|
+
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListRoleConfigurationProvisionings\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-d8wj\",\n \"RoleConfigurationId\": \"up-dnsisns***\",\n \"MaxResults\": 20,\n \"NextToken\": \"sgt****\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 1000329122,\n \"DeploymentStatus\": \"DeployedRequired\",\n \"Filter\": \"conf1\"\n}",
|
759
|
+
"output": "{\n \"Response\": {\n \"NextToken\": \"\",\n \"TotalCounts\": 30,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"RoleConfigurationProvisionings\": [\n {\n \"DeploymentStatus\": \"DeployedRequired\",\n \"RoleConfigurationId\": \"rc-sjwiwm2ww**\",\n \"RoleConfigurationName\": \"conf1\",\n \"TargetUin\": 10003292021,\n \"TargetName\": \"user1\",\n \"TargetType\": \"MemberUin\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\"\n }\n ],\n \"RequestId\": \"2ccd7ed1-24b4-4882-8f4a-5580b430bce7\"\n }\n}",
|
760
760
|
"title": " 查询权限配置部署列表"
|
761
761
|
}
|
762
762
|
],
|
763
763
|
"ListRoleConfigurations": [
|
764
764
|
{
|
765
765
|
"document": "查询权限配置列表",
|
766
|
-
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-s9h39sdn2\",\n \"NextToken\": \"sisndpmfisdnlk\",\n \"MaxResults\": 10,\n \"Filter\": \"
|
767
|
-
"output": "{\n \"Response\": {\n \"TotalCounts\": 20,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"NextToken\": \"3si2ns92ns82bos\",\n \"RoleConfigurations\": [\n {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"
|
766
|
+
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-s9h39sdn2\",\n \"NextToken\": \"sisndpmfisdnlk\",\n \"MaxResults\": 10,\n \"Filter\": \"conf1\"\n}",
|
767
|
+
"output": "{\n \"Response\": {\n \"TotalCounts\": 20,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"NextToken\": \"3si2ns92ns82bos\",\n \"RoleConfigurations\": [\n {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"conf1\",\n \"Description\": \"this is role configuration\",\n \"SessionDuration\": 900,\n \"RelayState\": \"https://console.cloud.tencent.com\",\n \"CreateTime\": \"2019-01-01 12:12:12\",\n \"UpdateTime\": \"2019-01-01 12:12:12\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}",
|
768
768
|
"title": "查询权限配置列表"
|
769
769
|
}
|
770
770
|
],
|
@@ -788,15 +788,15 @@
|
|
788
788
|
{
|
789
789
|
"document": "查询异步任务列表",
|
790
790
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListTasks\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-djwidnwidj\",\n \"PrincipalId\": \"u-xj8sncidnc\",\n \"NextToken\": \"xownw8db38dbe8fne==-\",\n \"MaxResults\": 1,\n \"PrincipalType\": \"User\",\n \"TargetUin\": 1000023423,\n \"TargetType\": \"Member\",\n \"RoleConfigurationId\": \"rc-xjw9dsmw\",\n \"Status\": \"InProgress\",\n \"TaskType\": \"CreateRoleAssignment\"\n}",
|
791
|
-
"output": "{\n \"Response\": {\n \"NextToken\": \"
|
791
|
+
"output": "{\n \"Response\": {\n \"NextToken\": \"sgt*****\",\n \"TotalCounts\": 1,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"Tasks\": [\n {\n \"TaskId\": \"t-xsinsxinsdk\",\n \"RoleConfigurationId\": \"rc-xmw9xjdsd\",\n \"RoleConfigurationName\": \"配置\",\n \"TargetUin\": 1000232234,\n \"TargetType\": \"User\",\n \"PrincipalId\": \"u-xm89dnsujs\",\n \"PrincipalType\": \"Member\",\n \"TaskType\": \"CreateRoleAssignment\",\n \"Status\": \"InProgress\",\n \"FailureReason\": \"\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d35d4545\"\n }\n}",
|
792
792
|
"title": "查询异步任务列表"
|
793
793
|
}
|
794
794
|
],
|
795
795
|
"ListUserSyncProvisionings": [
|
796
796
|
{
|
797
797
|
"document": "查询CAM用户同步列表",
|
798
|
-
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListUserSyncProvisionings\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dsjsisnus\",\n \"PrincipalId\": \"u-sjs9smss\",\n \"NextToken\": \"\",\n \"MaxResults\": 10,\n \"PrincipalType\": \"User\",\n \"TargetUin\": 100003324902,\n \"TargetType\": \"MemberUin\",\n \"Filter\": \"
|
799
|
-
"output": "{\n \"Response\": {\n \"NextToken\": \"OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=\",\n \"TotalCounts\": 30,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"UserProvisionings\": [\n {\n \"UserProvisioningId\": \"up-siwnei3nso\",\n \"Description\": \"this is cam user sync\",\n \"Status\": \"Enabled\",\n \"PrincipalId\": \"u-swnd8wn3\",\n \"PrincipalName\": \"
|
798
|
+
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListUserSyncProvisionings\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dsjsisnus\",\n \"PrincipalId\": \"u-sjs9smss\",\n \"NextToken\": \"\",\n \"MaxResults\": 10,\n \"PrincipalType\": \"User\",\n \"TargetUin\": 100003324902,\n \"TargetType\": \"MemberUin\",\n \"Filter\": \"user1\"\n}",
|
799
|
+
"output": "{\n \"Response\": {\n \"NextToken\": \"OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=\",\n \"TotalCounts\": 30,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"UserProvisionings\": [\n {\n \"UserProvisioningId\": \"up-siwnei3nso\",\n \"Description\": \"this is cam user sync\",\n \"Status\": \"Enabled\",\n \"PrincipalId\": \"u-swnd8wn3\",\n \"PrincipalName\": \"user1\",\n \"PrincipalType\": \"User\",\n \"TargetUin\": \"10000338332\",\n \"TargetName\": \"user2\",\n \"DuplicationStrategy\": \"KeepBoth\",\n \"DeletionStrategy\": \"Delete\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\",\n \"TargetType\": \"MemberUin\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d35d4545\"\n }\n}",
|
800
800
|
"title": "查询CAM用户同步列表"
|
801
801
|
}
|
802
802
|
],
|
@@ -804,7 +804,7 @@
|
|
804
804
|
{
|
805
805
|
"document": "查询用户列表",
|
806
806
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListUsers\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-2sw22w3\"\n}",
|
807
|
-
"output": "{\n \"Response\": {\n \"TotalCounts\": 50,\n \"MaxResults\": 20,\n \"Users\": [\n {\n \"UserName\": \"
|
807
|
+
"output": "{\n \"Response\": {\n \"TotalCounts\": 50,\n \"MaxResults\": 20,\n \"Users\": [\n {\n \"UserName\": \"user1\",\n \"FirstName\": \"john\",\n \"LastName\": \"smith\",\n \"DisplayName\": \"john\",\n \"Description\": \"this is user\",\n \"Email\": \"test@example\",\n \"UserStatus\": \"Enabled\",\n \"UserType\": \"Manual\",\n \"UserId\": \"u-2s334e3***\",\n \"CreateTime\": \"2024-03-12 12:12:12\",\n \"UpdateTime\": \"2024-03-12 12:12:12\"\n }\n ],\n \"NextToken\": \"OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=\",\n \"IsTruncated\": true,\n \"RequestId\": \"e297543a-80de-4039-83c8-9d35d4545\"\n }\n}",
|
808
808
|
"title": "查询用户列表"
|
809
809
|
}
|
810
810
|
],
|
@@ -859,7 +859,7 @@
|
|
859
859
|
"RemovePermissionPolicyFromRoleConfiguration": [
|
860
860
|
{
|
861
861
|
"document": "为权限配置移除策略",
|
862
|
-
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemovePermissionPolicyFromRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-djw9dn3i****\",\n \"RoleConfigurationId\": \"rc-swidddws***\",\n \"RolePolicyType\": \"System\",\n \"RolePolicyName\": \"
|
862
|
+
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemovePermissionPolicyFromRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-djw9dn3i****\",\n \"RoleConfigurationId\": \"rc-swidddws***\",\n \"RolePolicyType\": \"System\",\n \"RolePolicyName\": \"policy1\"\n}",
|
863
863
|
"output": "{\n \"Response\": {\n \"RequestId\": \"2ccd7ed1-24b4-4882-8f4a-5580b430bce7\"\n }\n}",
|
864
864
|
"title": "为权限配置移除策略"
|
865
865
|
}
|
@@ -891,7 +891,7 @@
|
|
891
891
|
"UpdateCustomPolicyForRoleConfiguration": [
|
892
892
|
{
|
893
893
|
"document": "为权限配置修改自定义策略",
|
894
|
-
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateCustomPolicyForRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-fdk3o32kqw\",\n \"RoleConfigurationId\": \"rc-sin23wj29s\",\n \"CustomPolicyName\": \"
|
894
|
+
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateCustomPolicyForRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-fdk3o32kqw\",\n \"RoleConfigurationId\": \"rc-sin23wj29s\",\n \"CustomPolicyName\": \"policy1\",\n \"NewCustomPolicyDocument\": \"{\\\"statement\\\":{\\\"action\\\":[\\\"name/cvm:*\\\",\\\"name/vpc:*\\\",\\\"name/cos:*\\\",\\\"name/cmqtopic:*\\\",\\\"name/cmqqueue:*\\\"],\\\"effect\\\":\\\"allow\\\",\\\"resource\\\":\\\"*\\\"},\\\"version\\\":\\\"2.0\\\"}\"\n}",
|
895
895
|
"output": "{\n \"Response\": {\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}",
|
896
896
|
"title": "为权限配置修改自定义策略"
|
897
897
|
}
|
@@ -931,7 +931,7 @@
|
|
931
931
|
"UpdateOrganizationMembersPolicy": [
|
932
932
|
{
|
933
933
|
"document": "",
|
934
|
-
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateOrganizationMembersPolicy\n<公共请求参数>\n\n{\n \"MemberUins\": [\n 111111111111\n ],\n \"PolicyId\":
|
934
|
+
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateOrganizationMembersPolicy\n<公共请求参数>\n\n{\n \"MemberUins\": [\n 111111111111\n ],\n \"PolicyId\": 101,\n \"IdentityId\": 11,\n \"Description\": \"admin policy\"\n}",
|
935
935
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a4868f21-fa38-4815-8e48-596b17c1b37\"\n }\n}",
|
936
936
|
"title": "修改组织成员访问策略"
|
937
937
|
}
|
@@ -956,7 +956,7 @@
|
|
956
956
|
{
|
957
957
|
"document": "修改权限配置信息",
|
958
958
|
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-22m23mo2\",\n \"RoleConfigurationId\": \"rc-ai3n9si2m\",\n \"NewDescription\": \"this is role configuration\",\n \"NewSessionDuration\": 900,\n \"NewRelayState\": \"https://console.cloud.tencent.com\"\n}",
|
959
|
-
"output": "{\n \"Response\": {\n \"RoleConfigurationInfo\": {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"
|
959
|
+
"output": "{\n \"Response\": {\n \"RoleConfigurationInfo\": {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"conf1\",\n \"Description\": \"this is role configuration\",\n \"SessionDuration\": 900,\n \"RelayState\": \"https://console.cloud.tencent.com\",\n \"CreateTime\": \"2019-01-01 12:12:12\",\n \"UpdateTime\": \"2019-01-01 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}",
|
960
960
|
"title": "修改权限配置信息"
|
961
961
|
}
|
962
962
|
],
|
@@ -987,8 +987,8 @@
|
|
987
987
|
"UpdateUser": [
|
988
988
|
{
|
989
989
|
"document": "修改用户信息",
|
990
|
-
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateUser\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-343nh23kn\",\n \"UserId\": \"u-3324sfdds\",\n \"NewFirstName\": \"
|
991
|
-
"output": "{\n \"Response\": {\n \"UserInfo\": {\n \"UserName\": \"
|
990
|
+
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateUser\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-343nh23kn\",\n \"UserId\": \"u-3324sfdds\",\n \"NewFirstName\": \"john\",\n \"NewLastName\": \"smith\",\n \"NewDisplayName\": \"john\",\n \"NewDescription\": \"this is user.\",\n \"NewEmail\": \"test@example.com\"\n}",
|
991
|
+
"output": "{\n \"Response\": {\n \"UserInfo\": {\n \"UserName\": \"user1\",\n \"FirstName\": \"john\",\n \"LastName\": \"smith\",\n \"DisplayName\": \"john\",\n \"Description\": \"this is user\",\n \"Email\": \"test@example.com\",\n \"UserStatus\": \"Enabled\",\n \"UserType\": \"Manual\",\n \"UserId\": \"u-33sjadjsk\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-34545s45\"\n }\n}",
|
992
992
|
"title": "修改用户信息"
|
993
993
|
}
|
994
994
|
],
|
@@ -1608,13 +1608,13 @@
|
|
1608
1608
|
},
|
1609
1609
|
{
|
1610
1610
|
"disabled": false,
|
1611
|
-
"document": "
|
1611
|
+
"document": "查询范围内的请求总量",
|
1612
1612
|
"example": "100",
|
1613
1613
|
"member": "int64",
|
1614
1614
|
"name": "MetricCount",
|
1615
|
-
"output_required":
|
1615
|
+
"output_required": false,
|
1616
1616
|
"type": "int",
|
1617
|
-
"value_allowed_null":
|
1617
|
+
"value_allowed_null": false
|
1618
1618
|
}
|
1619
1619
|
],
|
1620
1620
|
"usage": "out"
|
@@ -1967,7 +1967,7 @@
|
|
1967
1967
|
{
|
1968
1968
|
"disabled": false,
|
1969
1969
|
"document": "私有域id: zone-xxxxxxxx",
|
1970
|
-
"example": "
|
1970
|
+
"example": "zone-xxxxxxxx",
|
1971
1971
|
"member": "string",
|
1972
1972
|
"name": "ZoneId",
|
1973
1973
|
"output_required": true,
|
@@ -2026,13 +2026,13 @@
|
|
2026
2026
|
},
|
2027
2027
|
{
|
2028
2028
|
"disabled": false,
|
2029
|
-
"document": "
|
2029
|
+
"document": "备注",
|
2030
2030
|
"example": "备注",
|
2031
2031
|
"member": "string",
|
2032
2032
|
"name": "Remark",
|
2033
|
-
"output_required":
|
2033
|
+
"output_required": false,
|
2034
2034
|
"type": "string",
|
2035
|
-
"value_allowed_null":
|
2035
|
+
"value_allowed_null": false
|
2036
2036
|
},
|
2037
2037
|
{
|
2038
2038
|
"disabled": false,
|
@@ -2076,23 +2076,23 @@
|
|
2076
2076
|
},
|
2077
2077
|
{
|
2078
2078
|
"disabled": false,
|
2079
|
-
"document": "绑定的关联账号的vpc
|
2079
|
+
"document": "绑定的关联账号的vpc列表",
|
2080
2080
|
"example": "[{Uin: \"1000783200\", UniqVpcId: \"vpc-ser4jo\", Region: \"ap-guangzhou\"}]",
|
2081
2081
|
"member": "AccountVpcInfoOutput",
|
2082
2082
|
"name": "AccountVpcSet",
|
2083
|
-
"output_required":
|
2083
|
+
"output_required": false,
|
2084
2084
|
"type": "list",
|
2085
|
-
"value_allowed_null":
|
2085
|
+
"value_allowed_null": false
|
2086
2086
|
},
|
2087
2087
|
{
|
2088
2088
|
"disabled": false,
|
2089
|
-
"document": "是否自定义TLD
|
2089
|
+
"document": "是否自定义TLD",
|
2090
2090
|
"example": "false",
|
2091
2091
|
"member": "bool",
|
2092
2092
|
"name": "IsCustomTld",
|
2093
|
-
"output_required":
|
2093
|
+
"output_required": false,
|
2094
2094
|
"type": "bool",
|
2095
|
-
"value_allowed_null":
|
2095
|
+
"value_allowed_null": false
|
2096
2096
|
},
|
2097
2097
|
{
|
2098
2098
|
"disabled": false,
|
@@ -2106,33 +2106,33 @@
|
|
2106
2106
|
},
|
2107
2107
|
{
|
2108
2108
|
"disabled": false,
|
2109
|
-
"document": "
|
2109
|
+
"document": "转发规则名称",
|
2110
2110
|
"example": "转发规则名",
|
2111
2111
|
"member": "string",
|
2112
2112
|
"name": "ForwardRuleName",
|
2113
|
-
"output_required":
|
2113
|
+
"output_required": false,
|
2114
2114
|
"type": "string",
|
2115
|
-
"value_allowed_null":
|
2115
|
+
"value_allowed_null": false
|
2116
2116
|
},
|
2117
2117
|
{
|
2118
2118
|
"disabled": false,
|
2119
|
-
"document": "转发规则类型:云上到云下,DOWN;云下到云上,UP,目前只支持DOWN
|
2119
|
+
"document": "转发规则类型:云上到云下,DOWN;云下到云上,UP,目前只支持DOWN",
|
2120
2120
|
"example": "DOWN",
|
2121
2121
|
"member": "string",
|
2122
2122
|
"name": "ForwardRuleType",
|
2123
|
-
"output_required":
|
2123
|
+
"output_required": false,
|
2124
2124
|
"type": "string",
|
2125
|
-
"value_allowed_null":
|
2125
|
+
"value_allowed_null": false
|
2126
2126
|
},
|
2127
2127
|
{
|
2128
2128
|
"disabled": false,
|
2129
|
-
"document": "
|
2129
|
+
"document": "转发的地址",
|
2130
2130
|
"example": "10.0.23.41:53,10.0.23.42:53,",
|
2131
2131
|
"member": "string",
|
2132
2132
|
"name": "ForwardAddress",
|
2133
|
-
"output_required":
|
2133
|
+
"output_required": false,
|
2134
2134
|
"type": "string",
|
2135
|
-
"value_allowed_null":
|
2135
|
+
"value_allowed_null": false
|
2136
2136
|
},
|
2137
2137
|
{
|
2138
2138
|
"disabled": false,
|
@@ -2146,13 +2146,13 @@
|
|
2146
2146
|
},
|
2147
2147
|
{
|
2148
2148
|
"disabled": false,
|
2149
|
-
"document": "已删除的vpc
|
2149
|
+
"document": "已删除的vpc",
|
2150
2150
|
"example": "[{UniqVpcId: \"vpc-ser4jo\", Region: \"ap-guangzhou\"}]",
|
2151
2151
|
"member": "VpcInfo",
|
2152
2152
|
"name": "DeletedVpcSet",
|
2153
2153
|
"output_required": false,
|
2154
2154
|
"type": "list",
|
2155
|
-
"value_allowed_null":
|
2155
|
+
"value_allowed_null": false
|
2156
2156
|
}
|
2157
2157
|
],
|
2158
2158
|
"usage": "out"
|
@@ -2222,13 +2222,13 @@
|
|
2222
2222
|
},
|
2223
2223
|
{
|
2224
2224
|
"disabled": false,
|
2225
|
-
"document": "MX优先级:记录类型为MX时必填。取值范围:5,10,15,20,30,40,50
|
2225
|
+
"document": "MX优先级:记录类型为MX时必填。取值范围:5,10,15,20,30,40,50",
|
2226
2226
|
"example": "0",
|
2227
2227
|
"member": "int64",
|
2228
2228
|
"name": "MX",
|
2229
|
-
"output_required":
|
2229
|
+
"output_required": false,
|
2230
2230
|
"type": "int",
|
2231
|
-
"value_allowed_null":
|
2231
|
+
"value_allowed_null": false
|
2232
2232
|
},
|
2233
2233
|
{
|
2234
2234
|
"disabled": false,
|
@@ -2282,23 +2282,23 @@
|
|
2282
2282
|
},
|
2283
2283
|
{
|
2284
2284
|
"disabled": false,
|
2285
|
-
"document": "0暂停,1
|
2285
|
+
"document": "0暂停,1启用",
|
2286
2286
|
"example": "是否暂停",
|
2287
2287
|
"member": "uint64",
|
2288
2288
|
"name": "Enabled",
|
2289
|
-
"output_required":
|
2289
|
+
"output_required": false,
|
2290
2290
|
"type": "int",
|
2291
|
-
"value_allowed_null":
|
2291
|
+
"value_allowed_null": false
|
2292
2292
|
},
|
2293
2293
|
{
|
2294
2294
|
"disabled": false,
|
2295
|
-
"document": "
|
2295
|
+
"document": "备注",
|
2296
2296
|
"example": "这是备注",
|
2297
2297
|
"member": "string",
|
2298
2298
|
"name": "Remark",
|
2299
2299
|
"output_required": false,
|
2300
2300
|
"type": "string",
|
2301
|
-
"value_allowed_null":
|
2301
|
+
"value_allowed_null": false
|
2302
2302
|
}
|
2303
2303
|
],
|
2304
2304
|
"usage": "out"
|
@@ -12,7 +12,7 @@
|
|
12
12
|
{
|
13
13
|
"document": "查询产品支持的地域列表",
|
14
14
|
"input": "POST / HTTP/1.1\nHost: region.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegions\n<公共请求参数>\n\n{\n \"Product\": \"cvm\",\n \"Scene\": 1\n}",
|
15
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 21,\n \"RequestId\": \"2b41c59d-93c8-43e2-a2f0-6c5df9735d21\",\n \"RegionSet\": [\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-guangzhou\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"华南地区(广州)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-shanghai\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"华东地区(上海)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-nanjing\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"华东地区(南京)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-beijing\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"华北地区(北京)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-chengdu\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"西南地区(成都)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-chongqing\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"西南地区(重庆)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-xian-ec\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"西北地区(西安)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-hongkong\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"港澳台地区(中国香港)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-guiyang\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"西南地区(贵阳)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-seoul\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"亚太东北(首尔)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-tokyo\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"亚太东北(东京)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-singapore\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"亚太东南(新加坡)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-bangkok\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"亚太东南(曼谷)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-jakarta\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"亚太东南(雅加达)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"na-siliconvalley\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"美国西部(硅谷)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"eu-frankfurt\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"欧洲地区(法兰克福)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"
|
15
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 21,\n \"RequestId\": \"2b41c59d-93c8-43e2-a2f0-6c5df9735d21\",\n \"RegionSet\": [\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-guangzhou\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"华南地区(广州)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-shanghai\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"华东地区(上海)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-nanjing\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"华东地区(南京)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-beijing\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"华北地区(北京)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-chengdu\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"西南地区(成都)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-chongqing\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"西南地区(重庆)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-xian-ec\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"西北地区(西安)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-hongkong\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"港澳台地区(中国香港)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-guiyang\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"西南地区(贵阳)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-seoul\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"亚太东北(首尔)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-tokyo\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"亚太东北(东京)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-singapore\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"亚太东南(新加坡)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-bangkok\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"亚太东南(曼谷)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"ap-jakarta\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"亚太东南(雅加达)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"na-siliconvalley\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"美国西部(硅谷)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"eu-frankfurt\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"欧洲地区(法兰克福)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"na-ashburn\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"美国东部(弗吉尼亚)\"\n },\n {\n \"RegionIdMC\": null,\n \"LocationMC\": null,\n \"RegionState\": \"AVAILABLE\",\n \"RegionNameMC\": null,\n \"Region\": \"sa-saopaulo\",\n \"RegionTypeMC\": null,\n \"RegionName\": \"南美地区(圣保罗)\"\n }\n ]\n }\n}",
|
16
16
|
"title": "查询产品支持的地域列表"
|
17
17
|
}
|
18
18
|
],
|
tccli/services/taf/taf_client.py
CHANGED
@@ -69,6 +69,58 @@ def doManagePortraitRisk(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
+
def doManageDeviceRisk(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.TafClient(cred, g_param[OptionsDefine.Region], profile)
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
+
model = models.ManageDeviceRiskRequest()
|
102
|
+
model.from_json_string(json.dumps(args))
|
103
|
+
start_time = time.time()
|
104
|
+
while True:
|
105
|
+
rsp = client.ManageDeviceRisk(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
|
CLIENT_MAP = {
|
73
125
|
"v20200210": taf_client_v20200210,
|
74
126
|
|
@@ -81,6 +133,7 @@ MODELS_MAP = {
|
|
81
133
|
|
82
134
|
ACTION_MAP = {
|
83
135
|
"ManagePortraitRisk": doManagePortraitRisk,
|
136
|
+
"ManageDeviceRisk": doManageDeviceRisk,
|
84
137
|
|
85
138
|
}
|
86
139
|
|