tccli 3.0.1128.1__py2.py3-none-any.whl → 3.0.1130.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 (51) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +1 -1
  3. tccli/services/billing/v20180709/api.json +3 -2
  4. tccli/services/bpaas/v20181217/api.json +5 -0
  5. tccli/services/cat/v20180409/api.json +1 -0
  6. tccli/services/cdwdoris/v20211228/api.json +20 -0
  7. tccli/services/ciam/v20220331/api.json +92 -104
  8. tccli/services/cls/v20201016/api.json +5 -5
  9. tccli/services/cynosdb/v20190107/api.json +5 -3
  10. tccli/services/dc/v20180410/api.json +139 -121
  11. tccli/services/dc/v20180410/examples.json +6 -6
  12. tccli/services/es/v20180416/api.json +10 -0
  13. tccli/services/ess/v20201111/api.json +5 -5
  14. tccli/services/essbasic/v20210526/api.json +54 -3
  15. tccli/services/essbasic/v20210526/examples.json +2 -2
  16. tccli/services/hunyuan/v20230901/api.json +4 -4
  17. tccli/services/lighthouse/v20200324/api.json +2 -4
  18. tccli/services/monitor/v20180724/api.json +29 -16
  19. tccli/services/mps/v20190612/api.json +122 -4
  20. tccli/services/mrs/v20200910/api.json +315 -65
  21. tccli/services/ocr/v20181119/api.json +1 -1
  22. tccli/services/organization/v20210331/api.json +28 -0
  23. tccli/services/rce/v20201103/api.json +9 -9
  24. tccli/services/redis/redis_client.py +220 -8
  25. tccli/services/redis/v20180412/api.json +254 -28
  26. tccli/services/redis/v20180412/examples.json +36 -4
  27. tccli/services/ssl/v20191205/api.json +63 -38
  28. tccli/services/ssl/v20191205/examples.json +1 -1
  29. tccli/services/tcm/v20210413/api.json +75 -22
  30. tccli/services/tcm/v20210413/examples.json +1 -1
  31. tccli/services/tcr/v20190924/api.json +8 -8
  32. tccli/services/tcr/v20190924/examples.json +1 -1
  33. tccli/services/tdmq/v20200217/api.json +31 -18
  34. tccli/services/tdmq/v20200217/examples.json +8 -8
  35. tccli/services/teo/v20220901/api.json +4 -4
  36. tccli/services/tke/v20180525/api.json +67 -53
  37. tccli/services/tke/v20180525/examples.json +12 -12
  38. tccli/services/trtc/v20190722/api.json +2 -2
  39. tccli/services/tse/v20201207/api.json +103 -0
  40. tccli/services/tts/v20190823/api.json +1 -1
  41. tccli/services/waf/v20180125/api.json +109 -0
  42. tccli/services/waf/v20180125/examples.json +14 -0
  43. tccli/services/waf/waf_client.py +61 -8
  44. tccli/services/wedata/v20210820/api.json +177 -1
  45. tccli/services/wedata/v20210820/examples.json +10 -2
  46. tccli/services/wedata/wedata_client.py +53 -0
  47. {tccli-3.0.1128.1.dist-info → tccli-3.0.1130.1.dist-info}/METADATA +2 -2
  48. {tccli-3.0.1128.1.dist-info → tccli-3.0.1130.1.dist-info}/RECORD +51 -51
  49. {tccli-3.0.1128.1.dist-info → tccli-3.0.1130.1.dist-info}/WHEEL +0 -0
  50. {tccli-3.0.1128.1.dist-info → tccli-3.0.1130.1.dist-info}/entry_points.txt +0 -0
  51. {tccli-3.0.1128.1.dist-info → tccli-3.0.1130.1.dist-info}/license_files/LICENSE +0 -0
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "AddNodeToNodePool": [
28
28
  {
29
- "document": "",
29
+ "document": "将集群内节点移入节点池",
30
30
  "input": "https://tke.tencentcloudapi.com/?Action=AddNodeToNodePool\n&ClusterId=cls-xxxxxx\n&NodePoolId=np-xxxxxx\n&InstanceIds.0=ins-xxx\n&<公共请求参数>",
31
31
  "output": "{\n \"Response\": {\n \"RequestId\": \"xxxx\"\n }\n}",
32
32
  "title": "将集群内节点移入节点池"
@@ -434,8 +434,8 @@
434
434
  ],
435
435
  "DeleteEKSCluster": [
436
436
  {
437
- "document": "删除弹性集群",
438
- "input": "https://tke.tencentcloudapi.com/?Action=DeleteEKSCluster\n&ClusterId=cls-xxxxxx\n&<公共请求参数>",
437
+ "document": "",
438
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteEKSCluster\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-xxxxxx\"\n}",
439
439
  "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
440
440
  "title": "删除弹性集群"
441
441
  }
@@ -674,7 +674,7 @@
674
674
  {
675
675
  "document": "",
676
676
  "input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterExtraArgs\r\n&ClusterId=cls-xxxxxx\r\n&<公共请求参数>",
677
- "output": "{\n \"Response\": {\n \"ClusterExtraArgs\": {\n \"KubeAPIServer\": [\n \"max-mutating-requests-inflight=500\"\n ],\n \"KubeControllerManager\": [\n \"kube-api-burst=500\"\n ],\n \"KubeScheduler\": [\n \"kube-api-burst=500\"\n ]\n },\n \"RequestId\": \"5a489220-1730-43ee-9a59-7d3a752ac750\"\n }\n}",
677
+ "output": "{\n \"Response\": {\n \"ClusterExtraArgs\": {\n \"KubeAPIServer\": [\n \"max-mutating-requests-inflight=500\"\n ],\n \"KubeControllerManager\": [\n \"kube-api-burst=500\"\n ],\n \"KubeScheduler\": [\n \"kube-api-burst=500\"\n ],\n \"Etcd\": [\n \"election-timeout=500\"\n ]\n },\n \"RequestId\": \"5a489220-1730-43ee-9a59-7d3a752ac750\"\n }\n}",
678
678
  "title": "查询集群自定义参数"
679
679
  }
680
680
  ],
@@ -706,7 +706,7 @@
706
706
  {
707
707
  "document": "",
708
708
  "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterLevelAttribute\n<公共请求参数>\n\n{}",
709
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"xx\",\n \"Items\": [\n {\n \"Name\": \"L5\",\n \"Alias\": \"500节点\",\n \"NodeCount\": 500,\n \"PodCount\": 1000,\n \"ConfigMapCount\": 200,\n \"CRDCount\": 1,\n \"OtherCount\": 1,\n \"Enable\": true\n }\n ]\n }\n}",
709
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"7f654d68-0f64-4195-8aa8-5351bc441402\",\n \"Items\": [\n {\n \"Name\": \"L5\",\n \"Alias\": \"500节点\",\n \"NodeCount\": 500,\n \"PodCount\": 1000,\n \"ConfigMapCount\": 200,\n \"CRDCount\": 1,\n \"OtherCount\": 1,\n \"RSCount\": 1,\n \"Enable\": true\n }\n ]\n }\n}",
710
710
  "title": "获取托管集群规模"
711
711
  }
712
712
  ],
