tccli 3.0.1223.1__py2.py3-none-any.whl → 3.0.1224.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 (50) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apigateway/apigateway_client.py +136 -30
  3. tccli/services/apigateway/v20180808/api.json +183 -0
  4. tccli/services/apigateway/v20180808/examples.json +16 -0
  5. tccli/services/autoscaling/v20180419/api.json +4 -4
  6. tccli/services/bi/bi_client.py +106 -0
  7. tccli/services/bi/v20220105/api.json +355 -0
  8. tccli/services/bi/v20220105/examples.json +16 -0
  9. tccli/services/billing/v20180709/api.json +237 -186
  10. tccli/services/billing/v20180709/examples.json +2 -2
  11. tccli/services/bpaas/v20181217/api.json +71 -46
  12. tccli/services/bpaas/v20181217/examples.json +1 -1
  13. tccli/services/cam/v20190116/api.json +99 -78
  14. tccli/services/cam/v20190116/examples.json +10 -10
  15. tccli/services/cdwch/v20200915/api.json +1 -1
  16. tccli/services/cdwch/v20200915/examples.json +1 -1
  17. tccli/services/clb/v20180317/examples.json +1 -1
  18. tccli/services/cloudhsm/v20191112/api.json +324 -320
  19. tccli/services/cloudhsm/v20191112/examples.json +16 -16
  20. tccli/services/cls/v20201016/api.json +2 -2
  21. tccli/services/config/config_client.py +106 -0
  22. tccli/services/config/v20220802/api.json +364 -0
  23. tccli/services/config/v20220802/examples.json +16 -0
  24. tccli/services/ess/v20201111/api.json +1 -1
  25. tccli/services/essbasic/v20210526/api.json +1 -1
  26. tccli/services/gwlb/v20240906/api.json +1 -1
  27. tccli/services/hunyuan/v20230901/api.json +2 -2
  28. tccli/services/ivld/v20210903/api.json +3 -3
  29. tccli/services/lcic/lcic_client.py +110 -4
  30. tccli/services/lcic/v20220817/api.json +297 -2
  31. tccli/services/lcic/v20220817/examples.json +16 -0
  32. tccli/services/live/v20180801/api.json +2 -1
  33. tccli/services/lke/v20231130/api.json +1 -1
  34. tccli/services/mps/v20190612/api.json +1 -1
  35. tccli/services/ocr/ocr_client.py +314 -685
  36. tccli/services/ocr/v20181119/api.json +157 -1206
  37. tccli/services/ocr/v20181119/examples.json +0 -56
  38. tccli/services/organization/v20181225/api.json +43 -43
  39. tccli/services/organization/v20181225/examples.json +2 -2
  40. tccli/services/organization/v20210331/api.json +516 -508
  41. tccli/services/organization/v20210331/examples.json +26 -26
  42. tccli/services/trtc/trtc_client.py +126 -20
  43. tccli/services/trtc/v20190722/api.json +138 -14
  44. tccli/services/trtc/v20190722/examples.json +16 -0
  45. tccli/services/vpc/v20170312/api.json +1 -1
  46. {tccli-3.0.1223.1.dist-info → tccli-3.0.1224.1.dist-info}/METADATA +2 -2
  47. {tccli-3.0.1223.1.dist-info → tccli-3.0.1224.1.dist-info}/RECORD +50 -50
  48. {tccli-3.0.1223.1.dist-info → tccli-3.0.1224.1.dist-info}/WHEEL +0 -0
  49. {tccli-3.0.1223.1.dist-info → tccli-3.0.1224.1.dist-info}/entry_points.txt +0 -0
  50. {tccli-3.0.1223.1.dist-info → tccli-3.0.1224.1.dist-info}/license_files/LICENSE +0 -0
@@ -3,16 +3,16 @@
3
3
  "DescribeHSMBySubnetId": [
4
4
  {
5
5
  "document": "根据SubnetId查询实例数量",
6
- "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeHSMBySubnetId\n&SubnetId=subnet-xxxxxxxx\n&<公共请求参数>",
7
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"SubnetId\": \"subnet-xxxxxxxx\",\n \"RequestId\": \"6010cd3d-a85a-4e00-b37b-22606d017420\"\n }\n}",
6
+ "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeHSMBySubnetId\n&SubnetId=subnet-4vxnrlco\n&<公共请求参数>",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"67175452-3e94-479a-b28f-c70854d6a34b\",\n \"SubnetId\": \"subnet-4vxnrlco\",\n \"TotalCount\": 2\n }\n}",
8
8
  "title": "根据SubnetId查询实例数量"
9
9
  }
10
10
  ],
