tccli 3.0.1241.1__py2.py3-none-any.whl → 3.0.1243.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/apm/v20210622/api.json +216 -216
- tccli/services/apm/v20210622/examples.json +5 -5
- tccli/services/bh/v20230418/api.json +9 -0
- tccli/services/bh/v20230418/examples.json +2 -2
- tccli/services/cfs/v20190719/api.json +20 -20
- tccli/services/cfs/v20190719/examples.json +7 -7
- tccli/services/ckafka/v20190819/api.json +38 -0
- tccli/services/clb/v20180317/api.json +107 -82
- tccli/services/clb/v20180317/examples.json +14 -14
- tccli/services/cls/cls_client.py +220 -8
- tccli/services/cls/v20201016/api.json +417 -39
- tccli/services/cls/v20201016/examples.json +89 -45
- tccli/services/cwp/v20180228/api.json +3 -3
- tccli/services/cwp/v20180228/examples.json +2 -2
- tccli/services/cynosdb/v20190107/api.json +18 -18
- tccli/services/dbbrain/v20210527/api.json +1 -1
- tccli/services/dnspod/v20210323/api.json +173 -119
- tccli/services/dnspod/v20210323/examples.json +18 -18
- tccli/services/ecm/v20190719/api.json +11 -11
- tccli/services/ecm/v20190719/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +896 -841
- tccli/services/ess/v20201111/api.json +18 -9
- tccli/services/ess/v20201111/examples.json +6 -0
- tccli/services/essbasic/v20210526/api.json +80 -2
- tccli/services/gaap/v20180529/api.json +16 -18
- tccli/services/goosefs/v20220519/api.json +17 -17
- tccli/services/goosefs/v20220519/examples.json +4 -4
- tccli/services/gwlb/v20240906/api.json +14 -14
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +1 -1
- tccli/services/iotvideoindustry/v20201201/api.json +244 -192
- tccli/services/iotvideoindustry/v20201201/examples.json +32 -32
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/mna/v20210119/api.json +110 -109
- tccli/services/mna/v20210119/examples.json +63 -63
- tccli/services/mps/v20190612/api.json +9 -0
- tccli/services/ocr/ocr_client.py +110 -4
- tccli/services/ocr/v20181119/api.json +370 -7
- tccli/services/ocr/v20181119/examples.json +20 -4
- tccli/services/pts/v20210728/api.json +37 -34
- tccli/services/pts/v20210728/examples.json +13 -13
- tccli/services/sqlserver/v20180328/api.json +68 -6
- tccli/services/ssl/v20191205/api.json +52 -50
- tccli/services/ssl/v20191205/examples.json +7 -7
- tccli/services/tbaas/v20180416/api.json +9 -6
- tccli/services/tbaas/v20180416/examples.json +2 -2
- tccli/services/tcb/v20180608/api.json +270 -221
- tccli/services/tcb/v20180608/examples.json +22 -22
- tccli/services/tcm/v20210413/api.json +2 -2
- tccli/services/tcm/v20210413/examples.json +2 -2
- tccli/services/tcr/v20190924/api.json +8 -8
- tccli/services/tcr/v20190924/examples.json +4 -4
- tccli/services/tdmq/tdmq_client.py +167 -8
- tccli/services/tdmq/v20200217/api.json +307 -0
- tccli/services/tdmq/v20200217/examples.json +24 -0
- tccli/services/tem/v20210701/api.json +1 -1
- tccli/services/tem/v20210701/examples.json +2 -2
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/teo/v20220901/examples.json +3 -3
- tccli/services/thpc/v20211109/api.json +74 -100
- tccli/services/thpc/v20211109/examples.json +2 -2
- tccli/services/thpc/v20220401/api.json +196 -223
- tccli/services/thpc/v20220401/examples.json +1 -1
- tccli/services/thpc/v20230321/api.json +150 -153
- tccli/services/thpc/v20230321/examples.json +3 -3
- tccli/services/tke/v20180525/api.json +1 -1
- tccli/services/tke/v20180525/examples.json +2 -2
- tccli/services/tke/v20220501/api.json +161 -112
- tccli/services/tke/v20220501/examples.json +15 -21
- tccli/services/trocket/trocket_client.py +53 -0
- tccli/services/trocket/v20230308/api.json +219 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +31 -20
- tccli/services/trtc/v20190722/examples.json +11 -11
- tccli/services/tse/v20201207/api.json +141 -113
- tccli/services/tse/v20201207/examples.json +5 -5
- tccli/services/tsf/v20180326/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +320 -270
- tccli/services/vpc/v20170312/examples.json +40 -40
- tccli/services/waf/v20180125/api.json +2 -2
- {tccli-3.0.1241.1.dist-info → tccli-3.0.1243.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1241.1.dist-info → tccli-3.0.1243.1.dist-info}/RECORD +86 -86
- {tccli-3.0.1241.1.dist-info → tccli-3.0.1243.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1241.1.dist-info → tccli-3.0.1243.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1241.1.dist-info → tccli-3.0.1243.1.dist-info}/license_files/LICENSE +0 -0
@@ -51,8 +51,8 @@
|
|
51
51
|
"CreateCloudBaseRunServerVersion": [
|
52
52
|
{
|
53
53
|
"document": "创建版本",
|
54
|
-
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudBaseRunServerVersion\n<公共请求参数>\n\n{\n \"EnvId\": \"
|
55
|
-
"output": "{\n \"Response\": {\n \"Result\": \"
|
54
|
+
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudBaseRunServerVersion\n<公共请求参数>\n\n{\n \"EnvId\": \"env-sdfdf\",\n \"UploadType\": \"package\",\n \"RepositoryType\": \"\",\n \"FlowRatio\": 0,\n \"DockerfilePath\": \"\",\n \"BuildDir\": \"\",\n \"Cpu\": 0,\n \"Mem\": 0,\n \"MinNum\": 0,\n \"MaxNum\": 0,\n \"PolicyType\": \"cpu\",\n \"PolicyThreshold\": 60,\n \"EnvParams\": \"\",\n \"ContainerPort\": 0,\n \"ServerName\": \"server-1\",\n \"Repository\": \"\",\n \"Branch\": \"\",\n \"VersionRemark\": \"remark\",\n \"PackageName\": \"test.zip\",\n \"PackageVersion\": \"1231\",\n \"ImageInfo\": {\n \"RepositoryName\": \"\",\n \"IsPublic\": true,\n \"TagName\": \"\",\n \"ServerAddr\": \"\",\n \"ImageUrl\": \"\"\n },\n \"CodeDetail\": {\n \"Name\": {\n \"Name\": \"\",\n \"FullName\": \"\"\n },\n \"Url\": \"\"\n },\n \"ImageSecretInfo\": {\n \"RegistryServer\": \"\",\n \"UserName\": \"\",\n \"Password\": \"\",\n \"Email\": \"\"\n },\n \"ImagePullSecret\": \"\",\n \"CustomLogs\": \"\",\n \"InitialDelaySeconds\": 0,\n \"MountVolumeInfo\": [\n {\n \"Name\": \"\",\n \"MountPath\": \"\",\n \"ReadOnly\": true,\n \"NfsVolumes\": [\n {\n \"Server\": \"\",\n \"Path\": \"\",\n \"ReadOnly\": true,\n \"SecretName\": \"\",\n \"EnableEmptyDirVolume\": true\n }\n ]\n }\n ],\n \"AccessType\": 0,\n \"EsInfo\": {\n \"Id\": 0,\n \"SecretName\": \"server\",\n \"Ip\": \"\",\n \"Port\": 0,\n \"Index\": \"\",\n \"Account\": \"\",\n \"Password\": \"\"\n },\n \"EnableUnion\": true,\n \"OperatorRemark\": \"remark\",\n \"ServerPath\": \"\",\n \"ImageReuseKey\": \"\",\n \"SidecarSpecs\": [\n {\n \"ContainerImage\": \"\",\n \"ContainerPort\": 0,\n \"ContainerName\": \"\",\n \"EnvVar\": \"\",\n \"InitialDelaySeconds\": 0,\n \"Cpu\": 0,\n \"Mem\": 0,\n \"Security\": {\n \"Capabilities\": {\n \"Add\": [],\n \"Drop\": []\n }\n },\n \"VolumeMountInfos\": [\n {\n \"Name\": \"\",\n \"MountPath\": \"\",\n \"ReadOnly\": true,\n \"NfsVolumes\": [\n {\n \"Server\": \"\",\n \"Path\": \"\",\n \"ReadOnly\": true,\n \"SecretName\": \"server\",\n \"EnableEmptyDirVolume\": true\n }\n ]\n }\n ]\n }\n ],\n \"Security\": {\n \"Capabilities\": {\n \"Add\": [],\n \"Drop\": []\n }\n },\n \"ServiceVolumes\": [\n {\n \"Name\": \"\",\n \"NFS\": {\n \"Server\": \"\",\n \"Path\": \"\",\n \"ReadOnly\": true,\n \"SecretName\": \"\",\n \"EnableEmptyDirVolume\": true\n },\n \"SecretName\": \"server\",\n \"EnableEmptyDirVolume\": true,\n \"EmptyDir\": {\n \"EnableEmptyDirVolume\": true,\n \"Medium\": \"\",\n \"SizeLimit\": \"\"\n },\n \"HostPath\": {}\n }\n ],\n \"IsCreateJnsGw\": 0,\n \"ServiceVolumeMounts\": [\n {\n \"Name\": \"\",\n \"MountPath\": \"\",\n \"ReadOnly\": true,\n \"SubPath\": \"\",\n \"MountPropagation\": \"\"\n }\n ],\n \"HasDockerfile\": 0,\n \"BaseImage\": \"\",\n \"EntryPoint\": \"\",\n \"RepoLanguage\": \"\",\n \"UploadFilename\": \"\",\n \"PolicyDetail\": [\n {\n \"PolicyType\": \"cpu\",\n \"PolicyThreshold\": 0\n }\n ]\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"Result\": \"\",\n \"VersionName\": \"version-001\",\n \"RunId\": \"\",\n \"RequestId\": \"sdfsdfdf\"\n }\n}",
|
56
56
|
"title": "示例"
|
57
57
|
}
|
58
58
|
],
|
@@ -91,8 +91,8 @@
|
|
91
91
|
"CreateWxCloudBaseRunEnv": [
|
92
92
|
{
|
93
93
|
"document": "创建云托管环境",
|
94
|
-
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateWxCloudBaseRunEnv\n<公共请求参数>\n\n{\n \"WxAppId\": \"
|
95
|
-
"output": "{\n \"Response\": {\n \"EnvId\": \"
|
94
|
+
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateWxCloudBaseRunEnv\n<公共请求参数>\n\n{\n \"WxAppId\": \"wx-sdff\"\n}",
|
95
|
+
"output": "{\n \"Response\": {\n \"EnvId\": \"env-sdfsd\",\n \"TranId\": \"\",\n \"RequestId\": \"sdfsdlkjf\"\n }\n}",
|
96
96
|
"title": "CreateWxCloudBaseRunEnv"
|
97
97
|
}
|
98
98
|
],
|
@@ -199,8 +199,8 @@
|
|
199
199
|
"DescribeCbrServerVersion": [
|
200
200
|
{
|
201
201
|
"document": "查询服务版本的详情",
|
202
|
-
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCbrServerVersion\n<公共请求参数>\n\n{\n \"EnvId\": \"
|
203
|
-
"output": "{\n \"Response\": {\n \"VersionName\": \"
|
202
|
+
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCbrServerVersion\n<公共请求参数>\n\n{\n \"EnvId\": \"env-sdfsf\",\n \"ServerName\": \"server-sdfsf\",\n \"VersionName\": \"version-sdfsfd\"\n}",
|
203
|
+
"output": "{\n \"Response\": {\n \"VersionName\": \"version\",\n \"Remark\": \"\",\n \"DockerfilePath\": \"\",\n \"BuildDir\": \"\",\n \"Cpu\": 0,\n \"Mem\": 0,\n \"MinNum\": 0,\n \"MaxNum\": 0,\n \"EnvParams\": \"\",\n \"CreatedTime\": \"\",\n \"UpdatedTime\": \"\",\n \"VersionIP\": \"\",\n \"VersionPort\": 0,\n \"Status\": \"\",\n \"UploadType\": \"\",\n \"ServerName\": \"\",\n \"IsPublic\": true,\n \"VpcId\": \"\",\n \"SubnetIds\": [\n \"\"\n ],\n \"CustomLogs\": \"\",\n \"ContainerPort\": 0,\n \"InitialDelaySeconds\": 0,\n \"ImageUrl\": \"\",\n \"HasDockerfile\": 0,\n \"BaseImage\": \"\",\n \"EntryPoint\": \"\",\n \"PolicyDetail\": [\n {\n \"PolicyType\": \"\",\n \"PolicyThreshold\": 0\n }\n ],\n \"TkeClusterInfo\": {\n \"ClusterId\": \"\",\n \"VpcId\": \"\",\n \"VersionClbSubnetId\": \"\"\n },\n \"TkeWorkloadType\": \"\",\n \"PackageInfo\": {\n \"PackageName\": \"\",\n \"PackageVersion\": \"\"\n },\n \"RepoInfo\": {\n \"Repo\": \"\",\n \"RepoType\": \"\",\n \"RepoLanguage\": \"\",\n \"Branch\": \"\"\n },\n \"RequestId\": \"sfdfdfsdf\"\n }\n}",
|
204
204
|
"title": "示例"
|
205
205
|
}
|
206
206
|
],
|
@@ -247,8 +247,8 @@
|
|
247
247
|
"DescribeCloudBaseRunOneClickTaskExternal": [
|
248
248
|
{
|
249
249
|
"document": "",
|
250
|
-
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudBaseRunOneClickTaskExternal\n<公共请求参数>\n\n{\n \"ExternalId\": \"
|
251
|
-
"output": "{\n \"Response\": {\n \"Status\": \"
|
250
|
+
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudBaseRunOneClickTaskExternal\n<公共请求参数>\n\n{\n \"ExternalId\": \"sdfsdlkjfdsl\"\n}",
|
251
|
+
"output": "{\n \"Response\": {\n \"Status\": \"running\",\n \"UserEnvId\": \"env-sdsfd\",\n \"EnvId\": \"env-sdfsdf\",\n \"ServerName\": \"server\",\n \"FailReason\": \"\",\n \"ExternalId\": \"\",\n \"RequestId\": \"sdfsdfsdf\",\n \"VersionName\": \"\",\n \"UserUin\": \"13432424\",\n \"CreateTime\": \"2024-12-01 12:00:00\",\n \"StartTime\": \"2024-12-01 12:00:00\",\n \"Stage\": \"envStage\",\n \"Steps\": []\n }\n}",
|
252
252
|
"title": "DescribeCloudBaseRunOneClickTaskExternal"
|
253
253
|
}
|
254
254
|
],
|
@@ -301,16 +301,16 @@
|
|
301
301
|
"DescribeCloudBaseRunServerDomainName": [
|
302
302
|
{
|
303
303
|
"document": "",
|
304
|
-
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudBaseRunServerDomainName\n<公共请求参数>\n\n{\n \"ServerName\": \"
|
305
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
304
|
+
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudBaseRunServerDomainName\n<公共请求参数>\n\n{\n \"ServerName\": \"server\",\n \"UserEnvId\": \"env-sdff\",\n \"UserUin\": \"1242344\",\n \"ExternalId\": \"sdff\"\n}",
|
305
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"sdfsfsdf\",\n \"DomainName\": \"\",\n \"InternalDomain\": \"\",\n \"PublicDomain\": \"\"\n }\n}",
|
306
306
|
"title": "DescribeCloudBaseRunServerDomainName"
|
307
307
|
}
|
308
308
|
],
|
309
309
|
"DescribeCloudBaseRunServerVersion": [
|
310
310
|
{
|
311
311
|
"document": "查询版本信息",
|
312
|
-
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudBaseRunServerVersion\n<公共请求参数>\n\n{\n \"EnvId\": \"
|
313
|
-
"output": "{\n \"Response\": {\n \"VersionName\": \"
|
312
|
+
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudBaseRunServerVersion\n<公共请求参数>\n\n{\n \"EnvId\": \"env-sdfd\",\n \"ServerName\": \"server\",\n \"VersionName\": \"ver\"\n}",
|
313
|
+
"output": "{\n \"Response\": {\n \"VersionName\": \"\",\n \"Remark\": \"\",\n \"DockerfilePath\": \"\",\n \"BuildDir\": \"\",\n \"Cpu\": 0,\n \"Mem\": 0,\n \"MinNum\": 0,\n \"MaxNum\": 0,\n \"PolicyType\": \"\",\n \"PolicyThreshold\": 0,\n \"EnvParams\": \"\",\n \"CreatedTime\": \"\",\n \"UpdatedTime\": \"\",\n \"VersionIP\": \"\",\n \"VersionPort\": 0,\n \"Status\": \"\",\n \"PackageName\": \"\",\n \"PackageVersion\": \"\",\n \"UploadType\": \"\",\n \"RepoType\": \"\",\n \"Repo\": \"\",\n \"Branch\": \"\",\n \"ServerName\": \"\",\n \"IsPublic\": true,\n \"VpcId\": \"\",\n \"SubnetIds\": [\n \"\"\n ],\n \"CustomLogs\": \"\",\n \"ContainerPort\": 0,\n \"InitialDelaySeconds\": 0,\n \"ImageUrl\": \"\",\n \"CpuSize\": 0,\n \"MemSize\": 0,\n \"HasDockerfile\": 0,\n \"BaseImage\": \"\",\n \"EntryPoint\": \"\",\n \"RepoLanguage\": \"\",\n \"PolicyDetail\": [\n {\n \"PolicyType\": \"\",\n \"PolicyThreshold\": 0\n }\n ],\n \"TkeClusterInfo\": {\n \"ClusterId\": \"\",\n \"VpcId\": \"\",\n \"VersionClbSubnetId\": \"\"\n },\n \"TkeWorkloadType\": \"\",\n \"RequestId\": \"\"\n }\n}",
|
314
314
|
"title": "示例"
|
315
315
|
}
|
316
316
|
],
|
@@ -318,7 +318,7 @@
|
|
318
318
|
{
|
319
319
|
"document": "查询云托管版本详情",
|
320
320
|
"input": "https://tcb.tencentcloudapi.com/?Action=DescribeCloudBaseRunVersion\n&EnvId=lotestapi100004\n&ServerName=dockerservicename\n&VersionName=adb\n&<公共请求参数>",
|
321
|
-
"output": "{\n \"Response\": {\n \"VersionName\": \"
|
321
|
+
"output": "{\n \"Response\": {\n \"VersionName\": \"\",\n \"Remark\": \"\",\n \"DockerfilePath\": \"\",\n \"BuildDir\": \"\",\n \"MinNum\": 0,\n \"MaxNum\": 0,\n \"PolicyType\": \"\",\n \"PolicyThreshold\": 0,\n \"EnvParams\": \"\",\n \"CreatedTime\": \"\",\n \"UpdatedTime\": \"\",\n \"VersionIP\": \"\",\n \"VersionPort\": 0,\n \"Status\": \"\",\n \"PackageName\": \"\",\n \"PackageVersion\": \"\",\n \"UploadType\": \"\",\n \"RepoType\": \"\",\n \"Repo\": \"\",\n \"Branch\": \"\",\n \"ServerName\": \"\",\n \"IsPublic\": true,\n \"VpcId\": \"\",\n \"SubnetIds\": [\n \"\"\n ],\n \"CustomLogs\": \"\",\n \"ContainerPort\": 0,\n \"InitialDelaySeconds\": 0,\n \"ImageUrl\": \"\",\n \"CpuSize\": 0,\n \"MemSize\": 0,\n \"PolicyDetail\": [\n {\n \"PolicyType\": \"\",\n \"PolicyThreshold\": 0\n }\n ],\n \"Cpu\": 0,\n \"Mem\": 0,\n \"RequestId\": \"\"\n }\n}",
|
322
322
|
"title": "示例"
|
323
323
|
}
|
324
324
|
],
|
@@ -382,7 +382,7 @@
|
|
382
382
|
{
|
383
383
|
"document": "获取终端用户列表",
|
384
384
|
"input": "https://tcb.tencentcloudapi.com/?Action=DescribeEndUsers\n&EnvId=envid\n&UUIds.0=00000000963b4a85a9b34e2d1fe0c685\n&<公共请求参数>",
|
385
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Users\": [\n {\n \"UserName\": \"
|
385
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Users\": [\n {\n \"UserName\": \"admin\",\n \"QQOpenId\": \"openid123\",\n \"UpdateTime\": \"2025-01-01\",\n \"UUId\": \"abc123\",\n \"AvatarUrl\": \"https://www.baidu.com\",\n \"Gender\": \"male\",\n \"IsDisabled\": false,\n \"IsAnonymous\": true,\n \"CreateTime\": \"2025-01-01\",\n \"HasPassword\": true,\n \"Phone\": \"13092030921\",\n \"WXOpenId\": \"openwx123\",\n \"NickName\": \"steven\",\n \"Email\": \"steven@tencent.com\"\n }\n ],\n \"RequestId\": \"abc12345667\"\n }\n}",
|
386
386
|
"title": "获取终端用户列表"
|
387
387
|
}
|
388
388
|
],
|
@@ -549,8 +549,8 @@
|
|
549
549
|
"DescribeWxCloudBaseRunSubNets": [
|
550
550
|
{
|
551
551
|
"document": "查询子网",
|
552
|
-
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWxCloudBaseRunSubNets\n<公共请求参数>\n\n{\n \"VpcId\": \"
|
553
|
-
"output": "{\n \"Response\": {\n \"SubNetIds\": [
|
552
|
+
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWxCloudBaseRunSubNets\n<公共请求参数>\n\n{\n \"VpcId\": \"vpc-sdfs\"\n}",
|
553
|
+
"output": "{\n \"Response\": {\n \"SubNetIds\": [],\n \"RequestId\": \"sdfsdf\"\n }\n}",
|
554
554
|
"title": "DescribeWxCloudBaseRunSubNets"
|
555
555
|
}
|
556
556
|
],
|
@@ -597,8 +597,8 @@
|
|
597
597
|
"EstablishCloudBaseRunServer": [
|
598
598
|
{
|
599
599
|
"document": "创建云应用服务",
|
600
|
-
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EstablishCloudBaseRunServer\n<公共请求参数>\n\n{\n \"Remark\": \"
|
601
|
-
"output": "{\n \"Response\": {\n \"Result\": \"
|
600
|
+
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EstablishCloudBaseRunServer\n<公共请求参数>\n\n{\n \"Remark\": \"\",\n \"EnvId\": \"\",\n \"IsPublic\": true,\n \"EsInfo\": {\n \"Index\": \"\",\n \"Account\": \"\",\n \"Ip\": \"\",\n \"Id\": 0,\n \"SecretName\": \"\",\n \"Password\": \"\",\n \"Port\": 0\n },\n \"ServiceName\": \"\",\n \"ImageRepo\": \"\"\n}",
|
601
|
+
"output": "{\n \"Response\": {\n \"Result\": \"succ\",\n \"RequestId\": \"sdfsdff\"\n }\n}",
|
602
602
|
"title": "创建云应用服务"
|
603
603
|
}
|
604
604
|
],
|
@@ -693,8 +693,8 @@
|
|
693
693
|
"RollUpdateCloudBaseRunServerVersion": [
|
694
694
|
{
|
695
695
|
"document": "滚动更新",
|
696
|
-
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RollUpdateCloudBaseRunServerVersion\n<公共请求参数>\n\n{\n \"EnvId\": \"
|
697
|
-
"output": "{\n \"Response\": {\n \"Result\": \"
|
696
|
+
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RollUpdateCloudBaseRunServerVersion\n<公共请求参数>\n\n{\n \"EnvId\": \"\",\n \"VersionName\": \"\",\n \"UploadType\": \"\",\n \"RepositoryType\": \"\",\n \"FlowRatio\": 0,\n \"DockerfilePath\": \"\",\n \"BuildDir\": \"\",\n \"Cpu\": \"\",\n \"Mem\": \"\",\n \"MinNum\": \"\",\n \"MaxNum\": \"\",\n \"PolicyType\": \"\",\n \"PolicyThreshold\": \"\",\n \"EnvParams\": \"\",\n \"ContainerPort\": 0,\n \"ServerName\": \"\",\n \"Repository\": \"\",\n \"Branch\": \"\",\n \"VersionRemark\": \"\",\n \"PackageName\": \"\",\n \"PackageVersion\": \"\",\n \"ImageInfo\": {\n \"RepositoryName\": \"\",\n \"IsPublic\": true,\n \"TagName\": \"\",\n \"ServerAddr\": \"\",\n \"ImageUrl\": \"\"\n },\n \"CodeDetail\": {\n \"Name\": {\n \"Name\": \"\",\n \"FullName\": \"\"\n },\n \"Url\": \"\"\n },\n \"IsRebuild\": true,\n \"InitialDelaySeconds\": 0,\n \"MountVolumeInfo\": [\n {\n \"Name\": \"\",\n \"MountPath\": \"\",\n \"ReadOnly\": true,\n \"NfsVolumes\": [\n {\n \"Server\": \"\",\n \"Path\": \"\",\n \"ReadOnly\": true,\n \"SecretName\": \"\",\n \"EnableEmptyDirVolume\": true\n }\n ]\n }\n ],\n \"Rollback\": true,\n \"SnapshotName\": \"\",\n \"CustomLogs\": \"\",\n \"EnableUnion\": true,\n \"OperatorRemark\": \"\",\n \"ServerPath\": \"\",\n \"IsUpdateCls\": true,\n \"PolicyDetail\": [\n {\n \"PolicyType\": \"\",\n \"PolicyThreshold\": 0\n }\n ]\n}",
|
697
|
+
"output": "{\n \"Response\": {\n \"Result\": \"succ\",\n \"VersionName\": \"version\",\n \"RunId\": \"\",\n \"RequestId\": \"sdfasfaf\"\n }\n}",
|
698
698
|
"title": "示例"
|
699
699
|
}
|
700
700
|
],
|
@@ -725,8 +725,8 @@
|
|
725
725
|
"UnfreezeCloudBaseRunServers": [
|
726
726
|
{
|
727
727
|
"document": "",
|
728
|
-
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnfreezeCloudBaseRunServers\n<公共请求参数>\n\n{\n \"EnvId\": \"
|
729
|
-
"output": "{\n \"Response\": {\n \"FailServerList\": [\n \"
|
728
|
+
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnfreezeCloudBaseRunServers\n<公共请求参数>\n\n{\n \"EnvId\": \"env-sdfsdf\",\n \"ServerNameList\": [\n \"server\"\n ]\n}",
|
729
|
+
"output": "{\n \"Response\": {\n \"FailServerList\": [\n \"server\"\n ],\n \"Result\": \"succ\",\n \"RequestId\": \"sdfsfdf\"\n }\n}",
|
730
730
|
"title": "批量解冻服务"
|
731
731
|
}
|
732
732
|
]
|
@@ -577,7 +577,7 @@
|
|
577
577
|
{
|
578
578
|
"disabled": false,
|
579
579
|
"document": "Mesh名称",
|
580
|
-
"example": "
|
580
|
+
"example": "service-mgr",
|
581
581
|
"member": "string",
|
582
582
|
"name": "DisplayName",
|
583
583
|
"required": true,
|
@@ -825,7 +825,7 @@
|
|
825
825
|
{
|
826
826
|
"disabled": false,
|
827
827
|
"document": "mesh名字",
|
828
|
-
"example": "
|
828
|
+
"example": "mesh-xxxxxxxx",
|
829
829
|
"member": "string",
|
830
830
|
"name": "MeshId",
|
831
831
|
"required": true,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"CreateMesh": [
|
4
4
|
{
|
5
5
|
"document": "",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: tcm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateMesh\n<公共请求参数>\n\n{\n \"DisplayName\": \"
|
6
|
+
"input": "POST / HTTP/1.1\nHost: tcm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateMesh\n<公共请求参数>\n\n{\n \"DisplayName\": \"service-mgr\",\n \"MeshVersion\": \"1.8.1\",\n \"Type\": \"HOSTED\",\n \"Config\": {\n \"Istio\": {\n \"OutboundTrafficPolicy\": \"ALLOW_ANY\",\n \"Tracing\": {\n \"Sampling\": 1\n }\n }\n },\n \"ClusterList\": [\n {\n \"ClusterId\": \"{{clusterId}}\",\n \"Region\": \"sh\",\n \"Role\": \"MASTER\",\n \"VpcId\": \"{{vpcId}}\",\n \"SubnetId\": \"{{subnetId}}\",\n \"Config\": {\n \"AutoInjectionNamespaceList\": [\n \"default\"\n ]\n }\n }\n ]\n}",
|
7
7
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"MeshId\": \"mesh-xxxxxxxx\"\n }\n}",
|
8
8
|
"title": "CreateMesh"
|
9
9
|
}
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"DescribeAccessLogConfig": [
|
20
20
|
{
|
21
21
|
"document": "",
|
22
|
-
"input": "POST / HTTP/1.1\nHost: tcm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccessLogConfig\n<公共请求参数>\n\n{\n \"MeshId\": \"\\\"mesh-
|
22
|
+
"input": "POST / HTTP/1.1\nHost: tcm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccessLogConfig\n<公共请求参数>\n\n{\n \"MeshId\": \"\\\"mesh-xxxxxxxx\\\"\"\n}",
|
23
23
|
"output": "{\n \"Response\": {\n \"File\": \"/dev/stdout\",\n \"Format\": \"{xxx: xxx}\",\n \"Encoding\": \"JSON\",\n \"SelectedRange\": {\n \"Items\": [\n {\n \"Namespace\": \"test\",\n \"ClusterName\": \"cls-xxxxxxxx\",\n \"ItemName\": \"test\",\n \"Gateways\": [\n \"test\"\n ]\n }\n ],\n \"All\": true\n },\n \"Template\": \"test\",\n \"CLS\": {\n \"Enable\": true,\n \"LogSet\": \"test\",\n \"Topic\": \"test\",\n \"NeedDelete\": true,\n \"Region\": \"sh\"\n },\n \"Address\": \"x.x.x.x\",\n \"EnableServer\": true,\n \"EnableStdout\": true,\n \"Enable\": true,\n \"RequestId\": \"xxxxxxxxxxxxxxxxxxx\"\n }\n}",
|
24
24
|
"title": "获取Mesh访问日志配置"
|
25
25
|
}
|
@@ -6703,7 +6703,7 @@
|
|
6703
6703
|
{
|
6704
6704
|
"disabled": false,
|
6705
6705
|
"document": "复制源实例ID",
|
6706
|
-
"example": "tcr-
|
6706
|
+
"example": "tcr-dg284imq",
|
6707
6707
|
"member": "string",
|
6708
6708
|
"name": "SourceRegistryId",
|
6709
6709
|
"required": true,
|
@@ -6712,7 +6712,7 @@
|
|
6712
6712
|
{
|
6713
6713
|
"disabled": false,
|
6714
6714
|
"document": "复制目标实例ID",
|
6715
|
-
"example": "tcr-
|
6715
|
+
"example": "tcr-7o4xeay9",
|
6716
6716
|
"member": "string",
|
6717
6717
|
"name": "DestinationRegistryId",
|
6718
6718
|
"required": true,
|
@@ -6721,7 +6721,7 @@
|
|
6721
6721
|
{
|
6722
6722
|
"disabled": false,
|
6723
6723
|
"document": "同步规则",
|
6724
|
-
"example": "
|
6724
|
+
"example": "{\"Name\":\"rule2\",\"DestNamespace\":\"ns2\",\"Override\":false,\"Filters\":[{\"Type\":\"name\",\"Value\":\"ns2/**\"}]}",
|
6725
6725
|
"member": "ReplicationRule",
|
6726
6726
|
"name": "Rule",
|
6727
6727
|
"required": true,
|
@@ -6730,7 +6730,7 @@
|
|
6730
6730
|
{
|
6731
6731
|
"disabled": false,
|
6732
6732
|
"document": "规则描述",
|
6733
|
-
"example": "
|
6733
|
+
"example": "gz-sync2bj",
|
6734
6734
|
"member": "string",
|
6735
6735
|
"name": "Description",
|
6736
6736
|
"required": false,
|
@@ -6739,7 +6739,7 @@
|
|
6739
6739
|
{
|
6740
6740
|
"disabled": false,
|
6741
6741
|
"document": "目标实例的地域ID,如广州是1",
|
6742
|
-
"example": "
|
6742
|
+
"example": "8",
|
6743
6743
|
"member": "uint64",
|
6744
6744
|
"name": "DestinationRegionId",
|
6745
6745
|
"required": false,
|
@@ -6892,7 +6892,7 @@
|
|
6892
6892
|
{
|
6893
6893
|
"disabled": false,
|
6894
6894
|
"document": "实例 Id",
|
6895
|
-
"example": "tcr-
|
6895
|
+
"example": "tcr-dg284imq",
|
6896
6896
|
"member": "string",
|
6897
6897
|
"name": "RegistryId",
|
6898
6898
|
"required": true,
|
@@ -6901,7 +6901,7 @@
|
|
6901
6901
|
{
|
6902
6902
|
"disabled": false,
|
6903
6903
|
"document": "命名空间",
|
6904
|
-
"example": "
|
6904
|
+
"example": "private",
|
6905
6905
|
"member": "string",
|
6906
6906
|
"name": "NamespaceName",
|
6907
6907
|
"required": true,
|
@@ -6910,7 +6910,7 @@
|
|
6910
6910
|
{
|
6911
6911
|
"disabled": false,
|
6912
6912
|
"document": "规则 Id",
|
6913
|
-
"example": "
|
6913
|
+
"example": "2",
|
6914
6914
|
"member": "int64",
|
6915
6915
|
"name": "RuleId",
|
6916
6916
|
"required": true,
|
@@ -751,8 +751,8 @@
|
|
751
751
|
"ManageReplication": [
|
752
752
|
{
|
753
753
|
"document": "",
|
754
|
-
"input": "
|
755
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
754
|
+
"input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ManageReplication\n<公共请求参数>\n\n{\n \"SourceRegistryId\": \"tcr-dg284imq\",\n \"DestinationRegistryId\": \"tcr-7o4xeay9\",\n \"Rule\": {\n \"Name\": \"rule2\",\n \"DestNamespace\": \"ns2\",\n \"Override\": false,\n \"Filters\": [\n {\n \"Type\": \"name\",\n \"Value\": \"ns2/**\"\n }\n ]\n },\n \"Description\": \"gz-sync2bj\",\n \"DestinationRegionId\": 8\n}",
|
755
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3114c283-39df-4966-a181-9e906a3bed2f\"\n }\n}",
|
756
756
|
"title": "创建实例同步"
|
757
757
|
},
|
758
758
|
{
|
@@ -773,8 +773,8 @@
|
|
773
773
|
"ModifyImmutableTagRules": [
|
774
774
|
{
|
775
775
|
"document": "",
|
776
|
-
"input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyImmutableTagRules\n<公共请求参数>\n\n{\n \"
|
777
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
776
|
+
"input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyImmutableTagRules\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"NamespaceName\": \"private\",\n \"RuleId\": 2,\n \"Rule\": {\n \"RepositoryPattern\": \"immutable/**\",\n \"TagPattern\": \"release*\",\n \"RuleId\": 2,\n \"NsName\": \"private\",\n \"RepositoryDecoration\": \"repoMatches\",\n \"TagDecoration\": \"matches\"\n }\n}",
|
777
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1b40fa6c-9f54-41c2-93f6-623748232016\"\n }\n}",
|
778
778
|
"title": "更新规则"
|
779
779
|
}
|
780
780
|
],
|
@@ -1473,7 +1473,7 @@ def doCreateEnvironment(args, parsed_globals):
|
|
1473
1473
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
1474
|
|
1475
1475
|
|
1476
|
-
def
|
1476
|
+
def doDescribeClusters(args, parsed_globals):
|
1477
1477
|
g_param = parse_global_arg(parsed_globals)
|
1478
1478
|
|
1479
1479
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1502,11 +1502,11 @@ def doDescribeTopics(args, parsed_globals):
|
|
1502
1502
|
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
1503
|
client._sdkVersion += ("_CLI_" + __version__)
|
1504
1504
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
-
model = models.
|
1505
|
+
model = models.DescribeClustersRequest()
|
1506
1506
|
model.from_json_string(json.dumps(args))
|
1507
1507
|
start_time = time.time()
|
1508
1508
|
while True:
|
1509
|
-
rsp = client.
|
1509
|
+
rsp = client.DescribeClusters(model)
|
1510
1510
|
result = rsp.to_json_string()
|
1511
1511
|
try:
|
1512
1512
|
json_obj = json.loads(result)
|
@@ -2617,7 +2617,7 @@ def doResetRocketMQConsumerOffSet(args, parsed_globals):
|
|
2617
2617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
2618
|
|
2619
2619
|
|
2620
|
-
def
|
2620
|
+
def doDescribeRabbitMQPermission(args, parsed_globals):
|
2621
2621
|
g_param = parse_global_arg(parsed_globals)
|
2622
2622
|
|
2623
2623
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2646,11 +2646,63 @@ def doDescribeClusters(args, parsed_globals):
|
|
2646
2646
|
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
2647
2647
|
client._sdkVersion += ("_CLI_" + __version__)
|
2648
2648
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2649
|
-
model = models.
|
2649
|
+
model = models.DescribeRabbitMQPermissionRequest()
|
2650
2650
|
model.from_json_string(json.dumps(args))
|
2651
2651
|
start_time = time.time()
|
2652
2652
|
while True:
|
2653
|
-
rsp = client.
|
2653
|
+
rsp = client.DescribeRabbitMQPermission(model)
|
2654
|
+
result = rsp.to_json_string()
|
2655
|
+
try:
|
2656
|
+
json_obj = json.loads(result)
|
2657
|
+
except TypeError as e:
|
2658
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2659
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2660
|
+
break
|
2661
|
+
cur_time = time.time()
|
2662
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2663
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2664
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2665
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2666
|
+
else:
|
2667
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2668
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2669
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2670
|
+
|
2671
|
+
|
2672
|
+
def doDeleteRabbitMQPermission(args, parsed_globals):
|
2673
|
+
g_param = parse_global_arg(parsed_globals)
|
2674
|
+
|
2675
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2676
|
+
cred = credential.CVMRoleCredential()
|
2677
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2678
|
+
cred = credential.STSAssumeRoleCredential(
|
2679
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2680
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2681
|
+
)
|
2682
|
+
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):
|
2683
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2684
|
+
else:
|
2685
|
+
cred = credential.Credential(
|
2686
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2687
|
+
)
|
2688
|
+
http_profile = HttpProfile(
|
2689
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2690
|
+
reqMethod="POST",
|
2691
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2692
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2693
|
+
)
|
2694
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2695
|
+
if g_param[OptionsDefine.Language]:
|
2696
|
+
profile.language = g_param[OptionsDefine.Language]
|
2697
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2698
|
+
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
2699
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2700
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2701
|
+
model = models.DeleteRabbitMQPermissionRequest()
|
2702
|
+
model.from_json_string(json.dumps(args))
|
2703
|
+
start_time = time.time()
|
2704
|
+
while True:
|
2705
|
+
rsp = client.DeleteRabbitMQPermission(model)
|
2654
2706
|
result = rsp.to_json_string()
|
2655
2707
|
try:
|
2656
2708
|
json_obj = json.loads(result)
|
@@ -4541,6 +4593,58 @@ def doVerifyRocketMQConsume(args, parsed_globals):
|
|
4541
4593
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
4594
|
|
4543
4595
|
|
4596
|
+
def doModifyRabbitMQPermission(args, parsed_globals):
|
4597
|
+
g_param = parse_global_arg(parsed_globals)
|
4598
|
+
|
4599
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4600
|
+
cred = credential.CVMRoleCredential()
|
4601
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4602
|
+
cred = credential.STSAssumeRoleCredential(
|
4603
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4604
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4605
|
+
)
|
4606
|
+
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):
|
4607
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4608
|
+
else:
|
4609
|
+
cred = credential.Credential(
|
4610
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4611
|
+
)
|
4612
|
+
http_profile = HttpProfile(
|
4613
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4614
|
+
reqMethod="POST",
|
4615
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4616
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4617
|
+
)
|
4618
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4619
|
+
if g_param[OptionsDefine.Language]:
|
4620
|
+
profile.language = g_param[OptionsDefine.Language]
|
4621
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4622
|
+
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
4623
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4624
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4625
|
+
model = models.ModifyRabbitMQPermissionRequest()
|
4626
|
+
model.from_json_string(json.dumps(args))
|
4627
|
+
start_time = time.time()
|
4628
|
+
while True:
|
4629
|
+
rsp = client.ModifyRabbitMQPermission(model)
|
4630
|
+
result = rsp.to_json_string()
|
4631
|
+
try:
|
4632
|
+
json_obj = json.loads(result)
|
4633
|
+
except TypeError as e:
|
4634
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4635
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4636
|
+
break
|
4637
|
+
cur_time = time.time()
|
4638
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4639
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4640
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4641
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4642
|
+
else:
|
4643
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4644
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4645
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4646
|
+
|
4647
|
+
|
4544
4648
|
def doDescribeAMQPClusters(args, parsed_globals):
|
4545
4649
|
g_param = parse_global_arg(parsed_globals)
|
4546
4650
|
|
@@ -6569,6 +6673,58 @@ def doDescribeRocketMQMsg(args, parsed_globals):
|
|
6569
6673
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6570
6674
|
|
6571
6675
|
|
6676
|
+
def doDescribeTopics(args, parsed_globals):
|
6677
|
+
g_param = parse_global_arg(parsed_globals)
|
6678
|
+
|
6679
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6680
|
+
cred = credential.CVMRoleCredential()
|
6681
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6682
|
+
cred = credential.STSAssumeRoleCredential(
|
6683
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6684
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6685
|
+
)
|
6686
|
+
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):
|
6687
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6688
|
+
else:
|
6689
|
+
cred = credential.Credential(
|
6690
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6691
|
+
)
|
6692
|
+
http_profile = HttpProfile(
|
6693
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6694
|
+
reqMethod="POST",
|
6695
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6696
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6697
|
+
)
|
6698
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6699
|
+
if g_param[OptionsDefine.Language]:
|
6700
|
+
profile.language = g_param[OptionsDefine.Language]
|
6701
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6702
|
+
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
6703
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6704
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6705
|
+
model = models.DescribeTopicsRequest()
|
6706
|
+
model.from_json_string(json.dumps(args))
|
6707
|
+
start_time = time.time()
|
6708
|
+
while True:
|
6709
|
+
rsp = client.DescribeTopics(model)
|
6710
|
+
result = rsp.to_json_string()
|
6711
|
+
try:
|
6712
|
+
json_obj = json.loads(result)
|
6713
|
+
except TypeError as e:
|
6714
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6715
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6716
|
+
break
|
6717
|
+
cur_time = time.time()
|
6718
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6719
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6720
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6721
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6722
|
+
else:
|
6723
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6724
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6725
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6726
|
+
|
6727
|
+
|
6572
6728
|
def doDescribeEnvironmentRoles(args, parsed_globals):
|
6573
6729
|
g_param = parse_global_arg(parsed_globals)
|
6574
6730
|
|
@@ -7648,7 +7804,7 @@ ACTION_MAP = {
|
|
7648
7804
|
"CreateRocketMQGroup": doCreateRocketMQGroup,
|
7649
7805
|
"AcknowledgeMessage": doAcknowledgeMessage,
|
7650
7806
|
"CreateEnvironment": doCreateEnvironment,
|
7651
|
-
"
|
7807
|
+
"DescribeClusters": doDescribeClusters,
|
7652
7808
|
"ModifyPublicNetworkSecurityPolicy": doModifyPublicNetworkSecurityPolicy,
|
7653
7809
|
"ModifyRocketMQEnvironmentRole": doModifyRocketMQEnvironmentRole,
|
7654
7810
|
"ModifyRocketMQTopic": doModifyRocketMQTopic,
|
@@ -7670,7 +7826,8 @@ ACTION_MAP = {
|
|
7670
7826
|
"DeleteCluster": doDeleteCluster,
|
7671
7827
|
"CreateRocketMQVipInstance": doCreateRocketMQVipInstance,
|
7672
7828
|
"ResetRocketMQConsumerOffSet": doResetRocketMQConsumerOffSet,
|
7673
|
-
"
|
7829
|
+
"DescribeRabbitMQPermission": doDescribeRabbitMQPermission,
|
7830
|
+
"DeleteRabbitMQPermission": doDeleteRabbitMQPermission,
|
7674
7831
|
"DescribeRocketMQSourceClusterTopicList": doDescribeRocketMQSourceClusterTopicList,
|
7675
7832
|
"CreateRocketMQEnvironmentRole": doCreateRocketMQEnvironmentRole,
|
7676
7833
|
"DescribeRocketMQConsumerConnectionDetail": doDescribeRocketMQConsumerConnectionDetail,
|
@@ -7707,6 +7864,7 @@ ACTION_MAP = {
|
|
7707
7864
|
"ImportRocketMQConsumerGroups": doImportRocketMQConsumerGroups,
|
7708
7865
|
"DescribeRocketMQVipInstances": doDescribeRocketMQVipInstances,
|
7709
7866
|
"VerifyRocketMQConsume": doVerifyRocketMQConsume,
|
7867
|
+
"ModifyRabbitMQPermission": doModifyRabbitMQPermission,
|
7710
7868
|
"DescribeAMQPClusters": doDescribeAMQPClusters,
|
7711
7869
|
"CreateRabbitMQVipInstance": doCreateRabbitMQVipInstance,
|
7712
7870
|
"DescribeMqMsgTrace": doDescribeMqMsgTrace,
|
@@ -7746,6 +7904,7 @@ ACTION_MAP = {
|
|
7746
7904
|
"CreateRocketMQCluster": doCreateRocketMQCluster,
|
7747
7905
|
"DescribeRabbitMQQueueDetail": doDescribeRabbitMQQueueDetail,
|
7748
7906
|
"DescribeRocketMQMsg": doDescribeRocketMQMsg,
|
7907
|
+
"DescribeTopics": doDescribeTopics,
|
7749
7908
|
"DescribeEnvironmentRoles": doDescribeEnvironmentRoles,
|
7750
7909
|
"DeleteRabbitMQVipInstance": doDeleteRabbitMQVipInstance,
|
7751
7910
|
"PublishCmqMsg": doPublishCmqMsg,
|