@@ -722,7 +722,7 @@
722
722
  {
723
723
  "document": "查询节点池详情",
724
724
  "input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterNodePoolDetail\n&ClusterId=cls-xxxxxx\n&NodePoolId=np-xxxxxxxx\n&<公共请求参数>",
725
- "output": "{\n \"Response\": {\n \"NodePool\": {\n \"AutoscalingGroupId\": \"asg-xxx\",\n \"AutoscalingGroupStatus\": \"disabled\",\n \"ClusterInstanceId\": \"cls-xxx\",\n \"DataDisks\": null,\n \"DeletionProtection\": true,\n \"DesiredNodesNum\": 2,\n \"DesiredPodNum\": 64,\n \"DockerGraphPath\": \"\",\n \"ExtraArgs\": {\n \"Kubelet\": []\n },\n \"GPUArgs\": {\n \"CUDA\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CUDNN\": {\n \"DevName\": \"\",\n \"DocName\": \"\",\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CustomDriver\": {\n \"Address\": \"\"\n },\n \"Driver\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"MIGEnable\": false\n },\n \"ImageId\": \"\",\n \"Labels\": [],\n \"LaunchConfigurationId\": \"asc-xxx\",\n \"LifeState\": \"normal\",\n \"MaxNodesNum\": 3,\n \"MinNodesNum\": 0,\n \"Name\": \"xxx\",\n \"NodeCountSummary\": {\n \"AutoscalingAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 2,\n \"Total\": 2\n },\n \"ManuallyAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 1,\n \"Total\": 1\n }\n },\n \"NodePoolId\": \"np-xxx\",\n \"NodePoolOs\": \"tlinux_xxx\",\n \"OsCustomizeType\": \"GENERAL\",\n \"PreStartUserScript\": \"#!/bin/sh\\ntouch /tmp/before\",\n \"RuntimeConfig\": {\n \"RuntimeType\": \"containerd\",\n \"RuntimeVersion\": \"1.6.9\"\n },\n \"Tags\": null,\n \"Taints\": [],\n \"Unschedulable\": 0,\n \"UserScript\": \"#!/bin/sh\\ntouch /tmp/after\"\n },\n \"RequestId\": \"68b7b080-7c57-4869-bc54-a518b4902b2d\"\n }\n}",
725
+ "output": "{\n \"Response\": {\n \"NodePool\": {\n \"AutoscalingGroupId\": \"asg-xxx\",\n \"AutoscalingGroupStatus\": \"disabled\",\n \"ClusterInstanceId\": \"cls-xxx\",\n \"DataDisks\": null,\n \"DeletionProtection\": true,\n \"DesiredNodesNum\": 2,\n \"DesiredPodNum\": 64,\n \"DockerGraphPath\": \"\",\n \"ExtraArgs\": {\n \"Kubelet\": []\n },\n \"GPUArgs\": {\n \"CUDA\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CUDNN\": {\n \"DevName\": \"\",\n \"DocName\": \"\",\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CustomDriver\": {\n \"Address\": \"\"\n },\n \"Driver\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"MIGEnable\": false\n },\n \"ImageId\": \"\",\n \"Labels\": [],\n \"Annotations\": [],\n \"LaunchConfigurationId\": \"asc-xxx\",\n \"LifeState\": \"normal\",\n \"MaxNodesNum\": 3,\n \"MinNodesNum\": 0,\n \"Name\": \"xxx\",\n \"NodeCountSummary\": {\n \"AutoscalingAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 2,\n \"Total\": 2\n },\n \"ManuallyAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 1,\n \"Total\": 1\n }\n },\n \"NodePoolId\": \"np-xxx\",\n \"NodePoolOs\": \"tlinux_xxx\",\n \"OsCustomizeType\": \"GENERAL\",\n \"PreStartUserScript\": \"#!/bin/sh\\ntouch /tmp/before\",\n \"RuntimeConfig\": {\n \"RuntimeType\": \"containerd\",\n \"RuntimeVersion\": \"1.6.9\"\n },\n \"Tags\": null,\n \"Taints\": [],\n \"Unschedulable\": 0,\n \"UserScript\": \"#!/bin/sh\\ntouch /tmp/after\"\n },\n \"RequestId\": \"68b7b080-7c57-4869-bc54-a518b4902b2d\"\n }\n}",
726
726
  "title": "查询节点池详情"
727
727
  }