11
11
  "DescribeHSMByVpcId": [
12
12
  {
13
13
  "document": "根据VpcId查询实例数量",
14
- "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeHSMByVpcId\n&VpcId=vpc-xxxxxxxx\n&<公共请求参数>",
15
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"VpcId\": \"vpc-xxxxxxxx\",\n \"RequestId\": \"6010cd3d-a85a-4e00-b37b-22606d017420\"\n }\n}",
14
+ "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeHSMByVpcId\n&VpcId=vpc-rhx6fnd7\n&<公共请求参数>",
15
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"VpcId\": \"vpc-rhx6fnd7\",\n \"RequestId\": \"6010cd3d-a85a-4e00-b37b-22606d017420\"\n }\n}",
16
16
  "title": "根据VpcId查询实例数量"
17
17
  }
18
18
  ],
@@ -28,23 +28,23 @@
28
28
  {
29
29
  "document": "查询支持的HSM类型",
30
30
  "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeSupportedHsm\n&<公共请求参数>",
31
- "output": "{\n \"Response\": {\n \"RequestId\": \"dafabf2e-9666-414c-9854-7f9584f9f656\",\n \"DeviceTypes\": [\n {\n \"Manufacturer\": \"江南天安\",\n \"HsmTypes\": [\n {\n \"Model\": \"SJJ1528\",\n \"VsmTypes\": [\n {\n \"TypeName\": \"SVSM\",\n \"TypeID\": 49\n },\n {\n \"TypeName\": \"EVSM\",\n \"TypeID\": 17\n },\n {\n \"TypeName\": \"GVSM\",\n \"TypeID\": 33\n }\n ]\n }\n ]\n }\n ]\n }\n}",
31
+ "output": "{\n \"Response\": {\n \"DeviceTypes\": [\n {\n \"HsmTypes\": [\n {\n \"HsmType\": \"EHSM\",\n \"Model\": \"TASS CRYPTO ENGINE\",\n \"VsmTypes\": [\n {\n \"TypeID\": 15,\n \"TypeName\": \"EHSM\"\n }\n ]\n },\n {\n \"HsmType\": \"SHSM\",\n \"Model\": \"TASS CRYPTO ENGINE\",\n \"VsmTypes\": [\n {\n \"TypeID\": 47,\n \"TypeName\": \"SHSM\"\n }\n ]\n },\n {\n \"HsmType\": \"GHSM\",\n \"Model\": \"TASS CRYPTO ENGINE\",\n \"VsmTypes\": [\n {\n \"TypeID\": 31,\n \"TypeName\": \"GHSM\"\n }\n ]\n },\n {\n \"HsmType\": \"virtualization\",\n \"Model\": \"SJJ1528\",\n \"VsmTypes\": [\n {\n \"TypeID\": 49,\n \"TypeName\": \"SVSM\"\n },\n {\n \"TypeID\": 17,\n \"TypeName\": \"EVSM\"\n },\n {\n \"TypeID\": 33,\n \"TypeName\": \"GVSM\"\n }\n ]\n }\n ],\n \"Manufacturer\": \"TASS\"\n },\n {\n \"HsmTypes\": [\n {\n \"HsmType\": \"virtualization\",\n \"Model\": \"SJJ1601\",\n \"VsmTypes\": [\n {\n \"TypeID\": 149,\n \"TypeName\": \"SVSM\"\n },\n {\n \"TypeID\": 117,\n \"TypeName\": \"EVSM\"\n },\n {\n \"TypeID\": 133,\n \"TypeName\": \"GVSM\"\n }\n ]\n }\n ],\n \"Manufacturer\": \"SANSEC\"\n }\n ],\n \"RequestId\": \"59aa770a-4aba-429f-a8a1-646f98419f9d\"\n }\n}",
32
32
  "title": "查询支持的HSM类型"
33
33
  }
34
34
  ],
