tccli 3.0.923.1__py2.py3-none-any.whl → 3.0.924.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/examples/apigateway/v20180808/DescribeServicesStatus.md +33 -19
- tccli/examples/clb/v20180317/CloneLoadBalancer.md +3 -3
- tccli/examples/clb/v20180317/DescribeListeners.md +49 -127
- tccli/examples/clb/v20180317/DescribeLoadBalancers.md +578 -158
- tccli/examples/cls/v20201016/DescribeConfigs.md +2 -1
- tccli/examples/cls/v20201016/DescribeKafkaConsumer.md +23 -0
- tccli/examples/cls/v20201016/ModifyKafkaConsumer.md +21 -0
- tccli/examples/cynosdb/v20190107/DescribeAccounts.md +10 -10
- tccli/examples/cynosdb/v20190107/DescribeClusterDetail.md +77 -65
- tccli/examples/essbasic/v20210526/DescribeTemplates.md +13 -4
- tccli/examples/essbasic/v20210526/OperateChannelTemplate.md +2 -2
- tccli/examples/mna/v20210119/GetDevices.md +9 -16
- tccli/examples/mna/v20210119/UpdateDevice.md +7 -10
- tccli/examples/ms/v20180408/CreateEncryptInstance.md +30 -30
- tccli/examples/ms/v20180408/CreateOrderInstance.md +2 -2
- tccli/examples/ms/v20180408/DescribeEncryptInstances.md +73 -65
- tccli/examples/ms/v20180408/DescribeEncryptPlan.md +34 -34
- tccli/examples/ms/v20180408/DescribeOrderInstances.md +1 -1
- tccli/examples/oceanus/v20190422/CreateJobConfig.md +1 -1
- tccli/examples/tdmq/v20200217/CreateRocketMQVipInstance.md +28 -0
- tccli/examples/vpc/v20170312/CreateVpnGateway.md +20 -26
- tccli/services/apigateway/v20180808/api.json +119 -12
- tccli/services/apigateway/v20180808/examples.json +4 -4
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/clb/v20180317/api.json +190 -60
- tccli/services/clb/v20180317/examples.json +10 -10
- tccli/services/cls/cls_client.py +110 -4
- tccli/services/cls/v20201016/api.json +277 -55
- tccli/services/cls/v20201016/examples.json +17 -1
- tccli/services/cynosdb/v20190107/api.json +82 -31
- tccli/services/cynosdb/v20190107/examples.json +3 -3
- tccli/services/dlc/v20210125/api.json +11 -11
- tccli/services/emr/v20190103/api.json +10 -0
- tccli/services/ess/v20201111/api.json +416 -91
- tccli/services/essbasic/v20210526/api.json +113 -78
- tccli/services/essbasic/v20210526/examples.json +5 -5
- tccli/services/faceid/v20180301/api.json +21 -16
- tccli/services/live/v20180801/api.json +42 -22
- tccli/services/mna/v20210119/api.json +11 -12
- tccli/services/mna/v20210119/examples.json +4 -4
- tccli/services/mps/v20190612/api.json +142 -61
- tccli/services/ms/v20180408/api.json +92 -19
- tccli/services/ms/v20180408/examples.json +31 -31
- tccli/services/oceanus/v20190422/api.json +355 -41
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +126 -0
- tccli/services/tdmq/v20200217/examples.json +8 -0
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +45 -65
- tccli/services/vpc/v20170312/examples.json +3 -3
- {tccli-3.0.923.1.dist-info → tccli-3.0.924.1.dist-info}/METADATA +2 -2
- {tccli-3.0.923.1.dist-info → tccli-3.0.924.1.dist-info}/RECORD +57 -54
- {tccli-3.0.923.1.dist-info → tccli-3.0.924.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.923.1.dist-info → tccli-3.0.924.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.923.1.dist-info → tccli-3.0.924.1.dist-info}/license_files/LICENSE +0 -0
@@ -48,9 +48,9 @@
|
|
48
48
|
],
|
49
49
|
"CloneLoadBalancer": [
|
50
50
|
{
|
51
|
-
"document": "",
|
52
|
-
"input": "POST / HTTP/1.1\nHost: clb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CloneLoadBalancer\n<公共请求参数>\n\n{\n \"LoadBalancerId\": \"lb-
|
53
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"83129908-a282-4f9f-8ab-
|
51
|
+
"document": "克隆负载均衡。",
|
52
|
+
"input": "POST / HTTP/1.1\nHost: clb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CloneLoadBalancer\n<公共请求参数>\n\n{\n \"LoadBalancerId\": \"lb-p10fcs**\"\n}",
|
53
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"83129908-a282-4f9f-8ab-131a3025****\"\n }\n}",
|
54
54
|
"title": "克隆负载均衡"
|
55
55
|
}
|
56
56
|
],
|
@@ -356,13 +356,13 @@
|
|
356
356
|
{
|
357
357
|
"document": "",
|
358
358
|
"input": "https://clb.tencentcloudapi.com/?Action=DescribeListeners\n&LoadBalancerId=lb-aniq7ewx\n&<公共请求参数>",
|
359
|
-
"output": "{\n \"Response\": {\n \"TotalCount\":
|
359
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Listeners\": [\n {\n \"ListenerId\": \"lbl-hd9nfp6o\",\n \"ListenerName\": \"12345\",\n \"CreateTime\": \"2020-12-31 12:03:36\",\n \"Protocol\": \"TCP\",\n \"Port\": 333,\n \"EndPort\": 0,\n \"HealthCheck\": {\n \"HealthSwitch\": 1,\n \"TimeOut\": 2,\n \"IntervalTime\": 5,\n \"HealthNum\": 3,\n \"UnHealthNum\": 3,\n \"CheckPort\": null,\n \"CheckType\": \"TCP\",\n \"HttpCheckDomain\": null,\n \"HttpCheckPath\": null,\n \"HttpCheckMethod\": null,\n \"HttpVersion\": null,\n \"HttpCode\": null,\n \"ContextType\": null,\n \"SendContext\": null,\n \"RecvContext\": null,\n \"ExtendedCode\": null,\n \"SourceIpType\": 0\n },\n \"Certificate\": null,\n \"Scheduler\": \"WRR\",\n \"SessionExpireTime\": 0,\n \"SniSwitch\": 0,\n \"Rules\": null,\n \"TargetType\": \"NODE\",\n \"TargetGroup\": null,\n \"KeepaliveEnable\": null,\n \"SessionType\": \"NORMAL\",\n \"Toa\": false,\n \"DeregisterTargetRst\": false,\n \"MaxConn\": 100,\n \"MaxCps\": 100,\n \"IdleConnectTimeout\": 0,\n \"AttrFlags\": [\n \"abc\"\n ],\n \"TargetGroupList\": null\n }\n ],\n \"RequestId\": \"3ddae670-4a89-4919-af6e-0d6bf195c92e\"\n }\n}",
|
360
360
|
"title": "查询负载均衡实例下的全部监听器信息"
|
361
361
|
},
|
362
362
|
{
|
363
363
|
"document": "",
|
364
364
|
"input": "https://clb.tencentcloudapi.com/?Action=DescribeListeners\n&LoadBalancerId=lb-aniq7ewx\n&Protocol=TCP\n&Port=333\n&ListenerIds.0=lbl-hd9nfp6o\n&<公共请求参数>",
|
365
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Listeners\": [\n {\n \"ListenerId\": \"lbl-hd9nfp6o\",\n \"ListenerName\": \"12345\",\n \"CreateTime\": \"2020-12-31 12:03:36\",\n \"Protocol\": \"TCP\",\n \"Port\": 333,\n \"EndPort\": 0,\n \"HealthCheck\": {\n \"HealthSwitch\": 1,\n \"TimeOut\": 2,\n \"IntervalTime\": 5,\n \"HealthNum\": 3,\n \"UnHealthNum\": 3,\n \"CheckPort\": null,\n \"CheckType\": \"TCP\",\n \"HttpCheckDomain\": null,\n \"HttpCheckPath\": null,\n \"HttpCheckMethod\": null,\n \"HttpVersion\": null,\n \"HttpCode\": null,\n \"ContextType\": null,\n \"SendContext\": null,\n \"RecvContext\": null\n },\n \"Certificate\": null,\n \"Scheduler\": \"WRR\",\n \"SessionExpireTime\": 0,\n \"SniSwitch\": 0,\n \"Rules\": null,\n \"TargetType\": \"NODE\",\n \"TargetGroup\": null,\n \"KeepaliveEnable\": null,\n \"SessionType\": \"NORMAL\",\n \"Toa\": false,\n \"DeregisterTargetRst\": false\n }\n ],\n \"RequestId\": \"3ddae670-4a89-4919-af6e-0d6bf195c92e\"\n }\n}",
|
365
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Listeners\": [\n {\n \"ListenerId\": \"lbl-hd9nfp6o\",\n \"ListenerName\": \"12345\",\n \"CreateTime\": \"2020-12-31 12:03:36\",\n \"Protocol\": \"TCP\",\n \"Port\": 333,\n \"EndPort\": 0,\n \"HealthCheck\": {\n \"HealthSwitch\": 1,\n \"TimeOut\": 2,\n \"IntervalTime\": 5,\n \"HealthNum\": 3,\n \"UnHealthNum\": 3,\n \"CheckPort\": null,\n \"CheckType\": \"TCP\",\n \"HttpCheckDomain\": null,\n \"HttpCheckPath\": null,\n \"HttpCheckMethod\": null,\n \"HttpVersion\": null,\n \"HttpCode\": null,\n \"ContextType\": null,\n \"SendContext\": null,\n \"RecvContext\": null,\n \"ExtendedCode\": null,\n \"SourceIpType\": 0\n },\n \"Certificate\": null,\n \"Scheduler\": \"WRR\",\n \"SessionExpireTime\": 0,\n \"SniSwitch\": 0,\n \"Rules\": null,\n \"TargetType\": \"NODE\",\n \"TargetGroup\": null,\n \"KeepaliveEnable\": null,\n \"SessionType\": \"NORMAL\",\n \"Toa\": false,\n \"DeregisterTargetRst\": false,\n \"MaxConn\": 100,\n \"MaxCps\": 100,\n \"IdleConnectTimeout\": 0,\n \"AttrFlags\": [\n \"abc\"\n ],\n \"TargetGroupList\": null\n }\n ],\n \"RequestId\": \"3ddae670-4a89-4919-af6e-0d6bf195c92e\"\n }\n}",
|
366
366
|
"title": "按照端口、协议及监听器ID查询监听器"
|
367
367
|
}
|
368
368
|
],
|
@@ -400,31 +400,31 @@
|
|
400
400
|
{
|
401
401
|
"document": "查询绑定了内网IP为172.26.0.11的后端服务的负载均衡实例。",
|
402
402
|
"input": "POST / HTTP/1.1\nHost: clb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLoadBalancers\n<公共请求参数>\n\n{\n \"BackendPrivateIps\": [\n \"172.26.0.11\"\n ],\n \"WithRs\": \"1\"\n}",
|
403
|
-
"output": "{\n \"Response\": {\n \"TotalCount\":
|
403
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"abc\",\n \"LoadBalancerName\": \"abc\",\n \"LoadBalancerType\": \"abc\",\n \"Forward\": 1,\n \"Domain\": \"abc\",\n \"LoadBalancerVips\": [\n \"abc\"\n ],\n \"Status\": 1,\n \"CreateTime\": \"abc\",\n \"StatusTime\": \"abc\",\n \"ProjectId\": 1,\n \"VpcId\": \"abc\",\n \"OpenBgp\": 1,\n \"Snat\": true,\n \"Isolation\": 1,\n \"Log\": \"abc\",\n \"SubnetId\": \"abc\",\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"SecureGroups\": [\n \"abc\"\n ],\n \"TargetRegionInfo\": {\n \"Region\": \"abc\",\n \"VpcId\": \"abc\"\n },\n \"AnycastZone\": \"abc\",\n \"AddressIPVersion\": \"abc\",\n \"NumericalVpcId\": 1,\n \"VipIsp\": \"abc\",\n \"MasterZone\": {\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"ZoneName\": \"abc\",\n \"ZoneRegion\": \"abc\",\n \"LocalZone\": true,\n \"EdgeZone\": true\n },\n \"BackupZoneSet\": [\n {\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"ZoneName\": \"abc\",\n \"ZoneRegion\": \"abc\",\n \"LocalZone\": true,\n \"EdgeZone\": true\n }\n ],\n \"IsolatedTime\": \"abc\",\n \"ExpireTime\": \"abc\",\n \"ChargeType\": \"abc\",\n \"NetworkAttributes\": {\n \"InternetChargeType\": \"abc\",\n \"InternetMaxBandwidthOut\": 0,\n \"BandwidthpkgSubType\": \"abc\"\n },\n \"PrepaidAttributes\": {\n \"RenewFlag\": \"abc\",\n \"Period\": 0\n },\n \"LogSetId\": \"abc\",\n \"LogTopicId\": \"abc\",\n \"AddressIPv6\": \"abc\",\n \"ExtraInfo\": {\n \"ZhiTong\": true,\n \"TgwGroupName\": \"abc\"\n },\n \"IsDDos\": true,\n \"ConfigId\": \"abc\",\n \"LoadBalancerPassToTarget\": true,\n \"ExclusiveCluster\": {\n \"L4Clusters\": [\n {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n ],\n \"L7Clusters\": [\n {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n ],\n \"ClassicalCluster\": {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n },\n \"IPv6Mode\": \"abc\",\n \"SnatPro\": true,\n \"SnatIps\": [\n {\n \"SubnetId\": \"abc\",\n \"Ip\": \"abc\"\n }\n ],\n \"SlaType\": \"abc\",\n \"IsBlock\": true,\n \"IsBlockTime\": \"abc\",\n \"LocalBgp\": true,\n \"ClusterTag\": \"abc\",\n \"MixIpTarget\": true,\n \"Zones\": [\n \"abc\"\n ],\n \"NfvInfo\": \"abc\",\n \"HealthLogSetId\": \"abc\",\n \"HealthLogTopicId\": \"abc\",\n \"ClusterIds\": [\n \"abc\"\n ],\n \"AttributeFlags\": [\n \"abc\"\n ],\n \"LoadBalancerDomain\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
404
404
|
"title": "查询后端绑定了指定内网IP的机器的负载均衡"
|
405
405
|
},
|
406
406
|
{
|
407
407
|
"document": "",
|
408
408
|
"input": "POST / HTTP/1.1\nHost: clb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLoadBalancers\n<公共请求参数>\n\n{\n \"SearchKey\": \"test_LB\"\n}",
|
409
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"
|
409
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"abc\",\n \"LoadBalancerName\": \"abc\",\n \"LoadBalancerType\": \"abc\",\n \"Forward\": 1,\n \"Domain\": \"abc\",\n \"LoadBalancerVips\": [\n \"abc\"\n ],\n \"Status\": 1,\n \"CreateTime\": \"abc\",\n \"StatusTime\": \"abc\",\n \"ProjectId\": 1,\n \"VpcId\": \"abc\",\n \"OpenBgp\": 1,\n \"Snat\": true,\n \"Isolation\": 1,\n \"Log\": \"abc\",\n \"SubnetId\": \"abc\",\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"SecureGroups\": [\n \"abc\"\n ],\n \"TargetRegionInfo\": {\n \"Region\": \"abc\",\n \"VpcId\": \"abc\"\n },\n \"AnycastZone\": \"abc\",\n \"AddressIPVersion\": \"abc\",\n \"NumericalVpcId\": 1,\n \"VipIsp\": \"abc\",\n \"MasterZone\": {\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"ZoneName\": \"abc\",\n \"ZoneRegion\": \"abc\",\n \"LocalZone\": true,\n \"EdgeZone\": true\n },\n \"BackupZoneSet\": [\n {\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"ZoneName\": \"abc\",\n \"ZoneRegion\": \"abc\",\n \"LocalZone\": true,\n \"EdgeZone\": true\n }\n ],\n \"IsolatedTime\": \"abc\",\n \"ExpireTime\": \"abc\",\n \"ChargeType\": \"abc\",\n \"NetworkAttributes\": {\n \"InternetChargeType\": \"abc\",\n \"InternetMaxBandwidthOut\": 0,\n \"BandwidthpkgSubType\": \"abc\"\n },\n \"PrepaidAttributes\": {\n \"RenewFlag\": \"abc\",\n \"Period\": 0\n },\n \"LogSetId\": \"abc\",\n \"LogTopicId\": \"abc\",\n \"AddressIPv6\": \"abc\",\n \"ExtraInfo\": {\n \"ZhiTong\": true,\n \"TgwGroupName\": \"abc\"\n },\n \"IsDDos\": true,\n \"ConfigId\": \"abc\",\n \"LoadBalancerPassToTarget\": true,\n \"ExclusiveCluster\": {\n \"L4Clusters\": [\n {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n ],\n \"L7Clusters\": [\n {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n ],\n \"ClassicalCluster\": {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n },\n \"IPv6Mode\": \"abc\",\n \"SnatPro\": true,\n \"SnatIps\": [\n {\n \"SubnetId\": \"abc\",\n \"Ip\": \"abc\"\n }\n ],\n \"SlaType\": \"abc\",\n \"IsBlock\": true,\n \"IsBlockTime\": \"abc\",\n \"LocalBgp\": true,\n \"ClusterTag\": \"abc\",\n \"MixIpTarget\": true,\n \"Zones\": [\n \"abc\"\n ],\n \"NfvInfo\": \"abc\",\n \"HealthLogSetId\": \"abc\",\n \"HealthLogTopicId\": \"abc\",\n \"ClusterIds\": [\n \"abc\"\n ],\n \"AttributeFlags\": [\n \"abc\"\n ],\n \"LoadBalancerDomain\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
410
410
|
"title": "根据名称、域名、VIP多个字段模糊查询负载均衡实例"
|
411
411
|
},
|
412
412
|
{
|
413
413
|
"document": "",
|
414
414
|
"input": "POST / HTTP/1.1\nHost: clb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLoadBalancers\n<公共请求参数>\n\n{\n \"LoadBalancerIds\": [\n \"lb-rbw5****\"\n ]\n}",
|
415
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"
|
415
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"abc\",\n \"LoadBalancerName\": \"abc\",\n \"LoadBalancerType\": \"abc\",\n \"Forward\": 1,\n \"Domain\": \"abc\",\n \"LoadBalancerVips\": [\n \"abc\"\n ],\n \"Status\": 1,\n \"CreateTime\": \"abc\",\n \"StatusTime\": \"abc\",\n \"ProjectId\": 1,\n \"VpcId\": \"abc\",\n \"OpenBgp\": 1,\n \"Snat\": true,\n \"Isolation\": 1,\n \"Log\": \"abc\",\n \"SubnetId\": \"abc\",\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"SecureGroups\": [\n \"abc\"\n ],\n \"TargetRegionInfo\": {\n \"Region\": \"abc\",\n \"VpcId\": \"abc\"\n },\n \"AnycastZone\": \"abc\",\n \"AddressIPVersion\": \"abc\",\n \"NumericalVpcId\": 1,\n \"VipIsp\": \"abc\",\n \"MasterZone\": {\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"ZoneName\": \"abc\",\n \"ZoneRegion\": \"abc\",\n \"LocalZone\": true,\n \"EdgeZone\": true\n },\n \"BackupZoneSet\": [\n {\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"ZoneName\": \"abc\",\n \"ZoneRegion\": \"abc\",\n \"LocalZone\": true,\n \"EdgeZone\": true\n }\n ],\n \"IsolatedTime\": \"abc\",\n \"ExpireTime\": \"abc\",\n \"ChargeType\": \"abc\",\n \"NetworkAttributes\": {\n \"InternetChargeType\": \"abc\",\n \"InternetMaxBandwidthOut\": 0,\n \"BandwidthpkgSubType\": \"abc\"\n },\n \"PrepaidAttributes\": {\n \"RenewFlag\": \"abc\",\n \"Period\": 0\n },\n \"LogSetId\": \"abc\",\n \"LogTopicId\": \"abc\",\n \"AddressIPv6\": \"abc\",\n \"ExtraInfo\": {\n \"ZhiTong\": true,\n \"TgwGroupName\": \"abc\"\n },\n \"IsDDos\": true,\n \"ConfigId\": \"abc\",\n \"LoadBalancerPassToTarget\": true,\n \"ExclusiveCluster\": {\n \"L4Clusters\": [\n {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n ],\n \"L7Clusters\": [\n {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n ],\n \"ClassicalCluster\": {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n },\n \"IPv6Mode\": \"abc\",\n \"SnatPro\": true,\n \"SnatIps\": [\n {\n \"SubnetId\": \"abc\",\n \"Ip\": \"abc\"\n }\n ],\n \"SlaType\": \"abc\",\n \"IsBlock\": true,\n \"IsBlockTime\": \"abc\",\n \"LocalBgp\": true,\n \"ClusterTag\": \"abc\",\n \"MixIpTarget\": true,\n \"Zones\": [\n \"abc\"\n ],\n \"NfvInfo\": \"abc\",\n \"HealthLogSetId\": \"abc\",\n \"HealthLogTopicId\": \"abc\",\n \"ClusterIds\": [\n \"abc\"\n ],\n \"AttributeFlags\": [\n \"abc\"\n ],\n \"LoadBalancerDomain\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
416
416
|
"title": "根据负载均衡实例ID来查询"
|
417
417
|
},
|
418
418
|
{
|
419
419
|
"document": "",
|
420
420
|
"input": "POST / HTTP/1.1\nHost: clb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLoadBalancers\n<公共请求参数>\n\n{\n \"ProjectId\": \"0\",\n \"LoadBalancerType\": \"OPEN\",\n \"LoadBalancerVips\": [\n \"XX.XX.XX.XX\"\n ],\n \"LoadBalancerName\": \"test_LB\"\n}",
|
421
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"
|
421
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"abc\",\n \"LoadBalancerName\": \"abc\",\n \"LoadBalancerType\": \"abc\",\n \"Forward\": 1,\n \"Domain\": \"abc\",\n \"LoadBalancerVips\": [\n \"abc\"\n ],\n \"Status\": 1,\n \"CreateTime\": \"abc\",\n \"StatusTime\": \"abc\",\n \"ProjectId\": 1,\n \"VpcId\": \"abc\",\n \"OpenBgp\": 1,\n \"Snat\": true,\n \"Isolation\": 1,\n \"Log\": \"abc\",\n \"SubnetId\": \"abc\",\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"SecureGroups\": [\n \"abc\"\n ],\n \"TargetRegionInfo\": {\n \"Region\": \"abc\",\n \"VpcId\": \"abc\"\n },\n \"AnycastZone\": \"abc\",\n \"AddressIPVersion\": \"abc\",\n \"NumericalVpcId\": 1,\n \"VipIsp\": \"abc\",\n \"MasterZone\": {\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"ZoneName\": \"abc\",\n \"ZoneRegion\": \"abc\",\n \"LocalZone\": true,\n \"EdgeZone\": true\n },\n \"BackupZoneSet\": [\n {\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"ZoneName\": \"abc\",\n \"ZoneRegion\": \"abc\",\n \"LocalZone\": true,\n \"EdgeZone\": true\n }\n ],\n \"IsolatedTime\": \"abc\",\n \"ExpireTime\": \"abc\",\n \"ChargeType\": \"abc\",\n \"NetworkAttributes\": {\n \"InternetChargeType\": \"abc\",\n \"InternetMaxBandwidthOut\": 0,\n \"BandwidthpkgSubType\": \"abc\"\n },\n \"PrepaidAttributes\": {\n \"RenewFlag\": \"abc\",\n \"Period\": 0\n },\n \"LogSetId\": \"abc\",\n \"LogTopicId\": \"abc\",\n \"AddressIPv6\": \"abc\",\n \"ExtraInfo\": {\n \"ZhiTong\": true,\n \"TgwGroupName\": \"abc\"\n },\n \"IsDDos\": true,\n \"ConfigId\": \"abc\",\n \"LoadBalancerPassToTarget\": true,\n \"ExclusiveCluster\": {\n \"L4Clusters\": [\n {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n ],\n \"L7Clusters\": [\n {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n ],\n \"ClassicalCluster\": {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n },\n \"IPv6Mode\": \"abc\",\n \"SnatPro\": true,\n \"SnatIps\": [\n {\n \"SubnetId\": \"abc\",\n \"Ip\": \"abc\"\n }\n ],\n \"SlaType\": \"abc\",\n \"IsBlock\": true,\n \"IsBlockTime\": \"abc\",\n \"LocalBgp\": true,\n \"ClusterTag\": \"abc\",\n \"MixIpTarget\": true,\n \"Zones\": [\n \"abc\"\n ],\n \"NfvInfo\": \"abc\",\n \"HealthLogSetId\": \"abc\",\n \"HealthLogTopicId\": \"abc\",\n \"ClusterIds\": [\n \"abc\"\n ],\n \"AttributeFlags\": [\n \"abc\"\n ],\n \"LoadBalancerDomain\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
422
422
|
"title": "根据负载均衡类型、所属项目、负载均衡名称、负载均衡实例的vip来查询"
|
423
423
|
},
|
424
424
|
{
|
425
425
|
"document": "",
|
426
426
|
"input": "POST / HTTP/1.1\nHost: clb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLoadBalancers\n<公共请求参数>\n\n{\n \"ProjectId\": \"0\",\n \"LoadBalancerType\": \"OPEN\",\n \"Filters\": [\n {\n \"Values\": [\n \"test_tag_value2\",\n \"test_tag_value1\"\n ],\n \"Name\": \"tag:test_tag_key\"\n }\n ],\n \"LoadBalancerName\": \"test_LB\"\n}",
|
427
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"
|
427
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"abc\",\n \"LoadBalancerName\": \"abc\",\n \"LoadBalancerType\": \"abc\",\n \"Forward\": 1,\n \"Domain\": \"abc\",\n \"LoadBalancerVips\": [\n \"abc\"\n ],\n \"Status\": 1,\n \"CreateTime\": \"abc\",\n \"StatusTime\": \"abc\",\n \"ProjectId\": 1,\n \"VpcId\": \"abc\",\n \"OpenBgp\": 1,\n \"Snat\": true,\n \"Isolation\": 1,\n \"Log\": \"abc\",\n \"SubnetId\": \"abc\",\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"SecureGroups\": [\n \"abc\"\n ],\n \"TargetRegionInfo\": {\n \"Region\": \"abc\",\n \"VpcId\": \"abc\"\n },\n \"AnycastZone\": \"abc\",\n \"AddressIPVersion\": \"abc\",\n \"NumericalVpcId\": 1,\n \"VipIsp\": \"abc\",\n \"MasterZone\": {\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"ZoneName\": \"abc\",\n \"ZoneRegion\": \"abc\",\n \"LocalZone\": true,\n \"EdgeZone\": true\n },\n \"BackupZoneSet\": [\n {\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"ZoneName\": \"abc\",\n \"ZoneRegion\": \"abc\",\n \"LocalZone\": true,\n \"EdgeZone\": true\n }\n ],\n \"IsolatedTime\": \"abc\",\n \"ExpireTime\": \"abc\",\n \"ChargeType\": \"abc\",\n \"NetworkAttributes\": {\n \"InternetChargeType\": \"abc\",\n \"InternetMaxBandwidthOut\": 0,\n \"BandwidthpkgSubType\": \"abc\"\n },\n \"PrepaidAttributes\": {\n \"RenewFlag\": \"abc\",\n \"Period\": 0\n },\n \"LogSetId\": \"abc\",\n \"LogTopicId\": \"abc\",\n \"AddressIPv6\": \"abc\",\n \"ExtraInfo\": {\n \"ZhiTong\": true,\n \"TgwGroupName\": \"abc\"\n },\n \"IsDDos\": true,\n \"ConfigId\": \"abc\",\n \"LoadBalancerPassToTarget\": true,\n \"ExclusiveCluster\": {\n \"L4Clusters\": [\n {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n ],\n \"L7Clusters\": [\n {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n ],\n \"ClassicalCluster\": {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Zone\": \"abc\"\n }\n },\n \"IPv6Mode\": \"abc\",\n \"SnatPro\": true,\n \"SnatIps\": [\n {\n \"SubnetId\": \"abc\",\n \"Ip\": \"abc\"\n }\n ],\n \"SlaType\": \"abc\",\n \"IsBlock\": true,\n \"IsBlockTime\": \"abc\",\n \"LocalBgp\": true,\n \"ClusterTag\": \"abc\",\n \"MixIpTarget\": true,\n \"Zones\": [\n \"abc\"\n ],\n \"NfvInfo\": \"abc\",\n \"HealthLogSetId\": \"abc\",\n \"HealthLogTopicId\": \"abc\",\n \"ClusterIds\": [\n \"abc\"\n ],\n \"AttributeFlags\": [\n \"abc\"\n ],\n \"LoadBalancerDomain\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
428
428
|
"title": "根据负载均衡的标签键值对过滤查询"
|
429
429
|
}
|
430
430
|
],
|
tccli/services/cls/cls_client.py
CHANGED
@@ -2201,6 +2201,58 @@ def doDeleteConfigExtra(args, parsed_globals):
|
|
2201
2201
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2202
|
|
2203
2203
|
|
2204
|
+
def doModifyConfigExtra(args, parsed_globals):
|
2205
|
+
g_param = parse_global_arg(parsed_globals)
|
2206
|
+
|
2207
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2208
|
+
cred = credential.CVMRoleCredential()
|
2209
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2210
|
+
cred = credential.STSAssumeRoleCredential(
|
2211
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2212
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
2213
|
+
)
|
2214
|
+
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):
|
2215
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2216
|
+
else:
|
2217
|
+
cred = credential.Credential(
|
2218
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2219
|
+
)
|
2220
|
+
http_profile = HttpProfile(
|
2221
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2222
|
+
reqMethod="POST",
|
2223
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2224
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2225
|
+
)
|
2226
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2227
|
+
if g_param[OptionsDefine.Language]:
|
2228
|
+
profile.language = g_param[OptionsDefine.Language]
|
2229
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2230
|
+
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2232
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
+
model = models.ModifyConfigExtraRequest()
|
2234
|
+
model.from_json_string(json.dumps(args))
|
2235
|
+
start_time = time.time()
|
2236
|
+
while True:
|
2237
|
+
rsp = client.ModifyConfigExtra(model)
|
2238
|
+
result = rsp.to_json_string()
|
2239
|
+
try:
|
2240
|
+
json_obj = json.loads(result)
|
2241
|
+
except TypeError as e:
|
2242
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2243
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2244
|
+
break
|
2245
|
+
cur_time = time.time()
|
2246
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2247
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2248
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2249
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2250
|
+
else:
|
2251
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2252
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2253
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
|
+
|
2255
|
+
|
2204
2256
|
def doCreateAlarm(args, parsed_globals):
|
2205
2257
|
g_param = parse_global_arg(parsed_globals)
|
2206
2258
|
|
@@ -3300,6 +3352,58 @@ def doCreateTopic(args, parsed_globals):
|
|
3300
3352
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3301
3353
|
|
3302
3354
|
|
3355
|
+
def doDescribeKafkaConsumer(args, parsed_globals):
|
3356
|
+
g_param = parse_global_arg(parsed_globals)
|
3357
|
+
|
3358
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3359
|
+
cred = credential.CVMRoleCredential()
|
3360
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3361
|
+
cred = credential.STSAssumeRoleCredential(
|
3362
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3363
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
3364
|
+
)
|
3365
|
+
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):
|
3366
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3367
|
+
else:
|
3368
|
+
cred = credential.Credential(
|
3369
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3370
|
+
)
|
3371
|
+
http_profile = HttpProfile(
|
3372
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3373
|
+
reqMethod="POST",
|
3374
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3375
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3376
|
+
)
|
3377
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3378
|
+
if g_param[OptionsDefine.Language]:
|
3379
|
+
profile.language = g_param[OptionsDefine.Language]
|
3380
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3381
|
+
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
3382
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3383
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3384
|
+
model = models.DescribeKafkaConsumerRequest()
|
3385
|
+
model.from_json_string(json.dumps(args))
|
3386
|
+
start_time = time.time()
|
3387
|
+
while True:
|
3388
|
+
rsp = client.DescribeKafkaConsumer(model)
|
3389
|
+
result = rsp.to_json_string()
|
3390
|
+
try:
|
3391
|
+
json_obj = json.loads(result)
|
3392
|
+
except TypeError as e:
|
3393
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3394
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3395
|
+
break
|
3396
|
+
cur_time = time.time()
|
3397
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3398
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3399
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3400
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3401
|
+
else:
|
3402
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3403
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3404
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3405
|
+
|
3406
|
+
|
3303
3407
|
def doDescribeLogContext(args, parsed_globals):
|
3304
3408
|
g_param = parse_global_arg(parsed_globals)
|
3305
3409
|
|
@@ -3820,7 +3924,7 @@ def doDescribeConfigMachineGroups(args, parsed_globals):
|
|
3820
3924
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3821
3925
|
|
3822
3926
|
|
3823
|
-
def
|
3927
|
+
def doModifyKafkaConsumer(args, parsed_globals):
|
3824
3928
|
g_param = parse_global_arg(parsed_globals)
|
3825
3929
|
|
3826
3930
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3849,11 +3953,11 @@ def doModifyConfigExtra(args, parsed_globals):
|
|
3849
3953
|
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
3850
3954
|
client._sdkVersion += ("_CLI_" + __version__)
|
3851
3955
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3852
|
-
model = models.
|
3956
|
+
model = models.ModifyKafkaConsumerRequest()
|
3853
3957
|
model.from_json_string(json.dumps(args))
|
3854
3958
|
start_time = time.time()
|
3855
3959
|
while True:
|
3856
|
-
rsp = client.
|
3960
|
+
rsp = client.ModifyKafkaConsumer(model)
|
3857
3961
|
result = rsp.to_json_string()
|
3858
3962
|
try:
|
3859
3963
|
json_obj = json.loads(result)
|
@@ -4289,6 +4393,7 @@ ACTION_MAP = {
|
|
4289
4393
|
"DescribeCosRecharges": doDescribeCosRecharges,
|
4290
4394
|
"DescribePartitions": doDescribePartitions,
|
4291
4395
|
"DeleteConfigExtra": doDeleteConfigExtra,
|
4396
|
+
"ModifyConfigExtra": doModifyConfigExtra,
|
4292
4397
|
"CreateAlarm": doCreateAlarm,
|
4293
4398
|
"CreateShipper": doCreateShipper,
|
4294
4399
|
"DescribeDashboards": doDescribeDashboards,
|
@@ -4310,6 +4415,7 @@ ACTION_MAP = {
|
|
4310
4415
|
"ModifyShipper": doModifyShipper,
|
4311
4416
|
"SearchLog": doSearchLog,
|
4312
4417
|
"CreateTopic": doCreateTopic,
|
4418
|
+
"DescribeKafkaConsumer": doDescribeKafkaConsumer,
|
4313
4419
|
"DescribeLogContext": doDescribeLogContext,
|
4314
4420
|
"DescribeConsumer": doDescribeConsumer,
|
4315
4421
|
"ModifyAlarmNotice": doModifyAlarmNotice,
|
@@ -4320,7 +4426,7 @@ ACTION_MAP = {
|
|
4320
4426
|
"DescribeMachines": doDescribeMachines,
|
4321
4427
|
"RetryShipperTask": doRetryShipperTask,
|
4322
4428
|
"DescribeConfigMachineGroups": doDescribeConfigMachineGroups,
|
4323
|
-
"
|
4429
|
+
"ModifyKafkaConsumer": doModifyKafkaConsumer,
|
4324
4430
|
"DeleteShipper": doDeleteShipper,
|
4325
4431
|
"DeleteExport": doDeleteExport,
|
4326
4432
|
"DeleteScheduledSql": doDeleteScheduledSql,
|