728
728
  ],
@@ -793,8 +793,8 @@
793
793
  "DescribeClusterStatus": [
794
794
  {
795
795
  "document": "",
796
- "input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterStatus\n&<公共请求参数>",
797
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ClusterStatusSet\": [\n {\n \"ClusterClosingNodeNum\": 0,\n \"ClusterAuditEnabled\": true,\n \"ClusterDeletionProtection\": true,\n \"ClusterId\": \"xx\",\n \"ClusterBMonitor\": true,\n \"ClusterInitNodeNum\": 0,\n \"ClusterState\": \"xx\",\n \"ClusterClosedNodeNum\": 0,\n \"ClusterInstanceState\": \"xx\",\n \"ClusterRunningNodeNum\": 0,\n \"ClusterFailedNodeNum\": 0\n }\n ],\n \"RequestId\": \"a1be36f0-1aa4-4af2-a289-da021bcef89f\"\n }\n}",
796
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterStatus\n<公共请求参数>\n\n{}",
797
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ClusterStatusSet\": [\n {\n \"ClusterClosingNodeNum\": 0,\n \"ClusterAuditEnabled\": true,\n \"ClusterDeletionProtection\": true,\n \"ClusterId\": \"cls-1oxlc88c\",\n \"ClusterBMonitor\": true,\n \"ClusterInitNodeNum\": 0,\n \"ClusterState\": \"\",\n \"ClusterClosedNodeNum\": 0,\n \"ClusterInstanceState\": \"\",\n \"ClusterRunningNodeNum\": 0,\n \"ClusterFailedNodeNum\": 0\n }\n ],\n \"RequestId\": \"a1be36f0-1aa4-4af2-a289-da021bcef89f\"\n }\n}",
798
798
  "title": "获取集群当前状态"
799
799
  }
800
800
  ],