35
35
  "DescribeUsg": [
36
36
  {
37
37
  "document": "获取用户安全组列表",
38
- "input": "POST / HTTP/1.1\nHost: cloudhsm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUsg\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 10,\n \"SearchWord\": \"xxxx\"\n}",
39
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"SgList\": [\n {\n \"SgId\": \"SgIdxxxxx\",\n \"SgName\": \"SgNamexxxxxx\",\n \"SgRemark\": \"xxxxxxxx\",\n \"CreateTime\": \"xxxxxxxx\"\n }\n ],\n \"RequestId\": \"6010cd3d-a85a-4e00-b37b-22606d017420\"\n }\n}",
38
+ "input": "POST / HTTP/1.1\nHost: cloudhsm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUsg\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 10,\n \"SearchWord\": \"sg-p9k0swj3\\t\"\n}",
39
+ "output": "{\n \"Response\": {\n \"RequestId\": \"251e4fb4-110a-4d3e-ac6c-cceff9672394\",\n \"SgList\": [\n {\n \"CreateTime\": \"2024-08-30 10:16:07\",\n \"SgId\": \"sg-p9k0swj3\",\n \"SgName\": \"放通22,80,443,3389端口和ICMP协议-2024083010155758656\",\n \"SgRemark\": \"公网放通云主机常用登录及web服务端口,内网全放通。\"\n },\n {\n \"CreateTime\": \"2024-02-02 16:53:18\",\n \"SgId\": \"sg-6tjv5yxb\",\n \"SgName\": \"default\",\n \"SgRemark\": \"System created security group\"\n },\n {\n \"CreateTime\": \"2022-09-18 11:24:11\",\n \"SgId\": \"sg-ro3eh7bb\",\n \"SgName\": \"放通22,80,443,3389端口和ICMP协议-2022091811240925063\",\n \"SgRemark\": \"公网放通云主机常用登录及web服务端口,内网全放通。\"\n },\n {\n \"CreateTime\": \"2022-02-10 14:24:04\",\n \"SgId\": \"sg-3qcokmyz\",\n \"SgName\": \"放通全部端口-2022021014240020071\",\n \"SgRemark\": \"暴露全部端口到公网和内网,有一定安全风险\"\n }\n ],\n \"TotalCount\": 4\n }\n}",
40
40
  "title": "获取用户安全组列表"
41
41
  }
42
42
  ],
43
43
  "DescribeUsgRule": [
44
44
  {
45
45
  "document": "",
46
- "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeUsgRule\n&SgIds.0=xxxxxxxxxxxx\n&<公共请求参数>",
47
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"SgRules\": [\n {\n \"Version\": 0,\n \"SgId\": \"UsgIdxxxxx\",\n \"SgName\": \"UsgNamexxxxxx\",\n \"SgRemark\": \"xxxxxxxx\",\n \"CreateTime\": \"2006-01-02 15:04:05\",\n \"InBound\": [\n {\n \"Ip\": \"xxxxx\",\n \"Id\": \"xxxxxxx\",\n \"AddressModule\": \"xxxxxx\",\n \"Proto\": \"tcp\",\n \"Port\": \"80\",\n \"ServiceModule\": \"xxxxxx\",\n \"Desc\": \"xxxxxx\",\n \"Action\": \"DROP\"\n }\n ],\n \"OutBound\": [\n {\n \"Ip\": \"xxxxx\",\n \"Id\": \"xxxxxxx\",\n \"AddressModule\": \"xxxxxx\",\n \"Proto\": \"tcp\",\n \"Port\": \"80\",\n \"ServiceModule\": \"xxxxxx\",\n \"Desc\": \"xxxxxx\",\n \"Action\": \"DROP\"\n }\n ]\n }\n ],\n \"RequestId\": \"6010cd3d-a85a-4e00-b37b-22606d017420\"\n }\n}",
46
+ "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeUsgRule\n&SgIds.0=sg-6tjv5yxb\n&<公共请求参数>",
47
+ "output": "{\n \"Response\": {\n \"RequestId\": \"22ce6f31-8937-4945-862b-98f453aa091b\",\n \"SgRules\": [\n {\n \"CreateTime\": \"2024-02-02 16:53:18\",\n \"InBound\": [\n {\n \"Action\": \"ACCEPT\",\n \"Desc\": \"Default rule\",\n \"Ip\": \"0.0.0.0/0\",\n \"Port\": \"ALL\",\n \"Proto\": \"ALL\"\n }\n ],\n \"OutBound\": [\n {\n \"Action\": \"ACCEPT\",\n \"Desc\": \"Default rule\",\n \"Ip\": \"0.0.0.0/0\",\n \"Port\": \"ALL\",\n \"Proto\": \"ALL\"\n }\n ],\n \"SgId\": \"sg-6tjv5yxb\",\n \"SgName\": \"default\",\n \"SgRemark\": \"System created security group\",\n \"Version\": 1\n }\n ],\n \"TotalCount\": 1\n }\n}",
48
48
  "title": "获取安全组详情"
49
49
  }
50
50
  ],
