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.
Files changed (57) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/apigateway/v20180808/DescribeServicesStatus.md +33 -19
  3. tccli/examples/clb/v20180317/CloneLoadBalancer.md +3 -3
  4. tccli/examples/clb/v20180317/DescribeListeners.md +49 -127
  5. tccli/examples/clb/v20180317/DescribeLoadBalancers.md +578 -158
  6. tccli/examples/cls/v20201016/DescribeConfigs.md +2 -1
  7. tccli/examples/cls/v20201016/DescribeKafkaConsumer.md +23 -0
  8. tccli/examples/cls/v20201016/ModifyKafkaConsumer.md +21 -0
  9. tccli/examples/cynosdb/v20190107/DescribeAccounts.md +10 -10
  10. tccli/examples/cynosdb/v20190107/DescribeClusterDetail.md +77 -65
  11. tccli/examples/essbasic/v20210526/DescribeTemplates.md +13 -4
  12. tccli/examples/essbasic/v20210526/OperateChannelTemplate.md +2 -2
  13. tccli/examples/mna/v20210119/GetDevices.md +9 -16
  14. tccli/examples/mna/v20210119/UpdateDevice.md +7 -10
  15. tccli/examples/ms/v20180408/CreateEncryptInstance.md +30 -30
  16. tccli/examples/ms/v20180408/CreateOrderInstance.md +2 -2
  17. tccli/examples/ms/v20180408/DescribeEncryptInstances.md +73 -65
  18. tccli/examples/ms/v20180408/DescribeEncryptPlan.md +34 -34
  19. tccli/examples/ms/v20180408/DescribeOrderInstances.md +1 -1
  20. tccli/examples/oceanus/v20190422/CreateJobConfig.md +1 -1
  21. tccli/examples/tdmq/v20200217/CreateRocketMQVipInstance.md +28 -0
  22. tccli/examples/vpc/v20170312/CreateVpnGateway.md +20 -26
  23. tccli/services/apigateway/v20180808/api.json +119 -12
  24. tccli/services/apigateway/v20180808/examples.json +4 -4
  25. tccli/services/asr/v20190614/api.json +1 -1
  26. tccli/services/clb/v20180317/api.json +190 -60
  27. tccli/services/clb/v20180317/examples.json +10 -10
  28. tccli/services/cls/cls_client.py +110 -4
  29. tccli/services/cls/v20201016/api.json +277 -55
  30. tccli/services/cls/v20201016/examples.json +17 -1
  31. tccli/services/cynosdb/v20190107/api.json +82 -31
  32. tccli/services/cynosdb/v20190107/examples.json +3 -3
  33. tccli/services/dlc/v20210125/api.json +11 -11
  34. tccli/services/emr/v20190103/api.json +10 -0
  35. tccli/services/ess/v20201111/api.json +416 -91
  36. tccli/services/essbasic/v20210526/api.json +113 -78
  37. tccli/services/essbasic/v20210526/examples.json +5 -5
  38. tccli/services/faceid/v20180301/api.json +21 -16
  39. tccli/services/live/v20180801/api.json +42 -22
  40. tccli/services/mna/v20210119/api.json +11 -12
  41. tccli/services/mna/v20210119/examples.json +4 -4
  42. tccli/services/mps/v20190612/api.json +142 -61
  43. tccli/services/ms/v20180408/api.json +92 -19
  44. tccli/services/ms/v20180408/examples.json +31 -31
  45. tccli/services/oceanus/v20190422/api.json +355 -41
  46. tccli/services/oceanus/v20190422/examples.json +1 -1
  47. tccli/services/tdmq/tdmq_client.py +53 -0
  48. tccli/services/tdmq/v20200217/api.json +126 -0
  49. tccli/services/tdmq/v20200217/examples.json +8 -0
  50. tccli/services/tts/v20190823/api.json +1 -1
  51. tccli/services/vpc/v20170312/api.json +45 -65
  52. tccli/services/vpc/v20170312/examples.json +3 -3
  53. {tccli-3.0.923.1.dist-info → tccli-3.0.924.1.dist-info}/METADATA +2 -2
  54. {tccli-3.0.923.1.dist-info → tccli-3.0.924.1.dist-info}/RECORD +57 -54
  55. {tccli-3.0.923.1.dist-info → tccli-3.0.924.1.dist-info}/WHEEL +0 -0
  56. {tccli-3.0.923.1.dist-info → tccli-3.0.924.1.dist-info}/entry_points.txt +0 -0
  57. {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-xxxx\"\n}",
53
- "output": "{\n \"Response\": {\n \"RequestId\": \"83129908-a282-4f9f-8ab-131a3025ba22\"\n }\n}",
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\": 3,\n \"Listeners\": [\n {\n \"ListenerId\": \"lbl-2ytsji1u\",\n \"ListenerName\": \"555\",\n \"CreateTime\": \"2020-12-31 11:36:18\",\n \"Protocol\": \"HTTP\",\n \"Port\": 555,\n \"EndPort\": 0,\n \"HealthCheck\": null,\n \"Certificate\": null,\n \"Scheduler\": null,\n \"SessionExpireTime\": null,\n \"SniSwitch\": 0,\n \"Rules\": [\n {\n \"ListenerId\": \"lbl-2ytsji1u\",\n \"LocationId\": \"loc-nq5fuotq\",\n \"Domain\": \"www.123.com\",\n \"Url\": \"/123\",\n \"CreateTime\": \"2020-12-31 11:36:48\",\n \"Certificate\": null,\n \"HealthCheck\": {\n \"HealthSwitch\": 1,\n \"TimeOut\": 5,\n \"IntervalTime\": 5,\n \"HealthNum\": 3,\n \"UnHealthNum\": 3,\n \"HttpCode\": 15,\n \"HttpCheckPath\": \"/\",\n \"HttpCheckDomain\": \"www.123.com\",\n \"HttpCheckMethod\": \"get\",\n \"CheckPort\": null,\n \"CheckType\": \"TCP\",\n \"HttpVersion\": null,\n \"ContextType\": null,\n \"SendContext\": null,\n \"RecvContext\": null\n },\n \"RewriteTarget\": {\n \"TargetListenerId\": null,\n \"TargetLocationId\": null,\n \"RewriteCode\": null,\n \"TakeUrl\": null,\n \"RewriteType\": null\n },\n \"SessionExpireTime\": 0,\n \"Scheduler\": \"WRR\",\n \"HttpGzip\": true,\n \"BeAutoCreated\": false,\n \"DefaultServer\": true,\n \"Http2\": false,\n \"ForwardType\": \"HTTP\",\n \"TargetType\": \"NODE\",\n \"TargetGroup\": null,\n \"WafDomainId\": \"\",\n \"TrpcCallee\": \"\",\n \"TrpcFunc\": \"\",\n \"QuicStatus\": \"OFF\"\n }\n ],\n \"TargetType\": null,\n \"TargetGroup\": null,\n \"KeepaliveEnable\": 0,\n \"SessionType\": \"NORMAL\",\n \"Toa\": false,\n \"DeregisterTargetRst\": false\n },\n {\n \"ListenerId\": \"lbl-a459zzae\",\n \"ListenerName\": \"222\",\n \"CreateTime\": \"2020-12-10 20:26:54\",\n \"Protocol\": \"HTTP\",\n \"Port\": 222,\n \"EndPort\": 0,\n \"HealthCheck\": null,\n \"Certificate\": null,\n \"Scheduler\": null,\n \"SessionExpireTime\": null,\n \"SniSwitch\": 0,\n \"Rules\": [\n {\n \"ListenerId\": \"lbl-a459zzae\",\n \"LocationId\": \"loc-7pbxg3d4\",\n \"Domain\": \"www.123.com\",\n \"Url\": \"/\",\n \"CreateTime\": \"2020-12-10 20:33:14\",\n \"Certificate\": null,\n \"HealthCheck\": {\n \"HealthSwitch\": 1,\n \"TimeOut\": 5,\n \"IntervalTime\": 5,\n \"HealthNum\": 3,\n \"UnHealthNum\": 3,\n \"HttpCode\": 15,\n \"HttpCheckPath\": \"/\",\n \"HttpCheckDomain\": \"www.123.com\",\n \"HttpCheckMethod\": \"get\",\n \"CheckPort\": null,\n \"CheckType\": \"TCP\",\n \"HttpVersion\": null,\n \"ContextType\": null,\n \"SendContext\": null,\n \"RecvContext\": null\n },\n \"RewriteTarget\": {\n \"TargetListenerId\": null,\n \"TargetLocationId\": null,\n \"RewriteCode\": null,\n \"TakeUrl\": null,\n \"RewriteType\": null\n },\n \"SessionExpireTime\": 0,\n \"Scheduler\": \"WRR\",\n \"HttpGzip\": true,\n \"BeAutoCreated\": false,\n \"DefaultServer\": true,\n \"Http2\": false,\n \"ForwardType\": \"HTTP\",\n \"TargetType\": \"NODE\",\n \"TargetGroup\": null,\n \"WafDomainId\": \"\",\n \"TrpcCallee\": \"\",\n \"TrpcFunc\": \"\",\n \"QuicStatus\": \"OFF\"\n }\n ],\n \"TargetType\": null,\n \"TargetGroup\": null,\n \"KeepaliveEnable\": 0,\n \"SessionType\": \"NORMAL\",\n \"Toa\": false,\n \"DeregisterTargetRst\": false\n }\n ],\n \"RequestId\": \"2682e290-3f8c-4766-98fa-716610e2d351\"\n }\n}",
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\": 2,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"lb-rbw5****\",\n \"LoadBalancerName\": \"test_LB\",\n \"Forward\": 1,\n \"Domain\": \"\",\n \"LoadBalancerVips\": [\n \"XX.XX.XX.XX\"\n ],\n \"LoadBalancerType\": \"OPEN\",\n \"Status\": 1,\n \"CreateTime\": \"2019-07-02 18:12:52\",\n \"StatusTime\": \"2019-07-02 18:12:53\",\n \"ProjectId\": 0,\n \"OpenBgp\": 0,\n \"Snat\": false,\n \"Isolation\": 0,\n \"Log\": \"\",\n \"AnycastZone\": \"\",\n \"AddressIPVersion\": \"ipv4\",\n \"VpcId\": \"vpc-lt9uj4mo\",\n \"NumericalVpcId\": 117008,\n \"TargetRegionInfo\": {\n \"Region\": \"ap-hongkong\",\n \"VpcId\": \"vpc-lt9uj12o\"\n },\n \"SubnetId\": \"\",\n \"SecureGroups\": [],\n \"Tags\": [],\n \"VipIsp\": \"BGP\",\n \"MasterZone\": null,\n \"BackupZoneSet\": null,\n \"IsolatedTime\": null,\n \"ExpireTime\": \"2019-08-02 18:12:52\",\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"NetworkAttributes\": {\n \"InternetChargeType\": \"BANDWIDTH_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10\n },\n \"PrepaidAttributes\": null\n }\n ],\n \"RequestId\": \"eba822a4-67cb-414c-b21d-f98ba3995d12\"\n }\n}",
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\": \"lb-rbw5****\",\n \"LoadBalancerName\": \"test_LB\",\n \"Forward\": 1,\n \"Domain\": \"\",\n \"LoadBalancerVips\": [\n \"XX.XX.XX.XX\"\n ],\n \"LoadBalancerType\": \"OPEN\",\n \"Status\": 1,\n \"CreateTime\": \"2019-07-02 18:12:52\",\n \"StatusTime\": \"2019-07-02 18:12:53\",\n \"ProjectId\": 0,\n \"OpenBgp\": 0,\n \"Snat\": false,\n \"Isolation\": 0,\n \"Log\": \"\",\n \"AnycastZone\": \"\",\n \"AddressIPVersion\": \"ipv4\",\n \"VpcId\": \"vpc-lt9uj4mo\",\n \"NumericalVpcId\": 117008,\n \"TargetRegionInfo\": {\n \"Region\": \"ap-hongkong\",\n \"VpcId\": \"vpc-lt9uj12o\"\n },\n \"SubnetId\": \"\",\n \"SecureGroups\": [],\n \"Tags\": [],\n \"VipIsp\": \"BGP\",\n \"MasterZone\": null,\n \"BackupZoneSet\": null,\n \"IsolatedTime\": null,\n \"ExpireTime\": \"2019-08-02 18:12:52\",\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"NetworkAttributes\": {\n \"InternetChargeType\": \"BANDWIDTH_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10\n },\n \"PrepaidAttributes\": null\n }\n ],\n \"RequestId\": \"eba822a4-67cb-414c-b21d-f98ba3995d12\"\n }\n}",
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\": \"lb-rbw5****\",\n \"LoadBalancerName\": \"test_LB\",\n \"Forward\": 1,\n \"Domain\": \"\",\n \"LoadBalancerVips\": [\n \"XX.XX.XX.XX\"\n ],\n \"LoadBalancerType\": \"OPEN\",\n \"Status\": 1,\n \"CreateTime\": \"2019-07-02 18:12:52\",\n \"StatusTime\": \"2019-07-02 18:12:53\",\n \"ProjectId\": 0,\n \"OpenBgp\": 0,\n \"Snat\": false,\n \"Isolation\": 0,\n \"Log\": \"\",\n \"AnycastZone\": \"\",\n \"AddressIPVersion\": \"ipv4\",\n \"VpcId\": \"vpc-lt9uj4mo\",\n \"NumericalVpcId\": 117008,\n \"TargetRegionInfo\": {\n \"Region\": \"ap-hongkong\",\n \"VpcId\": \"vpc-lt9uj12o\"\n },\n \"SubnetId\": \"\",\n \"SecureGroups\": [],\n \"Tags\": [],\n \"VipIsp\": \"BGP\",\n \"MasterZone\": null,\n \"BackupZoneSet\": null,\n \"IsolatedTime\": null,\n \"ExpireTime\": \"2019-08-02 18:12:52\",\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"NetworkAttributes\": {\n \"InternetChargeType\": \"BANDWIDTH_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10\n },\n \"PrepaidAttributes\": null\n }\n ],\n \"RequestId\": \"eba822a4-67cb-414c-b21d-f98ba3995d12\"\n }\n}",
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\": \"lb-rbw5****\",\n \"LoadBalancerName\": \"test_LB\",\n \"Forward\": 1,\n \"Domain\": \"\",\n \"LoadBalancerVips\": [\n \"1XX.XX.XX.XX\"\n ],\n \"LoadBalancerType\": \"OPEN\",\n \"Status\": 1,\n \"CreateTime\": \"2019-07-02 18:12:52\",\n \"StatusTime\": \"2019-07-02 18:12:53\",\n \"ProjectId\": 0,\n \"OpenBgp\": 0,\n \"Snat\": false,\n \"Isolation\": 0,\n \"Log\": \"\",\n \"AnycastZone\": \"\",\n \"AddressIPVersion\": \"ipv4\",\n \"VpcId\": \"vpc-lt9uj4mo\",\n \"NumericalVpcId\": 117008,\n \"TargetRegionInfo\": {\n \"Region\": \"ap-hongkong\",\n \"VpcId\": \"vpc-lt9uj12o\"\n },\n \"SubnetId\": \"\",\n \"SecureGroups\": [],\n \"Tags\": [],\n \"VipIsp\": \"BGP\",\n \"MasterZone\": null,\n \"BackupZoneSet\": null,\n \"IsolatedTime\": null,\n \"ExpireTime\": \"2019-08-02 18:12:52\",\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"NetworkAttributes\": {\n \"InternetChargeType\": \"BANDWIDTH_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10\n },\n \"PrepaidAttributes\": null\n }\n ],\n \"RequestId\": \"eba822a4-67cb-414c-b21d-f98ba3995d12\"\n }\n}",
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\": \"lb-rbw5****\",\n \"LoadBalancerName\": \"test_LB\",\n \"Forward\": 1,\n \"Domain\": \"\",\n \"LoadBalancerVips\": [\n \"XX.XX.XX.XX\"\n ],\n \"LoadBalancerType\": \"OPEN\",\n \"Status\": 1,\n \"CreateTime\": \"2019-07-02 18:12:52\",\n \"StatusTime\": \"2019-07-02 18:12:53\",\n \"ProjectId\": 0,\n \"OpenBgp\": 0,\n \"Snat\": false,\n \"Isolation\": 0,\n \"Log\": \"\",\n \"AnycastZone\": \"\",\n \"AddressIPVersion\": \"ipv4\",\n \"VpcId\": \"vpc-lt9uj4mo\",\n \"NumericalVpcId\": 117008,\n \"TargetRegionInfo\": {\n \"Region\": \"ap-hongkong\",\n \"VpcId\": \"vpc-lt9uj12o\"\n },\n \"SubnetId\": \"\",\n \"SecureGroups\": [],\n \"Tags\": [\n {\n \"TagKey\": \"test_tag_key\",\n \"TagValue\": \"test_tag_value1\"\n }\n ],\n \"VipIsp\": \"BGP\",\n \"MasterZone\": null,\n \"BackupZoneSet\": null,\n \"IsolatedTime\": null,\n \"ExpireTime\": \"2019-08-02 18:12:52\",\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"NetworkAttributes\": {\n \"InternetChargeType\": \"BANDWIDTH_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10\n },\n \"PrepaidAttributes\": null\n }\n ],\n \"RequestId\": \"eba822a4-67cb-414c-b21d-f98ba3995d12\"\n }\n}",
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
  ],
@@ -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 doModifyConfigExtra(args, parsed_globals):
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.ModifyConfigExtraRequest()
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.ModifyConfigExtra(model)
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
- "ModifyConfigExtra": doModifyConfigExtra,
4429
+ "ModifyKafkaConsumer": doModifyKafkaConsumer,
4324
4430
  "DeleteShipper": doDeleteShipper,
4325
4431
  "DeleteExport": doDeleteExport,
4326
4432
  "DeleteScheduledSql": doDeleteScheduledSql,