@@ -946,7 +946,7 @@
946
946
  {
947
947
  "document": "查询已经存在的节点,判断是否可以加入集群",
948
948
  "input": "https://tke.tencentcloudapi.com/?Action=DescribeExistedInstances\n&ClusterId=cls-xxxxxxxx\n&<公共请求参数>",
949
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ExistedInstanceSet\": [\n {\n \"Usable\": true,\n \"UnusableReason\": \"\",\n \"AlreadyInCluster\": \"\",\n \"InstanceId\": \"ins-xxxxxxxx\",\n \"InstanceName\": \"未命名\",\n \"PrivateIpAddresses\": [\n \"192.168.x.x\"\n ],\n \"PublicIpAddresses\": [\n \"118.24.x.x\"\n ],\n \"CreatedTime\": \"2019-05-13T03:37:24Z\",\n \"CPU\": 2,\n \"Memory\": 4,\n \"OsName\": \"Ubuntu xxxxxxxxx\",\n \"InstanceType\": \"Sxxxxxx\"\n }\n ],\n \"RequestId\": \"f12a6e20-f950-4af9-8f8b-b6329a4961c2\"\n }\n}",
949
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ExistedInstanceSet\": [\n {\n \"Usable\": true,\n \"UnusableReason\": \"\",\n \"AlreadyInCluster\": \"\",\n \"InstanceId\": \"ins-xxxxxxxx\",\n \"InstanceName\": \"未命名\",\n \"PrivateIpAddresses\": [\n \"192.168.x.x\"\n ],\n \"PublicIpAddresses\": [\n \"118.24.x.x\"\n ],\n \"CreatedTime\": \"2019-05-13T03:37:24Z\",\n \"CPU\": 2,\n \"Memory\": 4,\n \"OsName\": \"Ubuntu xxxxxxxxx\",\n \"InstanceType\": \"Sxxxxxx\",\n \"AutoscalingGroupId\": \"\",\n \"InstanceChargeType\": \"\",\n \"IPv6Addresses\": [\n \"\"\n ]\n }\n ],\n \"RequestId\": \"f12a6e20-f950-4af9-8f8b-b6329a4961c2\"\n }\n}",
950
950
  "title": "查询已经存在的节点"
951
951
  }
952
952
  ],
@@ -1762,7 +1762,7 @@
1762
1762
  {
1763
1763
  "document": "当触发缩容时(包括手动和自动),节点不会被伸缩组从集群中移除",
1764
1764
  "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetNodePoolNodeProtection\n<公共请求参数>\n\n{\n \"ProtectedFromScaleIn\": \"true\",\n \"ClusterId\": \"cls-xxx\",\n \"InstanceIds\": [\n \"ins-xxx\"\n ],\n \"NodePoolId\": \"np-xxx\"\n}",
1765
- "output": "{\n \"Response\": {\n \"SucceedInstanceIds\": [\n \"ins-xxx\"\n ],\n \"FailedInstanceIds\": [\n \"xx\"\n ],\n \"RequestId\": \"xx\"\n }\n}",
1765
+ "output": "{\n \"Response\": {\n \"SucceedInstanceIds\": [\n \"ins-rvob5o5\"\n ],\n \"FailedInstanceIds\": [\n \"ins-abocc5o\"\n ],\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
1766
1766
  "title": "给节点池中的节点设置移出保护"
1767
1767
  }
1768
1768
  ],
@@ -1833,7 +1833,7 @@
1833
1833
  "UpdateEKSCluster": [
1834
1834
  {
1835
1835
  "document": "修改弹性集群",
1836
- "input": "https://tke.tencentcloudapi.com/?Action=UpdateEKSCluster\n&ClusterId=cls-xxxxxx\n&ClusterName=test_cluster1\n&SubnetIds.0=subnet-xxxx\n&ClusterDesc=my_test_cluster888\n&ServiceSubnetId=subnet-xxxx\n&DnsServers.0.Domain=exam.com\n&DnsServers.0.DnsServers.0=10.2.2.88:53\n&<公共请求参数>",
1836
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateEKSCluster\n<公共请求参数>\n\n{\n \"ServiceSubnetId\": \"subnet-xxxx\",\n \"ClusterName\": \"test_cluster1\",\n \"SubnetIds\": [\n \"subnet-xxxx\"\n ],\n \"ClusterId\": \"cls-xxxxxx\",\n \"DnsServers\": [\n {\n \"Domain\": \"exam.com\",\n \"DnsServers\": [\n \"10.2.2.88:53\"\n ]\n }\n ],\n \"ClusterDesc\": \"my_test_cluster888\"\n}",
1837
1837
  "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
1838
1838
  "title": "修改弹性集群"
1839
1839
  }
@@ -1874,7 +1874,7 @@
1874
1874
  {
1875
1875
  "document": "给集群的一批work节点进行升级 ",
1876
1876
  "input": "https://tke.tencentcloudapi.com/?Action=UpgradeClusterInstances\n&ClusterId=cls-xxxxxx\n&UpgradeType=reset\n&Operation=create\n&InstanceIds.0=ins-xxx\n&<公共请求参数>",
1877
- "output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
1877
+ "output": "{\n \"Response\": {\n \"RequestId\": \"xxx\"\n }\n}",
1878
1878
  "title": "集群节点升级"
1879
1879
  }
1880
1880
  ],
@@ -5845,7 +5845,7 @@
5845
5845
  },