@@ -52,7 +52,7 @@
52
52
  {
53
53
  "document": "获取Vpc列表",
54
54
  "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeVpc\n&Offset=0\n&Limit=10\n&<公共请求参数>",
55
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"VpcList\": [\n {\n \"VpcName\": \"xxxx\",\n \"VpcId\": \"xxxxx\",\n \"CreatedTime\": \"2019-11-12 00:00:00\",\n \"IsDefault\": false\n }\n ],\n \"RequestId\": \"6010cd3d-a85a-4e00-b37b-22606d017420\"\n }\n}",
55
+ "output": "{\n \"Response\": {\n \"RequestId\": \"53f36372-7b0e-4a24-879b-1f8b877023a0\",\n \"TotalCount\": 1,\n \"VpcList\": [\n {\n \"CreatedTime\": \"2024-05-09 19:51:48\",\n \"IsDefault\": false,\n \"VpcId\": \"vpc-nc9yvu5p\",\n \"VpcName\": \"test_5\"\n }\n ]\n }\n}",
56
56
  "title": "获取Vpc列表"
57
57
  }
58
58
  ],
@@ -60,15 +60,15 @@
60
60
  {
61
61
  "document": "获取VSM属性",
62
62
  "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeVsmAttributes\n&ResourceId=hsm-aj8fp8a0\n&<公共请求参数>",
63
- "output": "{\n \"Response\": {\n \"ExpireTime\": 1738234083,\n \"Expired\": false,\n \"Manufacturer\": \"TASS\",\n \"Model\": \"SJJ1528\",\n \"RegionId\": 1,\n \"RegionName\": \"广州\",\n \"RemainSeconds\": 29124028,\n \"RenewFlag\": 2,\n \"RequestId\": \"98119ebc-93c2-43c6-b0db-be2efdf93ffb\",\n \"ResourceId\": \"hsm-aj8fp8a0\",\n \"ResourceName\": \"default-hsmName\",\n \"SgList\": [\n {\n \"CreateTime\": \"2023-06-05 10:59:39\",\n \"InBound\": [\n {\n \"Action\": \"ACCEPT\",\n \"AddressModule\": \"\",\n \"Desc\": \"一键放通入站规则\",\n \"Id\": \"\",\n \"Ip\": \"0.0.0.0/0\",\n \"Port\": \"20,21,22,3389,80,443\",\n \"Proto\": \"tcp\",\n \"ServiceModule\": \"\"\n },\n {\n \"Action\": \"ACCEPT\",\n \"AddressModule\": \"\",\n \"Desc\": \"一键放通入站规则\",\n \"Id\": \"\",\n \"Ip\": \"0.0.0.0/0\",\n \"Port\": \"ALL\",\n \"Proto\": \"ALL\",\n \"ServiceModule\": \"\"\n },\n {\n \"Action\": \"ACCEPT\",\n \"AddressModule\": \"\",\n \"Desc\": \"\",\n \"Id\": \"\",\n \"Ip\": \"172.16.0.0/16\",\n \"Port\": \"ALL\",\n \"Proto\": \"ALL\",\n \"ServiceModule\": \"\"\n }\n ],\n \"OutBound\": [\n {\n \"Action\": \"ACCEPT\",\n \"AddressModule\": \"\",\n \"Desc\": \"放通所有\",\n \"Id\": \"\",\n \"Ip\": \"0.0.0.0/0\",\n \"Port\": \"ALL\",\n \"Proto\": \"ALL\",\n \"ServiceModule\": \"\"\n }\n ],\n \"SgId\": \"sg-f51mj0kl\",\n \"SgName\": \"casb-proxy-2023060510592885829\",\n \"SgRemark\": \"自定义\",\n \"Version\": 0\n }\n ],\n \"Status\": 1,\n \"SubnetCidrBlock\": \"172.16.16.0/20\",\n \"SubnetId\": \"subnet-1xaztwla\",\n \"SubnetName\": \"Default-Subnet3\",\n \"Tags\": [\n {\n \"TagKey\": \"运营部门\",\n \"TagValue\": \"测试\"\n }\n ],\n \"Vip\": \"172.16.16.89\",\n \"VpcCidrBlock\": \"172.16.0.0/16\",\n \"VpcId\": \"vpc-7vv1q6x9\",\n \"VpcName\": \"Default-VPC\",\n \"VsmType\": 17,\n \"ZoneId\": 100003,\n \"ZoneName\": \"广州三区\"\n }\n}",
63
+ "output": "{\n \"Response\": {\n \"ExpireTime\": 1738234083,\n \"Expired\": false,\n \"Manufacturer\": \"TASS\",\n \"Model\": \"SJJ1528\",\n \"RegionId\": 1,\n \"RegionName\": \"广州\",\n \"RemainSeconds\": 29124028,\n \"RenewFlag\": 2,\n \"RequestId\": \"98119ebc-93c2-43c6-b0db-be2efdf93ffb\",\n \"ResourceId\": \"hsm-aj8fp8a0\",\n \"ResourceName\": \"default-hsmName\",\n \"SgList\": [\n {\n \"CreateTime\": \"2023-06-05 10:59:39\",\n \"InBound\": [\n {\n \"Action\": \"ACCEPT\",\n \"Desc\": \"一键放通入站规则\",\n \"Ip\": \"0.0.0.0/0\",\n \"Port\": \"20,21,22,3389,80,443\",\n \"Proto\": \"tcp\"\n },\n {\n \"Action\": \"ACCEPT\",\n \"Desc\": \"一键放通入站规则\",\n \"Ip\": \"0.0.0.0/0\",\n \"Port\": \"ALL\",\n \"Proto\": \"ALL\"\n },\n {\n \"Action\": \"ACCEPT\",\n \"Desc\": \"desc-test \",\n \"Ip\": \"172.16.0.0/16\",\n \"Port\": \"ALL\",\n \"Proto\": \"ALL\"\n }\n ],\n \"OutBound\": [\n {\n \"Action\": \"ACCEPT\",\n \"Desc\": \"放通所有\",\n \"Ip\": \"0.0.0.0/0\",\n \"Port\": \"ALL\",\n \"Proto\": \"ALL\"\n }\n ],\n \"SgId\": \"sg-f51mj0kl\",\n \"SgName\": \"casb-proxy-2023060510592885829\",\n \"SgRemark\": \"自定义\",\n \"Version\": 0\n }\n ],\n \"Status\": 1,\n \"SubnetCidrBlock\": \"172.16.16.0/20\",\n \"SubnetId\": \"subnet-1xaztwla\",\n \"SubnetName\": \"Default-Subnet3\",\n \"Tags\": [\n {\n \"TagKey\": \"运营部门\",\n \"TagValue\": \"部门1\"\n }\n ],\n \"Vip\": \"172.16.16.89\",\n \"VpcCidrBlock\": \"172.16.0.0/16\",\n \"VpcId\": \"vpc-7vv1q6x9\",\n \"VpcName\": \"Default-VPC\",\n \"VsmType\": 17,\n \"ZoneId\": 100003,\n \"ZoneName\": \"广州三区\"\n }\n}",
64
64
  "title": "获取VSM属性"
65
65
  }
