tccli 3.0.1279.1__py2.py3-none-any.whl → 3.0.1281.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/acp/v20220105/api.json +68 -65
- tccli/services/aiart/v20221229/api.json +1 -1
- tccli/services/antiddos/v20200309/api.json +5 -1
- tccli/services/apm/v20210622/api.json +32 -32
- tccli/services/apm/v20210622/examples.json +1 -1
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/billing/v20180709/api.json +550 -529
- tccli/services/billing/v20180709/examples.json +4 -4
- tccli/services/cat/v20180409/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +15 -1
- tccli/services/cfg/v20210820/api.json +36 -23
- tccli/services/cfg/v20210820/examples.json +11 -11
- tccli/services/cfs/v20190719/examples.json +3 -3
- tccli/services/ciam/v20220331/api.json +111 -111
- tccli/services/ciam/v20220331/examples.json +8 -8
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/controlcenter/controlcenter_client.py +212 -0
- tccli/services/controlcenter/v20230110/api.json +521 -3
- tccli/services/controlcenter/v20230110/examples.json +32 -0
- tccli/services/csip/v20221121/api.json +66 -6
- tccli/services/cvm/cvm_client.py +212 -0
- tccli/services/cvm/v20170312/api.json +1076 -272
- tccli/services/cvm/v20170312/examples.json +34 -2
- tccli/services/cynosdb/v20190107/api.json +13 -3
- tccli/services/dbbrain/v20191016/api.json +12 -8
- tccli/services/dbbrain/v20210527/api.json +20 -20
- tccli/services/dlc/v20210125/api.json +19 -0
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/domain/v20180808/api.json +3 -3
- tccli/services/emr/v20190103/api.json +11 -0
- tccli/services/es/v20180416/api.json +13 -0
- tccli/services/goosefs/v20220519/api.json +16 -15
- tccli/services/goosefs/v20220519/examples.json +2 -2
- tccli/services/gwlb/v20240906/api.json +22 -3
- tccli/services/gwlb/v20240906/examples.json +1 -1
- tccli/services/ims/v20201229/api.json +1 -1
- tccli/services/iotcloud/v20210408/api.json +243 -245
- tccli/services/iotcloud/v20210408/examples.json +64 -64
- tccli/services/keewidb/v20220308/api.json +94 -94
- tccli/services/lcic/v20220817/api.json +110 -63
- tccli/services/lcic/v20220817/examples.json +6 -6
- tccli/services/live/v20180801/api.json +302 -288
- tccli/services/lke/lke_client.py +84 -84
- tccli/services/lke/v20231130/api.json +220 -164
- tccli/services/lke/v20231130/examples.json +16 -16
- tccli/services/lowcode/v20210108/api.json +120 -11
- tccli/services/lowcode/v20210108/examples.json +9 -9
- tccli/services/mariadb/v20170312/api.json +7 -7
- tccli/services/mariadb/v20170312/examples.json +1 -1
- tccli/services/mongodb/v20190725/api.json +7 -6
- tccli/services/mongodb/v20190725/examples.json +2 -2
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/mqtt/mqtt_client.py +110 -4
- tccli/services/mqtt/v20240516/api.json +132 -0
- tccli/services/mqtt/v20240516/examples.json +22 -0
- tccli/services/ocr/v20181119/api.json +7 -7
- tccli/services/partners/partners_client.py +61 -8
- tccli/services/partners/v20180321/api.json +110 -0
- tccli/services/partners/v20180321/examples.json +8 -0
- tccli/services/pts/v20210728/api.json +44 -6
- tccli/services/redis/v20180412/api.json +66 -66
- tccli/services/rum/v20210622/api.json +90 -0
- tccli/services/sms/v20190711/examples.json +1 -1
- tccli/services/sms/v20210111/examples.json +1 -1
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tag/v20180813/examples.json +1 -1
- tccli/services/tat/v20201028/api.json +141 -128
- tccli/services/tat/v20201028/examples.json +12 -12
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +93 -0
- tccli/services/tdmq/v20200217/examples.json +8 -0
- tccli/services/teo/v20220901/api.json +4 -4
- tccli/services/tke/v20180525/api.json +313 -313
- tccli/services/tke/v20220501/api.json +2 -2
- tccli/services/tms/v20201229/api.json +9 -0
- tccli/services/tsf/v20180326/api.json +884 -884
- tccli/services/vdb/v20230616/api.json +12 -12
- tccli/services/waf/v20180125/api.json +7 -7
- tccli/services/waf/v20180125/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +107 -0
- {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/RECORD +86 -86
- {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/license_files/LICENSE +0 -0
@@ -33,7 +33,7 @@
|
|
33
33
|
"CreateRegisterCode": [
|
34
34
|
{
|
35
35
|
"document": "创建注册码-带参数。",
|
36
|
-
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRegisterCode\n<公共请求参数>\n\n{\n \"Description\": \"webserver\",\n \"InstanceNamePrefix\": \"webserver\",\n \"RegisterLimit\":
|
36
|
+
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRegisterCode\n<公共请求参数>\n\n{\n \"Description\": \"webserver\",\n \"InstanceNamePrefix\": \"webserver\",\n \"RegisterLimit\": 10,\n \"EffectiveTime\": 4,\n \"IpAddressRange\": \"192.168.10.1/10\"\n}",
|
37
37
|
"output": "{\n \"Response\": {\n \"RegisterCodeId\": \"9b5rb72b-418f-4a81-b32e-f8bc80eef678\",\n \"RegisterCodeValue\": \"21e9b871e123427dbee18b0cf3e0d766f91d81a9902843b7b046d7b9ffb9d45a\",\n \"RequestId\": \"3f5bf8de-a51a-4ac0-8d95-ad56702cab1f\"\n }\n}",
|
38
38
|
"title": "创建注册码-带参数"
|
39
39
|
},
|
@@ -96,25 +96,25 @@
|
|
96
96
|
{
|
97
97
|
"document": "",
|
98
98
|
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCommands\n<公共请求参数>\n\n{\n \"CommandIds\": [\n \"cmd-dvstpcyy\"\n ],\n \"Offset\": 0,\n \"Limit\": 20\n}",
|
99
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"eb973a12-71e3-4c0c-b1d8-4b863e5f5daf\",\n \"TotalCount\": 1,\n \"CommandSet\": [\n {\n \"CommandId\": \"cmd-dvstpcyy\",\n \"CommandName\": \"run-command\",\n \"Description\": \"whoami\",\n \"FormattedDescription\": \"
|
99
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"eb973a12-71e3-4c0c-b1d8-4b863e5f5daf\",\n \"TotalCount\": 1,\n \"CommandSet\": [\n {\n \"CommandId\": \"cmd-dvstpcyy\",\n \"CommandName\": \"run-command\",\n \"Description\": \"whoami\",\n \"FormattedDescription\": \"\",\n \"CreatedBy\": \"USER\",\n \"Content\": \"d2hvYW1p\",\n \"CommandType\": \"SHELL\",\n \"WorkingDirectory\": \"/root/\",\n \"Timeout\": 60,\n \"EnableParameter\": false,\n \"DefaultParameters\": \"{\\\"varA\\\": \\\"222\\\"}\",\n \"DefaultParameterConfs\": [],\n \"Scenes\": [],\n \"Username\": \"root\",\n \"Tags\": [\n {\n \"Value\": \"test-key\",\n \"Key\": \"test-value\"\n }\n ],\n \"CreatedTime\": \"2020-11-02T02:48:11+00:00\",\n \"UpdatedTime\": \"2020-11-02T02:48:11+00:00\",\n \"OutputCOSBucketUrl\": \"https://BucketName-123454321.cos.ap-beijing.myqcloud.com\",\n \"OutputCOSKeyPrefix\": \"logs\"\n }\n ]\n }\n}",
|
100
100
|
"title": "使用 CommandId 查询命令"
|
101
101
|
},
|
102
102
|
{
|
103
103
|
"document": "",
|
104
104
|
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCommands\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Name\": \"created-by\",\n \"Values\": [\n \"USER\"\n ]\n }\n ]\n}",
|
105
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"6b215093-e1f6-4803-b84a-a230849e88d1\",\n \"TotalCount\": 2,\n \"CommandSet\": [\n {\n \"CommandId\": \"cmd-hb2q34lk\",\n \"CommandName\": \"second-command\",\n \"Description\": \"ps\",\n \"FormattedDescription\": \"
|
105
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6b215093-e1f6-4803-b84a-a230849e88d1\",\n \"TotalCount\": 2,\n \"CommandSet\": [\n {\n \"CommandId\": \"cmd-hb2q34lk\",\n \"CommandName\": \"second-command\",\n \"Description\": \"ps\",\n \"FormattedDescription\": \"\",\n \"DefaultParameterConfs\": [],\n \"Scenes\": [],\n \"CreatedBy\": \"USER\",\n \"Content\": \"cHM=\",\n \"CommandType\": \"SHELL\",\n \"WorkingDirectory\": \"/root/\",\n \"Timeout\": 60,\n \"EnableParameter\": true,\n \"DefaultParameters\": \"{\\\"varA\\\": \\\"222\\\"}\",\n \"Username\": \"root\",\n \"Tags\": [\n {\n \"Value\": \"test-key\",\n \"Key\": \"test-value\"\n }\n ],\n \"CreatedTime\": \"2020-10-30T07:19:52+00:00\",\n \"UpdatedTime\": \"2020-10-30T07:19:52+00:00\",\n \"OutputCOSBucketUrl\": \"https://BucketName-123454321.cos.ap-beijing.myqcloud.com\",\n \"OutputCOSKeyPrefix\": \"logs\"\n }\n ]\n }\n}",
|
106
106
|
"title": "使用 created-by Filter 查询"
|
107
107
|
},
|
108
108
|
{
|
109
109
|
"document": "",
|
110
110
|
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCommands\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 20,\n \"Filters\": [\n {\n \"Name\": \"command-name\",\n \"Values\": [\n \"second-command\",\n \"first-command\"\n ]\n }\n ]\n}",
|
111
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"6b215093-e1f6-4803-b84a-a230849e88d1\",\n \"TotalCount\": 2,\n \"CommandSet\": [\n {\n \"CommandId\": \"cmd-hb2q34lk\",\n \"CommandName\": \"second-command\",\n \"Description\": \"ps\",\n \"FormattedDescription\": \"
|
111
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6b215093-e1f6-4803-b84a-a230849e88d1\",\n \"TotalCount\": 2,\n \"CommandSet\": [\n {\n \"CommandId\": \"cmd-hb2q34lk\",\n \"CommandName\": \"second-command\",\n \"Description\": \"ps\",\n \"FormattedDescription\": \"\",\n \"DefaultParameterConfs\": [],\n \"Scenes\": [],\n \"CreatedBy\": \"USER\",\n \"Content\": \"cHM=\",\n \"CommandType\": \"SHELL\",\n \"WorkingDirectory\": \"/root/\",\n \"Timeout\": 60,\n \"EnableParameter\": false,\n \"DefaultParameters\": \"{\\\"varA\\\": \\\"222\\\"}\",\n \"Username\": \"root\",\n \"Tags\": [\n {\n \"Value\": \"test-key\",\n \"Key\": \"test-value\"\n }\n ],\n \"CreatedTime\": \"2020-10-30T07:19:52+00:00\",\n \"UpdatedTime\": \"2020-10-30T07:19:52+00:00\",\n \"OutputCOSBucketUrl\": \"https://BucketName-123454321.cos.ap-beijing.myqcloud.com\",\n \"OutputCOSKeyPrefix\": \"aa/bb/cc\"\n },\n {\n \"CommandId\": \"cmd-63usjhmq\",\n \"CommandName\": \"first-command\",\n \"Description\": \"hello world!\",\n \"FormattedDescription\": \"\",\n \"DefaultParameterConfs\": [],\n \"Scenes\": [],\n \"CreatedBy\": \"USER\",\n \"Content\": \"cHM=\",\n \"CommandType\": \"SHELL\",\n \"WorkingDirectory\": \"/root\",\n \"Timeout\": 600,\n \"EnableParameter\": false,\n \"DefaultParameters\": \"{\\\"varA\\\": \\\"222\\\"}\",\n \"Username\": \"root\",\n \"Tags\": [\n {\n \"Value\": \"test-key\",\n \"Key\": \"test-value\"\n }\n ],\n \"CreatedTime\": \"2020-10-26T11:26:07+00:00\",\n \"UpdatedTime\": \"2020-11-09T08:12:45+00:00\",\n \"OutputCOSBucketUrl\": \"https://BucketName-123454321.cos.ap-beijing.myqcloud.com\",\n \"OutputCOSKeyPrefix\": \"logs\"\n }\n ]\n }\n}",
|
112
112
|
"title": "使用 command-name Filter 查询"
|
113
113
|
},
|
114
114
|
{
|
115
115
|
"document": "",
|
116
116
|
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCommands\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"test-value\"\n ],\n \"Name\": \"tag:test-key\"\n }\n ]\n}",
|
117
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"33d3d954-f73a-4a7f-869b-8792bc7a6f13\",\n \"TotalCount\": 1,\n \"CommandSet\": [\n {\n \"CommandId\": \"cmd-38ps9q4p\",\n \"CommandName\": \"tag-test-1\",\n \"Description\": \"\",\n \"FormattedDescription\": \"
|
117
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"33d3d954-f73a-4a7f-869b-8792bc7a6f13\",\n \"TotalCount\": 1,\n \"CommandSet\": [\n {\n \"CommandId\": \"cmd-38ps9q4p\",\n \"CommandName\": \"tag-test-1\",\n \"Description\": \"\",\n \"FormattedDescription\": \"\",\n \"DefaultParameterConfs\": [],\n \"Scenes\": [],\n \"CreatedBy\": \"USER\",\n \"Content\": \"cHMK\",\n \"CommandType\": \"SHELL\",\n \"WorkingDirectory\": \"/root\",\n \"Timeout\": 60,\n \"EnableParameter\": false,\n \"DefaultParameters\": \"{\\\"varA\\\": \\\"222\\\"}\",\n \"Username\": \"root\",\n \"Tags\": [\n {\n \"Key\": \"test-key\",\n \"Value\": \"test-value\"\n }\n ],\n \"CreatedTime\": \"2021-05-12T02:49:04Z\",\n \"UpdatedTime\": \"2021-05-12T02:49:04Z\",\n \"OutputCOSBucketUrl\": \"https://BucketName-123454321.cos.ap-beijing.myqcloud.com\",\n \"OutputCOSKeyPrefix\": \"images\"\n }\n ]\n }\n}",
|
118
118
|
"title": "使用tag:tag-key Filter 查询命令"
|
119
119
|
}
|
120
120
|
],
|
@@ -138,7 +138,7 @@
|
|
138
138
|
{
|
139
139
|
"document": "",
|
140
140
|
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInvokerRecords\n<公共请求参数>\n\n{\n \"InvokerIds\": [\n \"ivk-b7s3qa5l\"\n ],\n \"Offset\": 0,\n \"Limit\": 2\n}",
|
141
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"0398dcea-b3de-4ec9-8e78-976191e0a94f\",\n \"TotalCount\":
|
141
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"0398dcea-b3de-4ec9-8e78-976191e0a94f\",\n \"TotalCount\": 2,\n \"InvokerRecordSet\": [\n {\n \"InvokerId\": \"ivk-b7s3qa5l\",\n \"Reason\": \"start an invocation at scheduled time.\",\n \"InvocationId\": \"inv-l9l4orf1\",\n \"Result\": \"SUCCESS\",\n \"InvokeTime\": \"2021-09-06T09:33:05Z\"\n },\n {\n \"InvokerId\": \"ivk-b7s3qa5l\",\n \"Reason\": \"start an invocation at scheduled time.\",\n \"InvocationId\": \"inv-7ojgezbd\",\n \"Result\": \"SUCCESS\",\n \"InvokeTime\": \"2021-09-06T09:30:05Z\"\n }\n ]\n }\n}",
|
142
142
|
"title": "查询执行器执行记录"
|
143
143
|
}
|
144
144
|
],
|
@@ -162,14 +162,14 @@
|
|
162
162
|
{
|
163
163
|
"document": "此接口用于查询 TAT 产品后台地域列表。 RegionState 为 AVAILABLE,代表该地域的 TAT 后台服务已经可用;未返回,代表该地域的 TAT 后台服务尚不可用",
|
164
164
|
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegions\n<公共请求参数>\n\n{}",
|
165
|
-
"output": "{\n \"Response\": {\n \"TotalCount\":
|
165
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 12,\n \"RegionSet\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"RegionName\": \"广州\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-nanjing\",\n \"RegionName\": \"南京\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-shanghai\",\n \"RegionName\": \"上海\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-hongkong\",\n \"RegionName\": \"中国香港\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-beijing\",\n \"RegionName\": \"北京\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-singapore\",\n \"RegionName\": \"新加坡\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"na-siliconvalley\",\n \"RegionName\": \"硅谷\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-chengdu\",\n \"RegionName\": \"成都\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"eu-frankfurt\",\n \"RegionName\": \"法兰克福\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-seoul\",\n \"RegionName\": \"首尔\",\n \"RegionState\": \"AVAILABLE\"\n },\n {\n \"Region\": \"ap-chongqing\",\n \"RegionName\": \"重庆\",\n \"RegionState\": \"AVAILABLE\"\n }\n ],\n \"RequestId\": \"6fb7f9db-b7da-4cb8-a912-3a3b1690f3a6\"\n }\n}",
|
166
166
|
"title": "查询地域列表"
|
167
167
|
}
|
168
168
|
],
|
169
169
|
"DescribeRegisterCodes": [
|
170
170
|
{
|
171
171
|
"document": "根据注册码ID查询注册码。",
|
172
|
-
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegisterCodes\n<公共请求参数>\n\n{\n \"RegisterCodeIds\": [\n \"8cca2d3b-7ac3-422a-98f0-8a5bc17cdc38\"\n ],\n \"Offset\": 0,\n \"Limit\":
|
172
|
+
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegisterCodes\n<公共请求参数>\n\n{\n \"RegisterCodeIds\": [\n \"8cca2d3b-7ac3-422a-98f0-8a5bc17cdc38\"\n ],\n \"Offset\": 0,\n \"Limit\": 1\n}",
|
173
173
|
"output": "{\n \"Response\": {\n \"RegisterCodeSet\": [\n {\n \"CreatedTime\": \"2024-10-26T08:50:45Z\",\n \"Description\": \"HAI instance register code, attach hai-8sclmptu\",\n \"Enabled\": false,\n \"ExpiredTime\": \"2024-10-26T12:50:45Z\",\n \"InstanceNamePrefix\": \"HAI-Instance-hai-8sclmptu\",\n \"IpAddressRange\": \"\",\n \"RegisterCodeId\": \"8cca2d3b-7ac3-422a-98f0-8a5bc17cdc38\",\n \"RegisterLimit\": 10,\n \"RegisteredCount\": 1,\n \"UpdatedTime\": \"2024-10-26T08:50:45Z\"\n }\n ],\n \"RequestId\": \"e0f011ac-6949-4726-a7d6-b28540f9d729\",\n \"TotalCount\": 1\n }\n}",
|
174
174
|
"title": "根据注册码ID查询注册码"
|
175
175
|
}
|
@@ -177,14 +177,14 @@
|
|
177
177
|
"DescribeRegisterInstances": [
|
178
178
|
{
|
179
179
|
"document": "根据Filters查询托管实例。",
|
180
|
-
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegisterInstances\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"instance-name\",\n \"Values\": [\n \"WebServer-01\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\":
|
181
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RegisterInstanceSet\": [\n {\n \"RegisterCodeId\": \"
|
180
|
+
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegisterInstances\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"instance-name\",\n \"Values\": [\n \"WebServer-01\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 1\n}",
|
181
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RegisterInstanceSet\": [\n {\n \"RegisterCodeId\": \"d0b7xxxx-a6xx-40x9-898x-44c9f508axxx\",\n \"InstanceId\": \"rins-uf673dgi\",\n \"InstanceName\": \"WebServer-01\",\n \"MachineId\": \"22c4dvvv-3ae9-4ff3-8331-d44147c96f8b\",\n \"SystemName\": \"Windows\",\n \"HostName\": \"webserver01\",\n \"LocalIp\": \"10.0.0.1\",\n \"PublicKey\": \"-----BEGIN RSA PUBLIC KEY-----\\nAAAAAAAAAQEA1vVOon7U12dLFl7AOZjGnfWSMJ4rhHAagLne85Qbyn7rrow90bZF\\ngsO9cpUfljliymtGAe1ZxkZZAWbwYeiS+x3KMO3rsbaXZtb9CiPSuMmyCcoyNRWy\\nztLhIAHz6TFdoYYPdepY/HrL1rppGaVvUT6ufZrWIw2wF4KzPsIwGmfKYDrP+JOd\\nfxkdewMwaFUP8xotqF+qi6YVbBMYSEGQyU9n42FTNxHMsLrBf1yPIcyaD+itWbWk\\nyG0KcHTF2gbtgHqGV9wkc5jcqJYK3iJ1bQgEIWZ1lThRncOnHKHmSEnQ/XD5+6Hi\\nLdVILVm0Gu8cnelE34kTcIqUAIQcB9wJBBBBBBBB\\n-----END RSA PUBLIC KEY-----\\n\",\n \"Status\": \"Online\",\n \"CreatedTime\": \"2020-09-22T08:00:00Z\",\n \"UpdatedTime\": \"2020-09-22T08:00:00Z\"\n }\n ],\n \"RequestId\": \"e28b9a8c-d7d3-4a12-bf8a-0123456789ab\"\n }\n}",
|
182
182
|
"title": "根据Filters查询托管实例"
|
183
183
|
},
|
184
184
|
{
|
185
185
|
"document": "根据托管实例ID查询托管实例。",
|
186
|
-
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegisterInstances\n<公共请求参数>\n\n{\n \"InstanceIds\": [\n \"rins-uf673dgi\"\n ],\n \"Offset\": 0,\n \"Limit\":
|
187
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RegisterInstanceSet\": [\n {\n \"RegisterCodeId\": \"
|
186
|
+
"input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegisterInstances\n<公共请求参数>\n\n{\n \"InstanceIds\": [\n \"rins-uf673dgi\"\n ],\n \"Offset\": 0,\n \"Limit\": 1\n}",
|
187
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RegisterInstanceSet\": [\n {\n \"RegisterCodeId\": \"d0b7xxxx-a6xx-40x9-898x-44c9f508axxx\",\n \"InstanceId\": \"rins-uf673dgi\",\n \"InstanceName\": \"WebServer-01\",\n \"MachineId\": \"22c4dvvv-3ae9-4ff3-8331-d44147c96f8b\",\n \"SystemName\": \"Windows\",\n \"HostName\": \"webserver01\",\n \"LocalIp\": \"10.0.0.1\",\n \"PublicKey\": \"-----BEGIN RSA PUBLIC KEY-----\\nAAAAAAAAAQEA1vVOon7U12dLFl7AOZjGnfWSMJ4rhHAagLne85Qbyn7rrow90bZF\\ngsO9cpUfljliymtGAe1ZxkZZAWbwYeiS+x3KMO3rsbaXZtb9CiPSuMmyCcoyNRWy\\nztLhIAHz6TFdoYYPdepY/HrL1rppGaVvUT6ufZrWIw2wF4KzPsIwGmfKYDrP+JOd\\nfxkdewMwaFUP8xotqF+qi6YVbBMYSEGQyU9n42FTNxHMsLrBf1yPIcyaD+itWbWk\\nyG0KcHTF2gbtgHqGV9wkc5jcqJYK3iJ1bQgEIWZ1lThRncOnHKHmSEnQ/XD5+6Hi\\nLdVILVm0Gu8cnelE34kTcIqUAIQcB9wJBBBBBBBB\\n-----END RSA PUBLIC KEY-----\\n\",\n \"Status\": \"Online\",\n \"CreatedTime\": \"2020-09-22T08:00:00Z\",\n \"UpdatedTime\": \"2020-09-22T08:00:00Z\"\n }\n ],\n \"RequestId\": \"e28b9a8c-d7d3-4a12-bf8a-0123456789ab\"\n }\n}",
|
188
188
|
"title": "根据托管实例ID查询托管实例"
|
189
189
|
}
|
190
190
|
],
|
@@ -4541,6 +4541,58 @@ def doDescribeRocketMQVipInstances(args, parsed_globals):
|
|
4541
4541
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
4542
|
|
4543
4543
|
|
4544
|
+
def doDescribeRocketMQTopUsages(args, parsed_globals):
|
4545
|
+
g_param = parse_global_arg(parsed_globals)
|
4546
|
+
|
4547
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4548
|
+
cred = credential.CVMRoleCredential()
|
4549
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4550
|
+
cred = credential.STSAssumeRoleCredential(
|
4551
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4552
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4553
|
+
)
|
4554
|
+
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):
|
4555
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4556
|
+
else:
|
4557
|
+
cred = credential.Credential(
|
4558
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4559
|
+
)
|
4560
|
+
http_profile = HttpProfile(
|
4561
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4562
|
+
reqMethod="POST",
|
4563
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4564
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4565
|
+
)
|
4566
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4567
|
+
if g_param[OptionsDefine.Language]:
|
4568
|
+
profile.language = g_param[OptionsDefine.Language]
|
4569
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4570
|
+
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
4571
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4572
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4573
|
+
model = models.DescribeRocketMQTopUsagesRequest()
|
4574
|
+
model.from_json_string(json.dumps(args))
|
4575
|
+
start_time = time.time()
|
4576
|
+
while True:
|
4577
|
+
rsp = client.DescribeRocketMQTopUsages(model)
|
4578
|
+
result = rsp.to_json_string()
|
4579
|
+
try:
|
4580
|
+
json_obj = json.loads(result)
|
4581
|
+
except TypeError as e:
|
4582
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4583
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4584
|
+
break
|
4585
|
+
cur_time = time.time()
|
4586
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4587
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4588
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4589
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4590
|
+
else:
|
4591
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4592
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4593
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4594
|
+
|
4595
|
+
|
4544
4596
|
def doVerifyRocketMQConsume(args, parsed_globals):
|
4545
4597
|
g_param = parse_global_arg(parsed_globals)
|
4546
4598
|
|
@@ -7915,6 +7967,7 @@ ACTION_MAP = {
|
|
7915
7967
|
"ModifyRocketMQInstanceSpec": doModifyRocketMQInstanceSpec,
|
7916
7968
|
"ImportRocketMQConsumerGroups": doImportRocketMQConsumerGroups,
|
7917
7969
|
"DescribeRocketMQVipInstances": doDescribeRocketMQVipInstances,
|
7970
|
+
"DescribeRocketMQTopUsages": doDescribeRocketMQTopUsages,
|
7918
7971
|
"VerifyRocketMQConsume": doVerifyRocketMQConsume,
|
7919
7972
|
"ModifyRabbitMQPermission": doModifyRabbitMQPermission,
|
7920
7973
|
"DescribeAMQPClusters": doDescribeAMQPClusters,
|
@@ -693,6 +693,13 @@
|
|
693
693
|
"output": "DescribeRocketMQSubscriptionsResponse",
|
694
694
|
"status": "online"
|
695
695
|
},
|
696
|
+
"DescribeRocketMQTopUsages": {
|
697
|
+
"document": "用于获取RocketMQ指标排序列表,比如集群实例下占用存储空间最多的主题排序。",
|
698
|
+
"input": "DescribeRocketMQTopUsagesRequest",
|
699
|
+
"name": "获取 RocketMQ 集群相关指标排序列表",
|
700
|
+
"output": "DescribeRocketMQTopUsagesResponse",
|
701
|
+
"status": "online"
|
702
|
+
},
|
696
703
|
"DescribeRocketMQTopicMsgs": {
|
697
704
|
"document": "rocketmq 消息查询",
|
698
705
|
"input": "DescribeRocketMQTopicMsgsRequest",
|
@@ -10859,6 +10866,71 @@
|
|
10859
10866
|
],
|
10860
10867
|
"type": "object"
|
10861
10868
|
},
|
10869
|
+
"DescribeRocketMQTopUsagesRequest": {
|
10870
|
+
"document": "DescribeRocketMQTopUsages请求参数结构体",
|
10871
|
+
"members": [
|
10872
|
+
{
|
10873
|
+
"disabled": false,
|
10874
|
+
"document": "集群ID",
|
10875
|
+
"example": "rocketmq-xxxxx",
|
10876
|
+
"member": "string",
|
10877
|
+
"name": "ClusterId",
|
10878
|
+
"required": true,
|
10879
|
+
"type": "string"
|
10880
|
+
},
|
10881
|
+
{
|
10882
|
+
"disabled": false,
|
10883
|
+
"document": "指标名称,支持以下:\nconsumeLag,消费组堆积数量\ndeadLetterCount,死信数量\ntopicRateIn, Topic生产速率\ntopicRateOut,Topic消费速率\ntopicStorageSize,Topic存储空间\ntopicApiCalls,Topic API调用次数",
|
10884
|
+
"example": "consumeLag",
|
10885
|
+
"member": "string",
|
10886
|
+
"name": "MetricName",
|
10887
|
+
"required": true,
|
10888
|
+
"type": "string"
|
10889
|
+
},
|
10890
|
+
{
|
10891
|
+
"disabled": false,
|
10892
|
+
"document": "排序数量,最大20",
|
10893
|
+
"example": "10",
|
10894
|
+
"member": "uint64",
|
10895
|
+
"name": "Limit",
|
10896
|
+
"required": true,
|
10897
|
+
"type": "int"
|
10898
|
+
}
|
10899
|
+
],
|
10900
|
+
"type": "object"
|
10901
|
+
},
|
10902
|
+
"DescribeRocketMQTopUsagesResponse": {
|
10903
|
+
"document": "DescribeRocketMQTopUsages返回参数结构体",
|
10904
|
+
"members": [
|
10905
|
+
{
|
10906
|
+
"disabled": false,
|
10907
|
+
"document": "指标值列表",
|
10908
|
+
"example": "[120,88]",
|
10909
|
+
"member": "int64",
|
10910
|
+
"name": "Values",
|
10911
|
+
"output_required": true,
|
10912
|
+
"type": "list",
|
10913
|
+
"value_allowed_null": false
|
10914
|
+
},
|
10915
|
+
{
|
10916
|
+
"disabled": false,
|
10917
|
+
"document": "指标值对应的维度组合,本接口存在以下几个维度:\ntenant,namespace,group,topic",
|
10918
|
+
"example": "无",
|
10919
|
+
"member": "DimensionInstance",
|
10920
|
+
"name": "Dimensions",
|
10921
|
+
"output_required": true,
|
10922
|
+
"type": "list",
|
10923
|
+
"value_allowed_null": false
|
10924
|
+
},
|
10925
|
+
{
|
10926
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
10927
|
+
"member": "string",
|
10928
|
+
"name": "RequestId",
|
10929
|
+
"type": "string"
|
10930
|
+
}
|
10931
|
+
],
|
10932
|
+
"type": "object"
|
10933
|
+
},
|
10862
10934
|
"DescribeRocketMQTopicMsgsRequest": {
|
10863
10935
|
"document": "DescribeRocketMQTopicMsgs请求参数结构体",
|
10864
10936
|
"members": [
|
@@ -11849,6 +11921,27 @@
|
|
11849
11921
|
],
|
11850
11922
|
"usage": "both"
|
11851
11923
|
},
|
11924
|
+
"DimensionInstance": {
|
11925
|
+
"document": "实例维度组合数组",
|
11926
|
+
"members": [
|
11927
|
+
{
|
11928
|
+
"disabled": false,
|
11929
|
+
"document": "实例的维度组合\n注意:此字段可能返回 null,表示取不到有效值。",
|
11930
|
+
"example": "无",
|
11931
|
+
"member": "DimensionOpt",
|
11932
|
+
"name": "Dimensions",
|
11933
|
+
"required": true,
|
11934
|
+
"type": "list",
|
11935
|
+
"value_allowed_null": true
|
11936
|
+
}
|
11937
|
+
],
|
11938
|
+
"usage": "both"
|
11939
|
+
},
|
11940
|
+
"DimensionOpt": {
|
11941
|
+
"document": "指标维度对象",
|
11942
|
+
"members": [],
|
11943
|
+
"usage": "both"
|
11944
|
+
},
|
11852
11945
|
"Environment": {
|
11853
11946
|
"document": "命名空间信息",
|
11854
11947
|
"members": [
|
@@ -816,6 +816,14 @@
|
|
816
816
|
"title": "获取rocketmq消费组订阅关系"
|
817
817
|
}
|
818
818
|
],
|
819
|
+
"DescribeRocketMQTopUsages": [
|
820
|
+
{
|
821
|
+
"document": "",
|
822
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRocketMQTopUsages\n<公共请求参数>\n\n{\n \"ClusterId\": \"rocketmq-abc\",\n \"MetricName\": \"consumeLag\",\n \"Limit\": 1\n}",
|
823
|
+
"output": "{\n \"Response\": {\n \"Dimensions\": [\n {\n \"Dimensions\": [\n {},\n {},\n {}\n ]\n },\n {\n \"Dimensions\": [\n {},\n {},\n {}\n ]\n }\n ],\n \"RequestId\": \"f0288e86-ee7d-4a73-a788-81ca6680b06c\",\n \"Values\": [\n 309,\n 0\n ]\n }\n}",
|
824
|
+
"title": "获取 Group 堆积数量排序"
|
825
|
+
}
|
826
|
+
],
|
819
827
|
"DescribeRocketMQTopicMsgs": [
|
820
828
|
{
|
821
829
|
"document": "",
|
@@ -18914,8 +18914,8 @@
|
|
18914
18914
|
},
|
18915
18915
|
{
|
18916
18916
|
"disabled": false,
|
18917
|
-
"document": "
|
18918
|
-
"example": "
|
18917
|
+
"document": "限速值,指定限速大小,填写含单位的数值或变量。当前支持单位有:KB/s。",
|
18918
|
+
"example": "1000KB/s",
|
18919
18919
|
"member": "string",
|
18920
18920
|
"name": "MaxSpeed",
|
18921
18921
|
"output_required": false,
|
@@ -18925,8 +18925,8 @@
|
|
18925
18925
|
},
|
18926
18926
|
{
|
18927
18927
|
"disabled": false,
|
18928
|
-
"document": "
|
18929
|
-
"example": "
|
18928
|
+
"document": "限速开始值,可以为下载大小或指定时长,填写含单位的数值或变量,指定下载大小或指定时长。\n\n- 当Mode 取值为 LimitAfterSpecificBytesDownloaded 时,单位取值有: KB;\n\n- 当Mode 取值为 LimitAfterSpecificSecondsDownloaded 时,单位取值有: s。\n",
|
18929
|
+
"example": "10s",
|
18930
18930
|
"member": "string",
|
18931
18931
|
"name": "StartAt",
|
18932
18932
|
"output_required": false,
|