tccli 3.0.1245.1__py2.py3-none-any.whl → 3.0.1247.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/billing/v20180709/api.json +55 -1
  4. tccli/services/cam/v20190116/api.json +14 -14
  5. tccli/services/ccc/v20200210/api.json +61 -1
  6. tccli/services/cdb/cdb_client.py +53 -0
  7. tccli/services/cdb/v20170320/api.json +72 -0
  8. tccli/services/cdb/v20170320/examples.json +8 -0
  9. tccli/services/cls/v20201016/api.json +3 -3
  10. tccli/services/dbbrain/v20210527/api.json +14 -5
  11. tccli/services/dbdc/v20201029/api.json +72 -72
  12. tccli/services/dcdb/v20180411/api.json +3 -3
  13. tccli/services/dcdb/v20180411/examples.json +1 -1
  14. tccli/services/ecm/v20190719/api.json +17 -11
  15. tccli/services/ecm/v20190719/examples.json +1 -1
  16. tccli/services/ess/v20201111/api.json +1 -1
  17. tccli/services/essbasic/v20210526/api.json +1 -1
  18. tccli/services/hunyuan/v20230901/api.json +4 -4
  19. tccli/services/iotexplorer/iotexplorer_client.py +216 -4
  20. tccli/services/iotexplorer/v20190423/api.json +146 -1
  21. tccli/services/iotexplorer/v20190423/examples.json +34 -2
  22. tccli/services/lcic/v20220817/api.json +110 -111
  23. tccli/services/lcic/v20220817/examples.json +40 -40
  24. tccli/services/lkeap/__init__.py +4 -0
  25. tccli/services/lkeap/lkeap_client.py +1479 -0
  26. tccli/services/lkeap/v20240522/api.json +1973 -0
  27. tccli/services/lkeap/v20240522/examples.json +223 -0
  28. tccli/services/mna/v20210119/api.json +7 -7
  29. tccli/services/mna/v20210119/examples.json +9 -9
  30. tccli/services/mongodb/v20180408/api.json +153 -112
  31. tccli/services/mongodb/v20180408/examples.json +2 -2
  32. tccli/services/mongodb/v20190725/api.json +202 -167
  33. tccli/services/mongodb/v20190725/examples.json +8 -8
  34. tccli/services/monitor/v20180724/api.json +19 -0
  35. tccli/services/ocr/v20181119/api.json +10 -10
  36. tccli/services/ocr/v20181119/examples.json +15 -15
  37. tccli/services/sqlserver/v20180328/api.json +43 -5
  38. tccli/services/sqlserver/v20180328/examples.json +2 -2
  39. tccli/services/ssl/v20191205/api.json +1 -1
  40. tccli/services/tcb/v20180608/api.json +281 -258
  41. tccli/services/tcb/v20180608/examples.json +18 -18
  42. tccli/services/tcbr/v20220217/api.json +46 -13
  43. tccli/services/tcbr/v20220217/examples.json +2 -8
  44. tccli/services/tcr/v20190924/api.json +125 -121
  45. tccli/services/tcr/v20190924/examples.json +53 -53
  46. tccli/services/tdmq/tdmq_client.py +57 -4
  47. tccli/services/tdmq/v20200217/api.json +107 -0
  48. tccli/services/tdmq/v20200217/examples.json +8 -0
  49. tccli/services/trtc/v20190722/api.json +33 -33
  50. tccli/services/vdb/v20230616/api.json +2 -2
  51. tccli/services/vpc/v20170312/api.json +38 -25
  52. tccli/services/vpc/v20170312/examples.json +29 -7
  53. tccli/services/wedata/v20210820/api.json +34 -1
  54. {tccli-3.0.1245.1.dist-info → tccli-3.0.1247.1.dist-info}/METADATA +2 -2
  55. {tccli-3.0.1245.1.dist-info → tccli-3.0.1247.1.dist-info}/RECORD +58 -54
  56. {tccli-3.0.1245.1.dist-info → tccli-3.0.1247.1.dist-info}/WHEEL +0 -0
  57. {tccli-3.0.1245.1.dist-info → tccli-3.0.1247.1.dist-info}/entry_points.txt +0 -0
  58. {tccli-3.0.1245.1.dist-info → tccli-3.0.1247.1.dist-info}/license_files/LICENSE +0 -0