66
66
  ],
67
67
  "DescribeVsms": [
68
68
  {
69
69
  "document": "",
70
- "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeVsms\n&Offset=0\n&Limit=10\n&SearchWord=xxxxxxx\n&<公共请求参数>",
71
- "output": "{\n \"Response\": {\n \"RequestId\": \"7787c490-8c73-48af-bb5a-5d85cc7d4f35\",\n \"TotalCount\": 1,\n \"VsmList\": [\n {\n \"AlarmStatus\": 0,\n \"CreateUin\": \"2942368751\",\n \"ExpireTime\": 1738234083,\n \"Expired\": false,\n \"Manufacturer\": \"TASS\",\n \"Model\": \"SJJ1528\",\n \"RegionId\": 1,\n \"RegionName\": \"广州\",\n \"RemainSeconds\": 29123420,\n \"RenewFlag\": 2,\n \"ResourceId\": \"hsm-aj8fp8a0\",\n \"ResourceName\": \"default-hsmName\",\n \"SgList\": [\n {\n \"CreateTime\": \"2023-06-05 10:59:39\",\n \"SgId\": \"sg-f51mj0kl\",\n \"SgName\": \"casb-proxy-2023060510592885829\",\n \"SgRemark\": \"自定义\"\n }\n ],\n \"Status\": 1,\n \"SubnetId\": \"subnet-1xaztwla\",\n \"SubnetName\": \"Default-Subnet3\",\n \"Tags\": [\n {\n \"TagKey\": \"运营部门\",\n \"TagValue\": \"测试\"\n }\n ],\n \"Vip\": \"172.16.16.89\",\n \"VpcId\": \"vpc-7vv1q6x9\",\n \"VpcName\": \"Default-VPC\",\n \"VsmType\": 17,\n \"ZoneId\": 100003,\n \"ZoneName\": \"广州三区\"\n }\n ]\n }\n}",
70
+ "input": "https://cloudhsm.tencentcloudapi.com/?Action=DescribeVsms\n&Offset=0\n&Limit=10\n&SearchWord=default-hsmName\n&<公共请求参数>",
71
+ "output": "{\n \"Response\": {\n \"RequestId\": \"7787c490-8c73-48af-bb5a-5d85cc7d4f35\",\n \"TotalCount\": 1,\n \"VsmList\": [\n {\n \"AlarmStatus\": 0,\n \"CreateUin\": \"2942368751\",\n \"ExpireTime\": 1738234083,\n \"Expired\": false,\n \"Manufacturer\": \"TASS\",\n \"Model\": \"SJJ1528\",\n \"RegionId\": 1,\n \"RegionName\": \"广州\",\n \"RemainSeconds\": 29123420,\n \"RenewFlag\": 2,\n \"ResourceId\": \"hsm-aj8fp8a0\",\n \"ResourceName\": \"default-hsmName\",\n \"SgList\": [\n {\n \"CreateTime\": \"2023-06-05 10:59:39\",\n \"SgId\": \"sg-f51mj0kl\",\n \"SgName\": \"casb-proxy-2023060510592885829\",\n \"SgRemark\": \"自定义\"\n }\n ],\n \"Status\": 1,\n \"SubnetId\": \"subnet-1xaztwla\",\n \"SubnetName\": \"Default-Subnet3\",\n \"Tags\": [\n {\n \"TagKey\": \"运营部门\",\n \"TagValue\": \"部门1\"\n }\n ],\n \"Vip\": \"172.16.16.89\",\n \"VpcId\": \"vpc-7vv1q6x9\",\n \"VpcName\": \"Default-VPC\",\n \"VsmType\": 17,\n \"ZoneId\": 100003,\n \"ZoneName\": \"广州三区\"\n }\n ]\n }\n}",
72
72
  "title": "获取用户VSM列表"
73
73
  }
74
74
  ],