5846
5846
  {
5847
5847
  "disabled": false,
5848
- "document": "云存储相关的参数,目前支持腾讯云对象存储以及腾讯云云点播VOD,不支持第三方云存储",
5848
+ "document": "【必填】云存储相关的参数,目前支持腾讯云对象存储以及腾讯云云点播VOD,不支持第三方云存储",
5849
5849
  "example": "无",
5850
5850
  "member": "StorageParams",
5851
5851
  "name": "StorageParams",
@@ -5863,7 +5863,7 @@
5863
5863
  },
5864
5864
  {
5865
5865
  "disabled": false,
5866
- "document": "TRTC的SdkAppId",
5866
+ "document": "【必填】TRTC的SdkAppId",
5867
5867
  "example": "无",
5868
5868
  "member": "int64",
5869
5869
  "name": "SdkAppId",
@@ -15120,6 +15120,26 @@
15120
15120
  "output_required": true,
15121
15121
  "type": "list",
15122
15122
  "value_allowed_null": true
15123
+ },
15124
+ {
15125
+ "disabled": false,
15126
+ "document": "Zookeeper的额外环境数据信息\n注意:此字段可能返回 null,表示取不到有效值。",
15127
+ "example": "无",
15128
+ "member": "ZookeeperRegionInfo",
15129
+ "name": "ZookeeperRegionInfo",
15130
+ "output_required": false,
15131
+ "type": "object",
15132
+ "value_allowed_null": true
15133
+ },
15134
+ {
15135
+ "disabled": false,
15136
+ "document": "部署架构\n注意:此字段可能返回 null,表示取不到有效值。",
15137
+ "example": "SingleRegion",
15138
+ "member": "string",
15139
+ "name": "DeployMode",
15140
+ "output_required": false,
15141
+ "type": "string",
15142
+ "value_allowed_null": true
15123
15143
  }
15124
15144
  ],
15125
15145
  "usage": "out"
@@ -15817,10 +15837,93 @@
15817
15837
  "required": false,
15818
15838
  "type": "string",
15819
15839
  "value_allowed_null": true
15840
+ },
15841
+ {
15842
+ "disabled": false,
15843
+ "document": "负载均衡均衡接入点子网ID\n注意:此字段可能返回 null,表示取不到有效值。",
15844
+ "example": "subnet-xxxxxxxx",
15845
+ "member": "string",
15846
+ "name": "LbSubnetId",
15847
+ "output_required": false,
15848
+ "required": false,
15849
+ "type": "string",
15850
+ "value_allowed_null": true
15820
15851
  }
15821
15852
  ],
15822
15853
  "usage": "both"
15823
15854
  },