@@ -3,8 +3,8 @@
3
3
  "BatchDeleteImagePersonal": [
4
4
  {
5
5
  "document": "",
6
- "input": "https://tcr.tencentcloudapi.com/?Action=BatchDeleteImagePersonal\n&RepoName=dockerhub/test\n&Tags.0=1\n&<公共请求参数>",
7
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
6
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchDeleteImagePersonal\n<公共请求参数>\n\n{\n \"RepoName\": \"nicokang/golang\",\n \"Tags\": [\n \"1\",\n \"2\"\n ]\n}",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"05c86278-f995-444b-b2b6-4798e3e3b67d\"\n }\n}",
8
8
  "title": "个人版镜像仓库批量删除Tag"
9
9
  }
10
10
  ],
@@ -43,8 +43,8 @@
43
43
  "CreateImageAccelerationService": [
44
44
  {
45
45
  "document": "",
46
- "input": "https://tcr.tencentcloudapi.com/?Action=CreateImageAccelerationService\n&RegistryId=xxx\n&VpcId=xxx\n&SubnetId=xxx\n&StorageType=xxx\n&PGroupId=xxx\n&Zone=xxx\n&<公共请求参数>",
47
- "output": "{\n \"Response\": {\n \"RegistryId\": \"XXXX\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
46
+ "input": "https://tcr.tencentcloudapi.com/?Action=CreateImageAccelerationService\n&RegistryId=tcr-xxx\n&VpcId=vpc-xxx\n&SubnetId=subnet-xxx\n&StorageType=HD\n&PGroupId=groupID\n&Zone=ap-guangzhou\n&<公共请求参数>",
47
+ "output": "{\n \"Response\": {\n \"RegistryId\": \"tcr-xxx\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
48
48
  "title": "创建镜像加速服务"
49
49
  }
50
50
  ],
@@ -75,14 +75,14 @@
75
75
  "CreateInstanceToken": [
76
76
  {
77
77
  "document": "获取实例的临时访问凭证,有效期仅 1 小时,可用于临时登录。",
78
- "input": "https://tcr.tencentcloudapi.com/?Action=CreateInstanceToken\n&RegistryId=tcr-ak9876\n&TokenType=temp\n&<公共请求参数>",
79
- "output": "{\n \"Response\": {\n \"Username\": 12345678,\n \"Token\": \"XXXX\",\n \"ExpTime\": \"33987631\",\n \"RequestId\": \"xx\",\n \"TokenId\": \"xx\"\n }\n}",
78
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateInstanceToken\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"TokenType\": \"temp\",\n \"Desc\": \"desc\"\n}",
79
+ "output": "{\n \"Response\": {\n \"ExpTime\": 1735880997750,\n \"RequestId\": \"bfa74e4d-3cc2-45a0-980c-08f7ec527737\",\n \"Token\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IlhETVk6VFVWTDo2SlRVOkxPSEE6M1VGVTozWFhJOlM3RkI6TlA3MjozTVYyOlRBQlQ6REdCQzpEQzNIIn0.eyJvd25lclVpbiI6IjMzMjEzMzc5OTQiLCJvcGVyYXRvclVpbiI6IjEwMDAzNjk1MDIzNCIsImV4cCI6MTczNTg4MDk5NywibmJmIjoxNzM1ODc3Mzk3LCJpYXQiOjE3MzU4NzczOTd9.vfgpeIog2z_cSTQnfWEh3jykmKNJ57b2hU-MciSuS3c9tiuju4Q-i_yPBjpDzHr-zymPsxmvFmyPV5Bxtv2UIvAfrk27ZnWUWf8xxF70D7BnY2PO6lSgUqGK0H2lw8HvYMq7JZjGk_q_eHcGQTLiY_-15HLNWjjL2Kvn5sybzaPx7-ZB4efa1WLOdB9rHQRwqmGuBaJaFTkpVZpJ0gRBF6hj7xq-ozjJVurXO1FFjC8DINJt0FvKt3U7VdhVAR2xTUHp54Dz4Q0Nynl5OoaBzYbVuobN5e_VerrYL-UAIu3PU3z7oZFNCCn3JeySbNThofubRW5M1DObxiPsjVSLdA\",\n \"TokenId\": \"\",\n \"Username\": \"100036950234\"\n }\n}",
80
80
  "title": "获取临时实例访问凭证"
81
81
  },
82
82
  {
83
83
  "document": "获取实例的长期有效的访问凭证,可用于第三方应用授权。",
84
- "input": "https://tcr.tencentcloudapi.com/?Action=CreateInstanceToken\n&RegistryId=tcr-ak9876\n&TokenType=longterm\n&Desc=for-tke-cluster\n&<公共请求参数>",
85
- "output": "{\n \"Response\": {\n \"Username\": 12345678,\n \"Token\": \"XXXX\",\n \"ExpTime\": \"33987631\",\n \"RequestId\": \"xx\",\n \"TokenId\": \"1456976\"\n }\n}",
84
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateInstanceToken\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"TokenType\": \"longterm\",\n \"Desc\": \"desc\"\n}",
85
+ "output": "{\n \"Response\": {\n \"ExpTime\": 2051237057817,\n \"RequestId\": \"116b7c24-58af-452a-9d91-bdfc988a56ec\",\n \"Token\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IlhETVk6VFVWTDo2SlRVOkxPSEE6M1VGVTozWFhJOlM3RkI6TlA3MjozTVYyOlRBQlQ6REdCQzpEQzNIIn0.eyJvd25lclVpbiI6IjMzMjEzMzc5OTQiLCJvcGVyYXRvclVpbiI6IjEwMDAzNjk1MDIzNCIsInRva2VuSWQiOiJjdHJtM2c4Nmg3Y3Axa2I3ZWwyZyIsImV4cCI6MjA1MTIzNzA1NywibmJmIjoxNzM1ODc3MDU3LCJpYXQiOjE3MzU4NzcwNTd9.PSZiX0ZAEvAo6lbhrUypAyII12hey2SE08pL4J5_7kBNJQdpSK-Ersw5YWuO1j90xXb6rWBuLPmCqUEA-Gg4Xla2yCWlT4eF2ls2HFKUlA8gxVoGmaFN3ww6yyImC4i1o9guPSUl2ggI3k_ohSkpaooDnKPpUzBDfqptgd-ZHrNAsqlNloQISggFzIhfZiR9c4rrnxp-a7_Q0phR24uY5X0C3lYQYYFDph-SlQ9BgFRGLBUw1IUcTVZ57uXLcFis9XsazFVyFvXtOUwGfHQ5DIb5B8mReJg7XKMgG1RfpsngSF-y0QR12OKIyNvHl8Ty-HXU-J0hDm1HWKDhM-mXcQ\",\n \"TokenId\": \"ctrm3g86h7cp1kb7el2g\",\n \"Username\": \"100036950234\"\n }\n}",
86
86
  "title": "获取长期实例访问凭证"
87
87
  }
88
88
  ],
@@ -137,8 +137,8 @@
137
137
  "CreateRepositoryPersonal": [
138
138
  {
139
139
  "document": "",
140
- "input": "https://tcr.tencentcloudapi.com/?Action=CreateRepositoryPersonal\r\n&RepoName=dockerhub/test\r\n&Public=1\r\n&<公共请求参数>",
141
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
140
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRepositoryPersonal\n<公共请求参数>\n\n{\n \"RepoName\": \"nicokang/golang1\",\n \"Public\": 1,\n \"Description\": \"desc\"\n}",
141
+ "output": "{\n \"Response\": {\n \"RequestId\": \"190752c5-f87e-423f-93e4-eb426d82177d\"\n }\n}",
142
142
  "title": "创建个人版镜像仓库"
143
143
  }
144
144
  ],
@@ -159,8 +159,8 @@
159
159
  },
160
160
  {
161
161
  "document": "使用Duration创建ServiceAccount",
162
- "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateServiceAccount\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-45uu7ras\",\n \"Name\": \"test\",\n \"Description\": \"for test\",\n \"Duration\": 10,\n \"Permissions\": [\n {\n \"Resource\": \"test\",\n \"Actions\": [\n \"tcr:PullRepository\",\n \"tcr:PushRepository\",\n \"tcr:CreateRepository\"\n ]\n }\n ]\n}",
163
- "output": "{\n \"Response\": {\n \"CreateTime\": \"2023-03-28T15:48:31+08:00\",\n \"ExpiresAt\": 1680853711137,\n \"Name\": \"tcr$test\",\n \"Password\": \"oNKUtqrB5Eb68JufkVanSwuhmC4Ergn7\",\n \"RequestId\": \"20b67612-28a0-4c51-8efb-0fe14bc23a64\"\n }\n}",
162
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateServiceAccount\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"Name\": \"servie-account4\",\n \"Duration\": 10,\n \"Permissions\": [\n {\n \"Resource\": \"ns1\",\n \"Actions\": [\n \"tcr:PushRepository\"\n ]\n }\n ]\n}",
163
+ "output": "{\n \"Response\": {\n \"CreateTime\": \"2025-01-07T11:48:31+08:00\",\n \"ExpiresAt\": 1737085710747,\n \"Name\": \"tcr$servie-account4\",\n \"Password\": \"bVMZuTO6eYFvpZX9sVIxfyA3UHtIUrCa\",\n \"RequestId\": \"f63f97d2-f5be-43b5-931e-13c026aba9c7\"\n }\n}",
164
164
  "title": "使用Duration创建ServiceAccount"
165
165
  }
166
166
  ],