@@ -76,7 +76,7 @@
76
76
  {
77
77
  "document": "获取告警策略",
78
78
  "input": "POST / HTTP/1.1\nHost: cloudhsm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetAlarmEvent\n<公共请求参数>\n\n{}",
79
- "output": "{\n \"Response\": {\n \"AlarmConfig\": [\n {\n \"BeginTime\": \"\",\n \"EndTime\": \"\",\n \"Event\": \"MEM\",\n \"Limit\": 0,\n \"Status\": 1,\n \"Uin\": \"123456789\"\n },\n {\n \"BeginTime\": \"\",\n \"EndTime\": \"\",\n \"Event\": \"CPU\",\n \"Limit\": 1,\n \"Status\": 1,\n \"Uin\": \"123456789\"\n },\n {\n \"BeginTime\": \"\",\n \"EndTime\": \"\",\n \"Event\": \"TCP\",\n \"Limit\": 99,\n \"Status\": 1,\n \"Uin\": \"123456789\"\n }\n ],\n \"RequestId\": \"2045f89b-7673-4cd7-9580-77f0a048fb26\"\n }\n}",
79
+ "output": "{\n \"Response\": {\n \"AlarmConfig\": [\n {\n \"BeginTime\": \"01:00:00\",\n \"EndTime\": \"01:59:59\",\n \"Event\": \"MEM\",\n \"Limit\": 0,\n \"Status\": 1,\n \"Uin\": \"22234567\"\n },\n {\n \"BeginTime\": \"01:00:00\",\n \"EndTime\": \"01:59:59\",\n \"Event\": \"CPU\",\n \"Limit\": 1,\n \"Status\": 1,\n \"Uin\": \"22234567\"\n },\n {\n \"BeginTime\": \"01:00:00\",\n \"EndTime\": \"01:59:59\",\n \"Event\": \"TCP\",\n \"Limit\": 99,\n \"Status\": 1,\n \"Uin\": \"22234567\"\n }\n ],\n \"RequestId\": \"2045f89b-7673-4cd7-9580-77f0a048fb26\"\n }\n}",
80
80
  "title": "获取告警策略"
81
81
  }