15855
+ "ZookeeperRegionInfo": {
15856
+ "document": "Zookeeper的地域额外信息记录",
15857
+ "members": [
15858
+ {
15859
+ "disabled": false,
15860
+ "document": "部署架构信息\n\n- SingleRegion: 普通单地域\n- MultiRegion: 普通多地域场景\n- MasterSlave: 两地域,主备地域场景\n注意:此字段可能返回 null,表示取不到有效值。",
15861
+ "example": "SingleRegion",
15862
+ "member": "string",
15863
+ "name": "DeployMode",
15864
+ "output_required": false,
15865
+ "type": "string",
15866
+ "value_allowed_null": true
15867
+ },
15868
+ {
15869
+ "disabled": false,
15870
+ "document": "主地域的额外信息\n注意:此字段可能返回 null,表示取不到有效值。",
15871
+ "example": "无",
15872
+ "member": "ZookeeperRegionMyIdInfo",
15873
+ "name": "MainRegion",
15874
+ "output_required": false,
15875
+ "type": "object",
15876
+ "value_allowed_null": true
15877
+ },
15878
+ {
15879
+ "disabled": false,
15880
+ "document": "其他地域的额外信息\n注意:此字段可能返回 null,表示取不到有效值。",
15881
+ "example": "无",
15882
+ "member": "ZookeeperRegionMyIdInfo",
15883
+ "name": "OtherRegions",
15884
+ "output_required": false,
15885
+ "type": "list",
15886
+ "value_allowed_null": true
15887
+ }
15888
+ ],
15889
+ "usage": "out"
15890
+ },
15891
+ "ZookeeperRegionMyIdInfo": {
15892
+ "document": "Zookeeper的地域信息的 myid 信息记录",
15893
+ "members": [
15894
+ {
15895
+ "disabled": false,
15896
+ "document": "地域信息\n注意:此字段可能返回 null,表示取不到有效值。",
15897
+ "example": "ap-guangzhou",
15898
+ "member": "string",
15899
+ "name": "Region",
15900
+ "output_required": false,
15901
+ "type": "string",
15902
+ "value_allowed_null": true
15903
+ },
15904
+ {
15905
+ "disabled": false,
15906
+ "document": "myid 的起始号段\n注意:此字段可能返回 null,表示取不到有效值。",
15907
+ "example": "101",
15908
+ "member": "int64",
15909
+ "name": "MyIdStart",
15910
+ "output_required": false,
15911
+ "type": "int",
15912
+ "value_allowed_null": true
15913
+ },
15914
+ {
15915
+ "disabled": false,
15916
+ "document": "myid 的结束号段\n注意:此字段可能返回 null,表示取不到有效值。",
15917
+ "example": "109",
15918
+ "member": "int64",
15919
+ "name": "MyIdEnd",
15920
+ "output_required": false,
15921
+ "type": "int",
15922
+ "value_allowed_null": true
15923
+ }
15924
+ ],
15925
+ "usage": "out"
15926
+ },
15824
15927
  "ZookeeperReplica": {
15825
15928
  "document": "Zookeeper副本信息",
15826
15929
  "members": [
@@ -499,7 +499,7 @@
499
499
  },
500
500
  {
501
501
  "disabled": false,
502
- "document": "一句话复刻音色id,使用一句话复刻音色时需填写。若使用一句话复刻,VoiceType请填入固定值“200000000”",
502
+ "document": "预留参数,暂未使用",
503
503
  "example": "无",
504
504
  "member": "string",
505
505
  "name": "FastVoiceType",
@@ -238,6 +238,13 @@
238
238
  "output": "DescribeAntiInfoLeakageRulesResponse",
239
239
  "status": "online"
240
240
  },
241
+ "DescribeAreaBanAreas": {
242
+ "document": "获取地域封禁配置包括地域封禁开关,设置封禁的地区信息",
243
+ "input": "DescribeAreaBanAreasRequest",
244
+ "name": "获取地域封禁配置",
245
+ "output": "DescribeAreaBanAreasResponse",
246
+ "status": "online"
247
+ },
241
248
  "DescribeAreaBanSupportAreas": {
242
249
  "document": "获取WAF地域封禁支持的地域列表",
243
250
  "input": "DescribeAreaBanSupportAreasRequest",
@@ -5934,6 +5941,108 @@
5934
5941
  ],
5935
5942
  "usage": "out"
5936
5943
  },
5944
+ "DescribeAreaBanAreasRequest": {
5945
+ "document": "DescribeAreaBanAreas请求参数结构体",
5946
+ "members": [
5947
+ {
5948
+ "disabled": false,
5949
+ "document": "需要查询的域名",
5950
+ "example": "",
5951
+ "member": "string",
5952
+ "name": "Domain",
5953
+ "required": true,
5954
+ "type": "string"
5955
+ }
5956
+ ],
5957
+ "type": "object"
5958
+ },
5959
+ "DescribeAreaBanAreasResponse": {
5960
+ "document": "DescribeAreaBanAreas返回参数结构体",
5961
+ "members": [
5962
+ {
5963
+ "disabled": false,
5964
+ "document": "回包内容\n注意:此字段可能返回 null,表示取不到有效值。",
5965
+ "example": "",
5966
+ "member": "DescribeAreaBanAreasRsp",
5967
+ "name": "Data",
5968
+ "type": "object",
5969
+ "value_allowed_null": true
5970
+ },
5971
+ {
5972
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5973
+ "member": "string",
5974
+ "name": "RequestId",
5975
+ "type": "string"
5976
+ }
5977
+ ],
5978
+ "type": "object"
5979
+ },
5980
+ "DescribeAreaBanAreasRsp": {
5981
+ "document": "DescribeAreaBanAreas接口的回包",
5982
+ "members": [
5983
+ {
5984
+ "disabled": false,
5985
+ "document": "状态 \"0\":未开启地域封禁 \"1\":开启地域封禁",
5986
+ "example": "无",
5987
+ "member": "string",
5988
+ "name": "Status",
5989
+ "output_required": true,
5990
+ "type": "string",
5991
+ "value_allowed_null": false
5992
+ },
5993
+ {
5994
+ "disabled": false,
5995
+ "document": "数据来源 custom-自定义(默认)、batch-批量防护\n注意:此字段可能返回 null,表示取不到有效值。",
5996
+ "example": "custom",
5997
+ "member": "string",
5998
+ "name": "Source",
5999
+ "output_required": false,
6000
+ "type": "string",
6001
+ "value_allowed_null": true
6002
+ },
6003
+ {
6004
+ "disabled": false,
6005
+ "document": "字符串数据,配置的地域列表",
6006
+ "example": "无",
6007
+ "member": "string",
6008
+ "name": "Areas",
6009
+ "output_required": true,
6010
+ "type": "list",
6011
+ "value_allowed_null": false
6012
+ },
6013
+ {
6014
+ "disabled": false,
6015
+ "document": "定时任务类型\n注意:此字段可能返回 null,表示取不到有效值。",
6016
+ "example": "无",
6017
+ "member": "string",
6018
+ "name": "JobType",
6019
+ "output_required": false,
6020
+ "type": "string",
6021
+ "value_allowed_null": true
6022
+ },
6023
+ {
6024
+ "disabled": false,
6025
+ "document": "定时任务详细配置\n注意:此字段可能返回 null,表示取不到有效值。",
6026
+ "example": "无",
6027
+ "member": "JobDateTime",
6028
+ "name": "JobDateTime",
6029
+ "output_required": false,
6030
+ "type": "object",
6031
+ "value_allowed_null": true
6032
+ },
6033
+ {
6034
+ "disabled": false,
6035
+ "document": "周期任务配置\n注意:此字段可能返回 null,表示取不到有效值。",
6036
+ "example": "无",
6037
+ "member": "string",
6038
+ "name": "CronType",
6039
+ "output_required": false,
6040
+ "type": "string",
6041
+ "value_allowed_null": true
6042
+ }
6043
+ ],
6044
+ "usage": "out"
6045
+ },
5937
6046
  "DescribeAreaBanSupportAreasRequest": {
5938
6047
  "document": "DescribeAreaBanSupportAreas请求参数结构体",
5939
6048
  "members": [],
@@ -294,6 +294,20 @@
294
294
  "title": "获取信息防泄漏规则列表"
295
295
  }