@@ -223,16 +223,16 @@
223
223
  "DeleteImage": [
224
224
  {
225
225
  "document": "",
226
- "input": "https://tcr.tencentcloudapi.com/?Action=DeleteImage\r\n&RegistryId=tcr-okmj78\r\n&NamespaceName=mytest\r\n&RepositoryName=test\r\n&ImageVersion=1.0\r\n&<公共请求参数>",
227
- "output": "{\n \"Response\": {\n \"RequestId\": \"2ac430cd-f7de-482e-b98e-f78a48e785e8\"\n }\n}",
226
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteImage\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"NamespaceName\": \"multi-arch\",\n \"RepositoryName\": \"alpine\",\n \"ImageVersion\": \"1\"\n}",
227
+ "output": "{\n \"Response\": {\n \"RequestId\": \"feeb9395-1fd7-41b4-8d1d-e791ca1cad5d\"\n }\n}",
228
228
  "title": "删除指定镜像"
229
229
  }
230
230
  ],
231
231
  "DeleteImageAccelerateService": [
232
232
  {
233
233
  "document": "",
234
- "input": "https://tcr.tencentcloudapi.com/?Action=DeleteImageAccelerateService\n&RegistryId=xxx\n&<公共请求参数>",
235
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
234
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteImageAccelerateService\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\"\n}",
235
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d07dd8e8-c96c-466c-933e-d05e79e070e2\"\n }\n}",
236
236
  "title": "删除镜像加速服务"
237
237
  }
238
238
  ],