82
82
  ],
@@ -91,8 +91,8 @@
91
91
  "InquiryPriceBuyVsm": [
92
92
  {
93
93
  "document": "",
94
- "input": "POST / HTTP/1.1\nHost: cloudhsm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceBuyVsm\n<公共请求参数>\n\n{\n \"PayMode\": \"1\",\n \"TimeUnit\": \"y\",\n \"Type\": \"CREATE\",\n \"GoodsNum\": \"1\",\n \"TimeSpan\": \"1\"\n}",
95
- "output": "{\n \"Response\": {\n \"TotalCost\": 2000.0,\n \"GoodsNum\": 1,\n \"TimeSpan\": 1,\n \"TimeUnit\": \"y\",\n \"OriginalCost\": 2000.0,\n \"RequestId\": \"20569756-56ba-4a13-b545-e1528d5cb239\"\n }\n}",
94
+ "input": "POST / HTTP/1.1\nHost: cloudhsm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceBuyVsm\n<公共请求参数>\n\n{\n \"GoodsNum\": 1,\n \"PayMode\": 1,\n \"Currency\": \"CNY\",\n \"TimeSpan\": \"1\",\n \"TimeUnit\": \"m\",\n \"Type\": \"CREATE\",\n \"HsmType\": \"GHSM\"\n}",
95
+ "output": "{\n \"Response\": {\n \"GoodsNum\": 1,\n \"OriginalCost\": 3500000,\n \"RequestId\": \"cebaa3fa-2c01-4ebf-9158-30e9a96a179c\",\n \"TimeSpan\": \"1\",\n \"TimeUnit\": \"m\",\n \"TotalCost\": 3500000\n }\n}",
96
96
  "title": "询价"
97
97
  }
98
98
  ],
@@ -743,7 +743,7 @@
743
743
  "status": "online"
744
744
  },
745
745
  "SearchLog": {
746
- "document": "本接口用于检索分析日志,使用该接口时请注意如下事项:\n1. 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。\n2. 检索语法建议使用CQL语法规则,请使用SyntaxRule参数,将值设置为1。\n3. API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。",
746
+ "document": "本接口用于检索分析日志,使用该接口时请注意如下事项:\n1. 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。\n2. 检索语法建议使用日志服务专用检索语法CQL,请使用SyntaxRule参数,将值设置为1,控制台默认也使用该语法规则。\n3. API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。",
747
747
  "input": "SearchLogRequest",
748
748
  "name": "检索分析日志",
749
749
  "output": "SearchLogResponse",
@@ -14729,7 +14729,7 @@
14729
14729
  },