296
296
  ],
297
+ "DescribeAreaBanAreas": [
298
+ {
299
+ "document": "",
300
+ "input": "https://waf.tencentcloudapi.com/?Action=DescribeAreaBanAreas\r\n&Domain=test.qcloudwaf.com\r\n&<公共请求参数>",
301
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"Areas\": [\n \"新疆\",\n \"江西\"\n ],\n \"Status\": \"0\"\n },\n \"RequestId\": \"5ae9f295-4075-4472-8fd5-da69cc6ffa58\"\n }\n}",
302
+ "title": "获取地域封禁配置"
303
+ },
304
+ {
305
+ "document": "",
306
+ "input": "https://waf.tencentcloudapi.com/?Action=DescribeAreaBanAreas\r\n&Domain=www.test.com\r\n&<公共请求参数>",
307
+ "output": "{\n \"Response\": {\n \"Data\": null,\n \"RequestId\": \"7b9c4e2b-8282-4a6a-90cf-f64f2caef67a\"\n }\n}",
308
+ "title": "未设置封禁区域的场景"
309
+ }
310
+ ],
297
311
  "DescribeAreaBanSupportAreas": [
298
312
  {
299
313
  "document": "",
@@ -433,6 +433,58 @@ def doDescribeAntiInfoLeakRules(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
+ def doDescribeAreaBanAreas(args, parsed_globals):
437
+ g_param = parse_global_arg(parsed_globals)
438
+
439
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
440
+ cred = credential.CVMRoleCredential()
441
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
442
+ cred = credential.STSAssumeRoleCredential(
443
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
444
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
445
+ )
446
+ 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):
447
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
448
+ else:
449
+ cred = credential.Credential(
450
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
451
+ )
452
+ http_profile = HttpProfile(
453
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
454
+ reqMethod="POST",
455
+ endpoint=g_param[OptionsDefine.Endpoint],
456
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
457
+ )
458
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
459
+ if g_param[OptionsDefine.Language]:
460
+ profile.language = g_param[OptionsDefine.Language]
461
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
462
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
463
+ client._sdkVersion += ("_CLI_" + __version__)
464
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
+ model = models.DescribeAreaBanAreasRequest()
466
+ model.from_json_string(json.dumps(args))
467
+ start_time = time.time()
468
+ while True:
469
+ rsp = client.DescribeAreaBanAreas(model)
470
+ result = rsp.to_json_string()
471
+ try:
472
+ json_obj = json.loads(result)
473
+ except TypeError as e:
474
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
475
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
476
+ break
477
+ cur_time = time.time()
478
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
479
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
480
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
481
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
482
+ else:
483
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
484
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
485
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
+
487
+
436
488
  def doModifyCustomRule(args, parsed_globals):
437
489
  g_param = parse_global_arg(parsed_globals)
438
490
 
@@ -1577,7 +1629,7 @@ def doDescribeWebshellStatus(args, parsed_globals):
1577
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1578
1630
 
1579
1631
 
1580
- def doGenerateDealsAndPayNew(args, parsed_globals):
1632
+ def doDescribeDomainWhiteRules(args, parsed_globals):
1581
1633
  g_param = parse_global_arg(parsed_globals)
1582
1634
 
1583
1635
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1606,11 +1658,11 @@ def doGenerateDealsAndPayNew(args, parsed_globals):
1606
1658
  client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
1607
1659
  client._sdkVersion += ("_CLI_" + __version__)
1608
1660
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1609
- model = models.GenerateDealsAndPayNewRequest()
1661
+ model = models.DescribeDomainWhiteRulesRequest()
1610
1662
  model.from_json_string(json.dumps(args))
1611
1663
  start_time = time.time()
1612
1664
  while True:
1613
- rsp = client.GenerateDealsAndPayNew(model)
1665
+ rsp = client.DescribeDomainWhiteRules(model)
1614
1666
  result = rsp.to_json_string()
1615
1667
  try:
1616
1668
  json_obj = json.loads(result)
@@ -5009,7 +5061,7 @@ def doDeleteSession(args, parsed_globals):
5009
5061
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5010
5062
 
5011
5063
 
5012
- def doDescribeDomainWhiteRules(args, parsed_globals):
5064
+ def doGenerateDealsAndPayNew(args, parsed_globals):
5013
5065
  g_param = parse_global_arg(parsed_globals)
5014
5066
 
5015
5067
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5038,11 +5090,11 @@ def doDescribeDomainWhiteRules(args, parsed_globals):
5038
5090
  client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
5039
5091
  client._sdkVersion += ("_CLI_" + __version__)
5040
5092
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5041
- model = models.DescribeDomainWhiteRulesRequest()
5093
+ model = models.GenerateDealsAndPayNewRequest()
5042
5094
  model.from_json_string(json.dumps(args))
5043
5095
  start_time = time.time()
5044
5096
  while True:
5045
- rsp = client.DescribeDomainWhiteRules(model)
5097
+ rsp = client.GenerateDealsAndPayNew(model)
5046
5098
  result = rsp.to_json_string()
5047
5099
  try:
5048
5100
  json_obj = json.loads(result)
@@ -7316,6 +7368,7 @@ ACTION_MAP = {
7316
7368
  "DescribeBatchIpAccessControl": doDescribeBatchIpAccessControl,
7317
7369
  "DeleteIpAccessControl": doDeleteIpAccessControl,
7318
7370
  "DescribeAntiInfoLeakRules": doDescribeAntiInfoLeakRules,
7371
+ "DescribeAreaBanAreas": doDescribeAreaBanAreas,
7319
7372
  "ModifyCustomRule": doModifyCustomRule,
7320
7373
  "DescribeFindDomainList": doDescribeFindDomainList,
7321
7374
  "ModifyInstanceQpsLimit": doModifyInstanceQpsLimit,
@@ -7338,7 +7391,7 @@ ACTION_MAP = {
7338
7391
  "DescribeIpHitItems": doDescribeIpHitItems,
7339
7392
  "DescribeHistogram": doDescribeHistogram,
7340
7393
  "DescribeWebshellStatus": doDescribeWebshellStatus,
7341
- "GenerateDealsAndPayNew": doGenerateDealsAndPayNew,
7394
+ "DescribeDomainWhiteRules": doDescribeDomainWhiteRules,
7342
7395
  "DeleteAntiInfoLeakRule": doDeleteAntiInfoLeakRule,
7343
7396
  "ModifyAreaBanAreas": doModifyAreaBanAreas,
7344
7397
  "CreateDeals": doCreateDeals,
@@ -7404,7 +7457,7 @@ ACTION_MAP = {
7404
7457
  "AddCustomWhiteRule": doAddCustomWhiteRule,
7405
7458
  "DescribeWafAutoDenyRules": doDescribeWafAutoDenyRules,
7406
7459
  "DeleteSession": doDeleteSession,
7407
- "DescribeDomainWhiteRules": doDescribeDomainWhiteRules,
7460
+ "GenerateDealsAndPayNew": doGenerateDealsAndPayNew,
7408
7461
  "CreateHost": doCreateHost,
7409
7462
  "ModifyDomainsCLSStatus": doModifyDomainsCLSStatus,
7410
7463
  "RefreshAccessCheckResult": doRefreshAccessCheckResult,