tccli 3.0.1246.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.
- tccli/__init__.py +1 -1
- tccli/services/billing/v20180709/api.json +55 -1
- tccli/services/cam/v20190116/api.json +14 -14
- tccli/services/ccc/v20200210/api.json +61 -1
- tccli/services/cls/v20201016/api.json +3 -3
- tccli/services/dbbrain/v20210527/api.json +14 -5
- tccli/services/ecm/v20190719/api.json +17 -11
- tccli/services/ecm/v20190719/examples.json +1 -1
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +4 -4
- tccli/services/lcic/v20220817/api.json +110 -111
- tccli/services/lcic/v20220817/examples.json +40 -40
- tccli/services/lkeap/lkeap_client.py +53 -0
- tccli/services/lkeap/v20240522/api.json +91 -0
- tccli/services/lkeap/v20240522/examples.json +9 -1
- tccli/services/mongodb/v20180408/api.json +153 -112
- tccli/services/mongodb/v20180408/examples.json +2 -2
- tccli/services/mongodb/v20190725/api.json +202 -167
- tccli/services/mongodb/v20190725/examples.json +8 -8
- tccli/services/ocr/v20181119/api.json +10 -10
- tccli/services/ocr/v20181119/examples.json +15 -15
- tccli/services/ssl/v20191205/api.json +1 -1
- tccli/services/tcb/v20180608/api.json +236 -219
- tccli/services/tcb/v20180608/examples.json +9 -9
- tccli/services/tcbr/v20220217/api.json +46 -13
- tccli/services/tcbr/v20220217/examples.json +2 -8
- tccli/services/tcr/v20190924/api.json +72 -68
- tccli/services/tcr/v20190924/examples.json +40 -40
- tccli/services/tdmq/tdmq_client.py +57 -4
- tccli/services/tdmq/v20200217/api.json +107 -0
- tccli/services/tdmq/v20200217/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +33 -33
- tccli/services/vdb/v20230616/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +38 -25
- tccli/services/vpc/v20170312/examples.json +6 -6
- {tccli-3.0.1246.1.dist-info → tccli-3.0.1247.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1246.1.dist-info → tccli-3.0.1247.1.dist-info}/RECORD +41 -41
- {tccli-3.0.1246.1.dist-info → tccli-3.0.1247.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1246.1.dist-info → tccli-3.0.1247.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1246.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": "
|
7
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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=
|
47
|
-
"output": "{\n \"Response\": {\n \"RegistryId\": \"
|
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": "
|
79
|
-
"output": "{\n \"Response\": {\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": "
|
85
|
-
"output": "{\n \"Response\": {\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": "
|
141
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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-
|
163
|
-
"output": "{\n \"Response\": {\n \"CreateTime\": \"
|
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
|
],
|
@@ -231,8 +231,8 @@
|
|
231
231
|
"DeleteImageAccelerateService": [
|
232
232
|
{
|
233
233
|
"document": "",
|
234
|
-
"input": "
|
235
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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": "
|
251
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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,8 +279,8 @@
|
|
279
279
|
"DeleteInstanceToken": [
|
280
280
|
{
|
281
281
|
"document": "",
|
282
|
-
"input": "
|
283
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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
|
],
|
@@ -311,8 +311,8 @@
|
|
311
311
|
"DeleteNamespacePersonal": [
|
312
312
|
{
|
313
313
|
"document": "",
|
314
|
-
"input": "
|
315
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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
|
],
|
@@ -335,8 +335,8 @@
|
|
335
335
|
"DeleteRepositoryPersonal": [
|
336
336
|
{
|
337
337
|
"document": "",
|
338
|
-
"input": "
|
339
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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
|
],
|
@@ -383,8 +383,8 @@
|
|
383
383
|
"DeleteWebhookTrigger": [
|
384
384
|
{
|
385
385
|
"document": "",
|
386
|
-
"input": "
|
387
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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
|
],
|
@@ -400,7 +400,7 @@
|
|
400
400
|
{
|
401
401
|
"document": "",
|
402
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\": \"
|
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,8 +439,8 @@
|
|
439
439
|
"DescribeImageAccelerateService": [
|
440
440
|
{
|
441
441
|
"document": "",
|
442
|
-
"input": "
|
443
|
-
"output": "{\n \"Response\": {\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
|
],
|
@@ -519,8 +519,8 @@
|
|
519
519
|
"DescribeInstanceStatus": [
|
520
520
|
{
|
521
521
|
"document": "",
|
522
|
-
"input": "
|
523
|
-
"output": "{\n \"Response\": {\n \"RegistryStatusSet\": [\n {\n \"Status\": \"
|
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": "
|
627
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"RepoInfo\": [\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": "
|
635
|
-
"output": "{\n \"Response\": {\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": "
|
739
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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=
|
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\": \"
|
853
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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": "
|
891
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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
|
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.
|
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.
|
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
|
-
"
|
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": "导入消费组列表",
|