@@ -247,8 +247,8 @@
247
247
  "DeleteImagePersonal": [
248
248
  {
249
249
  "document": "",
250
- "input": "https://tcr.tencentcloudapi.com/?Action=DeleteImagePersonal\n&RepoName=dockerhub/test\n&Tag=1\n&<公共请求参数>",
251
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
250
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteImagePersonal\n<公共请求参数>\n\n{\n \"RepoName\": \"nicokang/golang\",\n \"Tag\": \"1\"\n}",
251
+ "output": "{\n \"Response\": {\n \"RequestId\": \"4b062c34-4720-4273-8ff4-d598d9c81b0c\"\n }\n}",
252
252
  "title": "个人版仓库删除tag"
253
253
  }
254
254
  ],
@@ -279,16 +279,16 @@
279
279
  "DeleteInstanceToken": [
280
280
  {
281
281
  "document": "",
282
- "input": "https://tcr.tencentcloudapi.com/?Action=DeleteInstanceToken\r\n&<公共请求参数>\r\n&RegistryId=tcr-12345\r\n&TokenId=b671eee3-a58d-4704-b4d2-a84b6361ff0c",
283
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
282
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteInstanceToken\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"TokenId\": \"ct3ucep1qcle9n4kmv00\"\n}",
283
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d813db09-5ea7-4b1f-807c-954a8b8ec7a7\"\n }\n}",
284
284
  "title": "删除长期访问凭证"
285
285
  }
286
286
  ],
287
287
  "DeleteInternalEndpointDns": [
288
288
  {
289
289
  "document": "",
290
- "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteInternalEndpointDns\n<公共请求参数>\n\n{\n \"InstanceId\": \"tcr-xxx\",\n \"EniLBIp\": \"1.1.1.1\",\n \"VpcId\": \"vpc-xxx\",\n \"UsePublicDomain\": \"false\"\n}",
291
- "output": "{\n \"Response\": {\n \"RequestId\": \"xxxxxx\"\n }\n}",
290
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteInternalEndpointDns\n<公共请求参数>\n\n{\n \"InstanceId\": \"tcr-dg284imq\",\n \"VpcId\": \"vpc-9iazgkcl\",\n \"EniLBIp\": \"192.168.23.69\",\n \"UsePublicDomain\": true,\n \"RegionName\": \"ap-guangzhou\"\n}",
291
+ "output": "{\n \"Response\": {\n \"RequestId\": \"f63b71b9-196b-4648-a086-8a29c2bffc86\"\n }\n}",
292
292
  "title": "删除私有域名解析"
293
293
  }
294
294
  ],
@@ -311,8 +311,8 @@
311
311
  "DeleteNamespacePersonal": [
312
312
  {
313
313
  "document": "",
314
- "input": "https://tcr.tencentcloudapi.com/?Action=DeleteNamespacePersonal\r\n&Namespace=mynamespace\r\n&<公共请求参数>",
315
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
314
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteNamespacePersonal\n<公共请求参数>\n\n{\n \"Namespace\": \"nico-ns1\"\n}",
315
+ "output": "{\n \"Response\": {\n \"RequestId\": \"48e73d54-d4c2-4573-bfc5-3416bc5befba\"\n }\n}",
316
316
  "title": "删除个人版命名空间"
317
317
  }
318
318
  ],
@@ -327,24 +327,24 @@
327
327
  "DeleteRepository": [
328
328
  {
329
329
  "document": "",
330
- "input": "https://tcr.tencentcloudapi.com/?Action=DeleteRepository\n&RegistryId=tcr-okmj78\n&NamespaceName=test\n&RepositoryName=mytest\n&<公共请求参数>",
331
- "output": "{\n \"Response\": {\n \"RequestId\": \"2ac430cd-f7de-482e-b98e-f78a48e785e8\"\n }\n}",
330
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRepository\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"NamespaceName\": \"private\",\n \"RepositoryName\": \"golang\"\n}",
331
+ "output": "{\n \"Response\": {\n \"RequestId\": \"ca2eddea-14cc-4c3f-96e5-de50fd1fd4c0\"\n }\n}",
332
332
  "title": "删除镜像仓库"
333
333
  }
334
334
  ],
335
335
  "DeleteRepositoryPersonal": [
336
336
  {
337
337
  "document": "",
338
- "input": "https://tcr.tencentcloudapi.com/?Action=DeleteRepositoryPersonal\r\n&RepoName=dockerhub/test\r\n&<公共请求参数>",
339
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
338
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRepositoryPersonal\n<公共请求参数>\n\n{\n \"RepoName\": \"nicokang/golang1\"\n}",
339
+ "output": "{\n \"Response\": {\n \"RequestId\": \"352b491b-9f5f-4983-9119-e7ea18adc7cc\"\n }\n}",
340
340
  "title": "删除个人版镜像仓库"
341
341
  }
342
342
  ],
343
343
  "DeleteRepositoryTags": [
344
344
  {
345
345
  "document": "",
346
- "input": "https://tcr.tencentcloudapi.com/?Action=DeleteRepositoryTags\n&RegistryId=tcr-xxx\n&NamespaceName=test\n&RepositoryName=demo\n&Tags.0=tag0\n&<公共请求参数>",
347
- "output": "{\n \"Response\": {\n \"RequestId\": \"2ac430cd-f7de-482e-b98e-f78a48e785e8\"\n }\n}",
346
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRepositoryTags\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"NamespaceName\": \"public\",\n \"RepositoryName\": \"golang\",\n \"Tags\": [\n \"1\",\n \"2\"\n ]\n}",
347
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6f337112-efb5-4b49-9430-bb980089f4ea\"\n }\n}",
348
348
  "title": "批量删除镜像仓库Tag"
349
349
  }
350
350
  ],
@@ -359,8 +359,8 @@
359
359
  "DeleteServiceAccount": [
360
360
  {
361
361
  "document": "删除服务级账号",
362
- "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteServiceAccount\n<公共请求参数>\n\n{\n \"RegistryId\": \"abc\",\n \"Name\": \"abc\"\n}",
363
- "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
362
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteServiceAccount\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"Name\": \"tcr$servie-account3\"\n}",
363
+ "output": "{\n \"Response\": {\n \"RequestId\": \"0804e7fc-58f6-439b-9f76-9c10b22c49ed\"\n }\n}",
364
364
  "title": "删除服务级账号"
365
365
  }
366
366
  ],
@@ -383,8 +383,8 @@
383
383
  "DeleteWebhookTrigger": [
384
384
  {
385
385
  "document": "",
386
- "input": "https://tcr.tencentcloudapi.com/?Action=DeleteWebhookTrigger\r\n&<公共请求参数>\r\n&RegistryId=tcr-ak9876\r\n&Namespace=someNs\r\n&Id=11",
387
- "output": "{\n \"Response\": {\n \"RequestId\": \"7c978e73-b752-422c-880d-c074a45b4b58\"\n }\n}",
386
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteWebhookTrigger\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"Namespace\": \"ns\",\n \"Id\": 6\n}",
387
+ "output": "{\n \"Response\": {\n \"RequestId\": \"620fb647-fe86-4c25-866f-98bf867cd689\"\n }\n}",
388
388
  "title": "删除触发器"
389
389
  }
390
390
  ],
@@ -399,8 +399,8 @@
399
399
  "DescribeApplicationTriggerPersonal": [
400
400
  {
401
401
  "document": "",
402
- "input": "https://tcr.tencentcloudapi.com/?Action=DescribeApplicationTriggerPersonal\r\n&RepoName=test/test123\r\n&<公共请求参数>",
403
- "output": "{\n \"Response\": {\n \"Data\": {\n \"TotalCount\": 1,\n \"TriggerInfo\": [\n {\n \"TriggerName\": \"test2\",\n \"InvokeSource\": \"IMAGE_PUSH\",\n \"InvokeAction\": \"SERVICE_UPDATE\",\n \"CreateTime\": \"2020-01-23 17:06:17\",\n \"UpdateTime\": \"2020-01-23 17:44:26\",\n \"InvokeCondition\": {\n \"InvokeMethod\": \"taglist\",\n \"InvokeExpr\": \"abc\"\n },\n \"InvokePara\": {\n \"AppId\": \"1251006373\",\n \"ClusterId\": \"cls-aj3c8wz5\",\n \"Namespace\": \"default\",\n \"ServiceName\": \"Deployment:testdp\",\n \"ContainerName\": \"testcon\",\n \"ClusterRegion\": 16\n }\n }\n ]\n },\n \"RequestId\": \"7d27c2f4-0473-484c-b62e-fcb379758289\"\n }\n}",
402
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeApplicationTriggerPersonal\n<公共请求参数>\n\n{\n \"Limit\": 3\n}",
403
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"TotalCount\": 29,\n \"TriggerInfo\": [\n {\n \"CreateTime\": \"2021-11-18 11:51:13\",\n \"InvokeAction\": \"SERVICE_UPDATE\",\n \"InvokeCondition\": {\n \"InvokeExpr\": \"\",\n \"InvokeMethod\": \"all\"\n },\n \"InvokePara\": {\n \"AppId\": \"1251707795\",\n \"ClusterId\": \"cls-prnklzue\",\n \"ClusterRegion\": 1,\n \"ContainerName\": \"nginx\",\n \"Namespace\": \"default\",\n \"ServiceName\": \"Deployment:nginx-deployment\"\n },\n \"InvokeSource\": \"IMAGE_PUSH\",\n \"TriggerName\": \"aaaa\",\n \"UpdateTime\": \"2021-11-18 11:51:13\"\n },\n {\n \"CreateTime\": \"2021-10-27 10:11:30\",\n \"InvokeAction\": \"SERVICE_UPDATE\",\n \"InvokeCondition\": {\n \"InvokeExpr\": \"\",\n \"InvokeMethod\": \"all\"\n },\n \"InvokePara\": {\n \"AppId\": \"1251707795\",\n \"ClusterId\": \"cls-94j6nzm8\",\n \"ClusterRegion\": 33,\n \"ContainerName\": \"nginx\",\n \"Namespace\": \"default\",\n \"ServiceName\": \"Deployment:nginx\"\n },\n \"InvokeSource\": \"IMAGE_PUSH\",\n \"TriggerName\": \"sss\",\n \"UpdateTime\": \"2021-10-27 10:11:30\"\n },\n {\n \"CreateTime\": \"2020-12-22 10:45:36\",\n \"InvokeAction\": \"SERVICE_UPDATE\",\n \"InvokeCondition\": {\n \"InvokeExpr\": \"\",\n \"InvokeMethod\": \"all\"\n },\n \"InvokePara\": {\n \"AppId\": \"1251707795\",\n \"ClusterId\": \"clust-xxx\",\n \"ClusterRegion\": 1,\n \"ContainerName\": \"web\",\n \"Namespace\": \"default\",\n \"ServiceName\": \"Deployment:kofj\"\n },\n \"InvokeSource\": \"IMAGE_PUSH\",\n \"TriggerName\": \"kofj-test-20201222\",\n \"UpdateTime\": \"2020-12-22 10:45:36\"\n }\n ]\n },\n \"RequestId\": \"a904482e-68ec-47d9-9f1f-87908659bd81\"\n }\n}",
404
404
  "title": "查询应用更新触发器"
405
405
  }
406
406
  ],
@@ -439,16 +439,16 @@
439
439
  "DescribeImageAccelerateService": [
440
440
  {
441
441
  "document": "",
442
- "input": "https://tcr.tencentcloudapi.com/?Action=DescribeImageAccelerateService\n&RegistryId=xxx\n&<公共请求参数>",
443
- "output": "{\n \"Response\": {\n \"Status\": \"Completed\",\n \"CFSVIP\": \"10.1.1.1\",\n \"IsEnable\": \"true\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
442
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeImageAccelerateService\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\"\n}",
443
+ "output": "{\n \"Response\": {\n \"CFSVIP\": \"\",\n \"IsEnable\": false,\n \"RequestId\": \"dde9bf37-d34c-4c7a-bf0d-a11531ce6ebe\",\n \"Status\": \"\"\n }\n}",
444
444
  "title": "查询镜像加速服务状态"
445
445
  }
446
446
  ],
447
447
  "DescribeImageFilterPersonal": [
448
448
  {
449
449
  "document": "",
450
- "input": "https://tcr.tencentcloudapi.com/?Action=DescribeImageFilterPersonal\n&RepoName=dockerhub/test\n&Tag=test\n&<公共请求参数>",
451
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"Data\": {\n \"SameImages\": [\n \"99\"\n ]\n }\n }\n}",
450
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeImageFilterPersonal\n<公共请求参数>\n\n{\n \"RepoName\": \"nicokang/golang\",\n \"Tag\": \"4\"\n}",
451
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"SameImages\": [\n \"3\"\n ]\n },\n \"RequestId\": \"9b054042-5447-4902-bd48-2c92f5be5b0f\"\n }\n}",
452
452
  "title": "查询个人版与指定tag镜像内容相同的tag列表"
453
453
  }
454
454
  ],
@@ -519,8 +519,8 @@
519
519
  "DescribeInstanceStatus": [
520
520
  {
521
521
  "document": "",
522
- "input": "https://tcr.tencentcloudapi.com/?Action=DescribeInstanceStatus\r\n&RegistryIds.0=tcr-ak9876\r\n&<公共请求参数>",
523
- "output": "{\n \"Response\": {\n \"RegistryStatusSet\": [\n {\n \"Status\": \"Runing\",\n \"RegistryId\": \"tcr-ak9876\"\n }\n ],\n \"RequestId\": \"a1be36f0-1aa4-4af2-a289-da021bcef89f\"\n }\n}",
522
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceStatus\n<公共请求参数>\n\n{\n \"RegistryIds\": [\n \"tcr-dg284imq\"\n ]\n}",
523
+ "output": "{\n \"Response\": {\n \"RegistryStatusSet\": [\n {\n \"Conditions\": [\n {\n \"Reason\": \"\",\n \"Status\": \"Running\",\n \"Type\": \"\"\n }\n ],\n \"RegistryId\": \"tcr-dg284imq\",\n \"Status\": \"Running\"\n }\n ],\n \"RequestId\": \"bc44a6c1-1e49-4b25-9804-f827e87ff686\"\n }\n}",
524
524
  "title": "查询实例状态"
525
525
  }
526
526
  ],
@@ -623,16 +623,16 @@
623
623
  "DescribeRepositoryOwnerPersonal": [
624
624
  {
625
625
  "document": "",
626
- "input": "https://tcr.tencentcloudapi.com/?Action=DescribeRepositoryOwnerPersonal\r\n&RepoName=dockerhub/test\r\n&Limit=20\r\n&Offset=0\r\n&<公共请求参数>",
627
- "output": "{\n \"Response\": {\n \"Data\": {\n \"RepoInfo\": [\n {\n \"RepoName\": \"dockerhub/test\",\n \"RepoType\": \"QCLOUD HUB\",\n \"TagCount\": 49,\n \"Public\": 1,\n \"IsUserFavor\": false,\n \"IsQcloudOfficial\": false,\n \"FavorCount\": 0,\n \"PullCount\": 3727,\n \"Description\": \"\",\n \"CreationTime\": \"2019-04-26 18:21:48\",\n \"UpdateTime\": \"2020-02-20 16:43:47\"\n }\n ],\n \"Server\": \"ccr.ccs.tencentyun.com\",\n \"TotalCount\": 1\n },\n \"RequestId\": \"8e76ee07-c67d-478e-ba2d-b68c17c059f4\"\n }\n}",
626
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRepositoryOwnerPersonal\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 10,\n \"RepoName\": \"richardgu/hyperkube\"\n}",
627
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"RepoInfo\": [\n {\n \"CreationTime\": \"2023-06-20 15:27:03\",\n \"Description\": \"\",\n \"FavorCount\": 0,\n \"IsQcloudOfficial\": false,\n \"IsUserFavor\": false,\n \"Public\": 1,\n \"PullCount\": 0,\n \"RepoName\": \"richardgu/hyperkube\",\n \"RepoType\": \"QCLOUD HUB\",\n \"TagCount\": 423,\n \"UpdateTime\": \"2024-12-30 11:47:17\"\n }\n ],\n \"Server\": \"ccr.ccs.tencentyun.com\",\n \"TotalCount\": 1\n },\n \"RequestId\": \"c88a0f09-134d-4422-89bc-a4c7a93b106b\"\n }\n}",
628
628
  "title": "查询个人版所有仓库"
629
629
  }
630
630
  ],
631
631
  "DescribeRepositoryPersonal": [
632
632
  {
633
633
  "document": "",
634
- "input": "https://tcr.tencentcloudapi.com/?Action=DescribeRepositoryPersonal\r\n&RepoName=test/kube_test\r\n&<公共请求参数>",
635
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"Data\": {\n \"CreationTime\": \"2017-12-28 11:00:10\",\n \"Description\": \"\",\n \"FavorCount\": 0,\n \"IsQcloudOfficial\": false,\n \"IsUserFavor\": false,\n \"Public\": 0,\n \"PullCount\": 0,\n \"RepoName\": \"test/kube_test\",\n \"RepoType\": \"QCLOUD HUB\"\n }\n }\n}",
634
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRepositoryPersonal\n<公共请求参数>\n\n{\n \"RepoName\": \"richardgu/hyperkube\"\n}",
635
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"CreationTime\": \"2023-06-20 15:27:03\",\n \"Description\": \"\",\n \"FavorCount\": 0,\n \"IsQcloudOfficial\": false,\n \"IsUserFavor\": false,\n \"Public\": 1,\n \"PullCount\": 0,\n \"RepoName\": \"richardgu/hyperkube\",\n \"RepoType\": \"QCLOUD HUB\",\n \"Server\": \"ccr.ccs.tencentyun.com\"\n },\n \"RequestId\": \"8ce48e45-dd95-48c9-ba00-801ab1054323\"\n }\n}",
636
636
  "title": "查询个人版仓库信息"
637
637
  }
638
638
  ],
@@ -735,8 +735,8 @@
735
735
  "ManageImageLifecycleGlobalPersonal": [
736
736
  {
737
737
  "document": "",
738
- "input": "https://tcr.tencentcloudapi.com/?Action=ManageImageLifecycleGlobalPersonal\r\n&Type=keep_last_nums\r\n&Val=80\r\n&<公共请求参数>",
739
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
738
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ManageImageLifecycleGlobalPersonal\n<公共请求参数>\n\n{\n \"Type\": \"global_keep_last_nums\",\n \"Val\": 9998\n}",
739
+ "output": "{\n \"Response\": {\n \"RequestId\": \"fdc10ec8-a1cf-4c2a-8eb4-f6d66abfdd53\"\n }\n}",
740
740
  "title": "设置个人版全局镜像版本清理策略"
741
741
  }
742
742
  ],
@@ -757,7 +757,7 @@
757
757
  },
758
758
  {
759
759
  "document": "用于创建跨主账号的实例同步",
760
- "input": "https://tcr.tencentcloudapi.com/?Action=ManageReplication\n&SourceRegistryId=tcr-3498\n&DestinationRegistryId=tcr-98676\n&DestinationRegionId=9\n&Rule.Override=true\n&Rule.DestNamespace=test\n&Rule.Name=test\n&Rule.Filters.0.Type=tag\n&Rule.Filters.0.Value=test\n&PeerReplicationOption.EnablePeerReplication=true\n&PeerReplicationOption.PeerRegistryUin=113498\n&PeerReplicationOption.PeerRegistryToken=xxx\n&<公共请求参数>",
760
+ "input": "https://tcr.tencentcloudapi.com/?Action=ManageReplication\n&SourceRegistryId=tcr-3498\n&DestinationRegistryId=tcr-98676\n&DestinationRegionId=9\n&Rule.Override=true\n&Rule.DestNamespace=ns\n&Rule.Name=rule1\n&Rule.Filters.0.Type=tag\n&Rule.Filters.0.Value=filter1\n&PeerReplicationOption.EnablePeerReplication=true\n&PeerReplicationOption.PeerRegistryUin=113498\n&PeerReplicationOption.PeerRegistryToken=access-token\n&<公共请求参数>",
761
761
  "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
762
762
  "title": "创建跨主账号实例同步"
763
763
  }
@@ -849,8 +849,8 @@
849
849
  "ModifyServiceAccount": [
850
850
  {
851
851
  "document": "更新服务级账号",
852
- "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyServiceAccount\n<公共请求参数>\n\n{\n \"RegistryId\": \"abc\",\n \"Name\": \"abc\",\n \"Description\": \"abc\",\n \"Duration\": 0,\n \"ExpiresAt\": 0,\n \"Disable\": true,\n \"Permissions\": [\n {\n \"Resource\": \"abc\",\n \"Actions\": [\n \"abc\"\n ]\n }\n ]\n}",
853
- "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
852
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyServiceAccount\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"Name\": \"tcr$service-account2\",\n \"Description\": \"desc 1\",\n \"Duration\": 10\n}",
853
+ "output": "{\n \"Response\": {\n \"RequestId\": \"44d9705a-dc93-41f8-b596-8552c4dd40d7\"\n }\n}",
854
854
  "title": "更新服务级账号"
855
855
  }
856
856
  ],
@@ -887,8 +887,8 @@
887
887
  "ModifyWebhookTrigger": [
888
888
  {
889
889
  "document": "",
890
- "input": "https://tcr.tencentcloudapi.com/?Action=ModifyWebhookTrigger\r\n&<公共请求参数>\r\n&RegistryId=tcr-7s2d14fn\r\n&Namespace=someNs\r\n&Trigger.Id=9\r\n&Trigger.Enabled=false\r\n&Trigger.Targets.0.Address=abc.local\r\n&Trigger.EventTypes.0=pullImage",
891
- "output": "{\n \"Response\": {\n \"RequestId\": \"3c33da0e-5a85-4fdc-841c-5ca47454a117\"\n }\n}",
890
+ "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyWebhookTrigger\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"Trigger\": {\n \"Name\": \"tirgger\",\n \"Targets\": [\n {\n \"Address\": \"http://www.baidu.com\",\n \"Headers\": [\n {\n \"Key\": \"k1\",\n \"Values\": [\n \"v1\"\n ]\n },\n {\n \"Key\": \"k2\",\n \"Values\": [\n \"v2\"\n ]\n }\n ]\n }\n ],\n \"EventTypes\": [\n \"pushImage\"\n ],\n \"Condition\": \"release*\",\n \"Enabled\": true,\n \"Id\": 2,\n \"Description\": \"desc22\",\n \"NamespaceId\": 1,\n \"NamespaceName\": \"ns1\"\n },\n \"Namespace\": \"ns1\"\n}",
891
+ "output": "{\n \"Response\": {\n \"RequestId\": \"cadb3e9c-6f00-4d20-9688-23e0fa792624\"\n }\n}",
892
892
  "title": "更新触发器"
893
893
  }
894
894
  ],
@@ -1785,7 +1785,7 @@ def doDescribeEnvironmentAttributes(args, parsed_globals):
1785
1785
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
1786
 
1787
1787
 
1788
- def doCreateCmqSubscribe(args, parsed_globals):
1788
+ def doGetTopicList(args, parsed_globals):
1789
1789
  g_param = parse_global_arg(parsed_globals)
1790
1790
 
1791
1791
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1814,11 +1814,11 @@ def doCreateCmqSubscribe(args, parsed_globals):
1814
1814
  client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
1815
1815
  client._sdkVersion += ("_CLI_" + __version__)
1816
1816
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1817
- model = models.CreateCmqSubscribeRequest()
1817
+ model = models.GetTopicListRequest()
1818
1818
  model.from_json_string(json.dumps(args))
1819
1819
  start_time = time.time()
1820
1820
  while True:
1821
- rsp = client.CreateCmqSubscribe(model)
1821
+ rsp = client.GetTopicList(model)
1822
1822
  result = rsp.to_json_string()
1823
1823
  try:
1824
1824
  json_obj = json.loads(result)
@@ -6257,6 +6257,58 @@ def doCreateRole(args, parsed_globals):
6257
6257
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6258
6258
 
6259
6259
 
6260
+ def doCreateCmqSubscribe(args, parsed_globals):
6261
+ g_param = parse_global_arg(parsed_globals)
6262
+
6263
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6264
+ cred = credential.CVMRoleCredential()
6265
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6266
+ cred = credential.STSAssumeRoleCredential(
6267
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6268
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6269
+ )
6270
+ 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):
6271
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6272
+ else:
6273
+ cred = credential.Credential(
6274
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6275
+ )
6276
+ http_profile = HttpProfile(
6277
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6278
+ reqMethod="POST",
6279
+ endpoint=g_param[OptionsDefine.Endpoint],
6280
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6281
+ )
6282
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6283
+ if g_param[OptionsDefine.Language]:
6284
+ profile.language = g_param[OptionsDefine.Language]
6285
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6286
+ client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
6287
+ client._sdkVersion += ("_CLI_" + __version__)
6288
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6289
+ model = models.CreateCmqSubscribeRequest()
6290
+ model.from_json_string(json.dumps(args))
6291
+ start_time = time.time()
6292
+ while True:
6293
+ rsp = client.CreateCmqSubscribe(model)
6294
+ result = rsp.to_json_string()
6295
+ try:
6296
+ json_obj = json.loads(result)
6297
+ except TypeError as e:
6298
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6299
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6300
+ break
6301
+ cur_time = time.time()
6302
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6303
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6304
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6305
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6306
+ else:
6307
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6308
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6309
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6310
+
6311
+
6260
6312
  def doModifyRocketMQNamespace(args, parsed_globals):
6261
6313
  g_param = parse_global_arg(parsed_globals)
6262
6314
 
@@ -7810,7 +7862,7 @@ ACTION_MAP = {
7810
7862
  "ModifyRocketMQTopic": doModifyRocketMQTopic,
7811
7863
  "DescribeRocketMQTopicMsgs": doDescribeRocketMQTopicMsgs,
7812
7864
  "DescribeEnvironmentAttributes": doDescribeEnvironmentAttributes,
7813
- "CreateCmqSubscribe": doCreateCmqSubscribe,
7865
+ "GetTopicList": doGetTopicList,
7814
7866
  "DescribePublisherSummary": doDescribePublisherSummary,
7815
7867
  "DeleteRocketMQNamespace": doDeleteRocketMQNamespace,
7816
7868
  "CreateRabbitMQVirtualHost": doCreateRabbitMQVirtualHost,
@@ -7896,6 +7948,7 @@ ACTION_MAP = {
7896
7948
  "DescribeTopicMsgs": doDescribeTopicMsgs,
7897
7949
  "DescribeNodeHealthOpt": doDescribeNodeHealthOpt,
7898
7950
  "CreateRole": doCreateRole,
7951
+ "CreateCmqSubscribe": doCreateCmqSubscribe,
7899
7952
  "ModifyRocketMQNamespace": doModifyRocketMQNamespace,
7900
7953
  "DescribeRocketMQGroups": doDescribeRocketMQGroups,
7901
7954
  "ClearCmqQueue": doClearCmqQueue,
@@ -770,6 +770,13 @@
770
770
  "output": "ExportRocketMQMessageDetailResponse",
771
771
  "status": "online"
772
772
  },
773
+ "GetTopicList": {
774
+ "document": "获取环境下主题列表",
775
+ "input": "GetTopicListRequest",
776
+ "name": "查询命名空间下的主题列表",
777
+ "output": "GetTopicListResponse",
778
+ "status": "online"
779
+ },
773
780
  "ImportRocketMQConsumerGroups": {
774
781
  "document": "输入迁移任务id和要导入的Group,导入后台",
775
782
  "input": "ImportRocketMQConsumerGroupsRequest",
@@ -12241,6 +12248,80 @@
12241
12248
  ],
12242
12249
  "usage": "in"
12243
12250
  },
12251
+ "GetTopicListRequest": {
12252
+ "document": "GetTopicList请求参数结构体",
12253
+ "members": [
12254
+ {
12255
+ "disabled": false,
12256
+ "document": "环境(命名空间)名称。",
12257
+ "example": "devNs",
12258
+ "member": "string",
12259
+ "name": "EnvironmentId",
12260
+ "required": true,
12261
+ "type": "string"
12262
+ },
12263
+ {
12264
+ "disabled": false,
12265
+ "document": "Pulsar 集群的ID",
12266
+ "example": "cluster1",
12267
+ "member": "string",
12268
+ "name": "ClusterId",
12269
+ "required": true,
12270
+ "type": "string"
12271
+ },
12272
+ {
12273
+ "disabled": false,
12274
+ "document": "起始下标,不填默认为0。",
12275
+ "example": "0",
12276
+ "member": "uint64",
12277
+ "name": "Offset",
12278
+ "required": false,
12279
+ "type": "int"
12280
+ },
12281
+ {
12282
+ "disabled": false,
12283
+ "document": "返回数量,不填则默认为10,最大值为20。",
12284
+ "example": "20",
12285
+ "member": "uint64",
12286
+ "name": "Limit",
12287
+ "required": false,
12288
+ "type": "int"
12289
+ }
12290
+ ],
12291
+ "type": "object"
12292
+ },
12293
+ "GetTopicListResponse": {
12294
+ "document": "GetTopicList返回参数结构体",
12295
+ "members": [
12296
+ {
12297
+ "disabled": false,
12298
+ "document": "主题数量。",
12299
+ "example": "1",
12300
+ "member": "uint64",
12301
+ "name": "TotalCount",
12302
+ "output_required": true,
12303
+ "type": "int",
12304
+ "value_allowed_null": false
12305
+ },
12306
+ {
12307
+ "disabled": false,
12308
+ "document": "主题列表",
12309
+ "example": "空",
12310
+ "member": "Topic_Simplification",
12311
+ "name": "TopicList",
12312
+ "output_required": true,
12313
+ "type": "list",
12314
+ "value_allowed_null": false
12315
+ },
12316
+ {
12317
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12318
+ "member": "string",
12319
+ "name": "RequestId",
12320
+ "type": "string"
12321
+ }
12322
+ ],
12323
+ "type": "object"
12324
+ },
12244
12325
  "ImportRocketMQConsumerGroupsRequest": {
12245
12326
  "document": "ImportRocketMQConsumerGroups请求参数结构体",
12246
12327
  "members": [
@@ -20604,6 +20685,32 @@
20604
20685
  ],
20605
20686
  "usage": "out"
20606
20687
  },
20688
+ "Topic_Simplification": {
20689
+ "document": "主题实例",
20690
+ "members": [
20691
+ {
20692
+ "disabled": false,
20693
+ "document": "主题名称。\n注意:此字段可能返回 null,表示取不到有效值。",
20694
+ "example": "devTopic",
20695
+ "member": "string",
20696
+ "name": "TopicName",
20697
+ "output_required": true,
20698
+ "type": "string",
20699
+ "value_allowed_null": true
20700
+ },
20701
+ {
20702
+ "disabled": false,
20703
+ "document": "0: 非持久非分区\n1: 非持久分区\n2: 持久非分区\n3: 持久分区\n注意:此字段可能返回 null,表示取不到有效值。",
20704
+ "example": "1",
20705
+ "member": "int64",
20706
+ "name": "PulsarTopicType",
20707
+ "output_required": true,
20708
+ "type": "int",
20709
+ "value_allowed_null": true
20710
+ }
20711
+ ],
20712
+ "usage": "out"
20713
+ },
20607
20714
  "TraceResult": {
20608
20715
  "document": "消息轨迹结果",
20609
20716
  "members": [
@@ -904,6 +904,14 @@
904
904
  "title": "导出消息详情"
905
905
  }
906
906
  ],
907
+ "GetTopicList": [
908
+ {
909
+ "document": "",
910
+ "input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:GetTopicList\n<公共请求参数>\n\n{\n \"EnvironmentId\": \"devNs\",\n \"Offset\": 1,\n \"Limit\": 1,\n \"ClusterId\": \"pulsar-uahenidn\"\n}",
911
+ "output": "{\n \"Response\": {\n \"RequestId\": \"4854c6de-732f-4b8f-b23b-1081f3bf3bc3\",\n \"TopicList\": [\n {\n \"TopicName\": \"1733317358581\",\n \"PulsarTopicType\": 3\n }\n ],\n \"TotalCount\": 1\n }\n}",
912
+ "title": "查询该租户"
913
+ }
914
+ ],
907
915
  "ImportRocketMQConsumerGroups": [
908
916
  {
909
917
  "document": "导入消费组列表",