14730
14730
  {
14731
14731
  "disabled": false,
14732
- "document": "检索语法规则,默认值为0,推荐使用1 (CQL语法)。\n0:Lucene语法,1:CQL语法。\n详细说明参见<a href=\"https://cloud.tencent.com/document/product/614/47044#RetrievesConditionalRules\" target=\"_blank\">检索条件语法规则</a>",
14732
+ "document": "检索语法规则,默认值为0,推荐使用1 。\n\n- 0:Lucene语法\n- 1:CQL语法(日志服务专用检索语法,控制台默认也使用该语法规则)。\n\n详细说明参见<a href=\"https://cloud.tencent.com/document/product/614/47044#RetrievesConditionalRules\" target=\"_blank\">检索条件语法规则</a>",
14733
14733
  "example": "1",
14734
14734
  "member": "uint64",
14735
14735
  "name": "SyntaxRule",
@@ -69,6 +69,58 @@ def doListAggregateConfigRules(args, parsed_globals):
69
69
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
70
 
71
71
 
72
+ def doListDiscoveredResources(args, parsed_globals):
73
+ g_param = parse_global_arg(parsed_globals)
74
+
75
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
76
+ cred = credential.CVMRoleCredential()
77
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
78
+ cred = credential.STSAssumeRoleCredential(
79
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
80
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
81
+ )
82
+ 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):
83
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
84
+ else:
85
+ cred = credential.Credential(
86
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
87
+ )
88
+ http_profile = HttpProfile(
89
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
90
+ reqMethod="POST",
91
+ endpoint=g_param[OptionsDefine.Endpoint],
92
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
93
+ )
94
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
95
+ if g_param[OptionsDefine.Language]:
96
+ profile.language = g_param[OptionsDefine.Language]
97
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
98
+ client = mod.ConfigClient(cred, g_param[OptionsDefine.Region], profile)
99
+ client._sdkVersion += ("_CLI_" + __version__)
100
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
+ model = models.ListDiscoveredResourcesRequest()
102
+ model.from_json_string(json.dumps(args))
103
+ start_time = time.time()
104
+ while True:
105
+ rsp = client.ListDiscoveredResources(model)
106
+ result = rsp.to_json_string()
107
+ try:
108
+ json_obj = json.loads(result)
109
+ except TypeError as e:
110
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
111
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
112
+ break
113
+ cur_time = time.time()
114
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
115
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
116
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
117
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
118
+ else:
119
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
120
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
121
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
+
123
+
72
124
  def doListConfigRules(args, parsed_globals):
73
125
  g_param = parse_global_arg(parsed_globals)
74
126
 
@@ -173,6 +225,58 @@ def doPutEvaluations(args, parsed_globals):
173
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
226
 
175
227
 
228
+ def doDescribeDiscoveredResource(args, parsed_globals):
229
+ g_param = parse_global_arg(parsed_globals)
230
+
231
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
232
+ cred = credential.CVMRoleCredential()
233
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
+ cred = credential.STSAssumeRoleCredential(
235
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
+ )
238
+ 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):
239
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
240
+ else:
241
+ cred = credential.Credential(
242
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
243
+ )
244
+ http_profile = HttpProfile(
245
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
246
+ reqMethod="POST",
247
+ endpoint=g_param[OptionsDefine.Endpoint],
248
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
249
+ )
250
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
251
+ if g_param[OptionsDefine.Language]:
252
+ profile.language = g_param[OptionsDefine.Language]
253
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
254
+ client = mod.ConfigClient(cred, g_param[OptionsDefine.Region], profile)
255
+ client._sdkVersion += ("_CLI_" + __version__)
256
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
+ model = models.DescribeDiscoveredResourceRequest()
258
+ model.from_json_string(json.dumps(args))
259
+ start_time = time.time()
260
+ while True:
261
+ rsp = client.DescribeDiscoveredResource(model)
262
+ result = rsp.to_json_string()
263
+ try:
264
+ json_obj = json.loads(result)
265
+ except TypeError as e:
266
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
267
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
+ break
269
+ cur_time = time.time()
270
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
+ else:
275
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
+
279
+
176
280
  CLIENT_MAP = {
177
281
  "v20220802": config_client_v20220802,
178
282
 
@@ -185,8 +289,10 @@ MODELS_MAP = {
185
289
 
186
290
  ACTION_MAP = {
187
291
  "ListAggregateConfigRules": doListAggregateConfigRules,
292
+ "ListDiscoveredResources": doListDiscoveredResources,
188
293
  "ListConfigRules": doListConfigRules,
189
294
  "PutEvaluations": doPutEvaluations,
295
+ "DescribeDiscoveredResource": doDescribeDiscoveredResource,
190
296
 
191
297
  }
192
298