tccli 3.0.1222.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.
- tccli/__init__.py +1 -1
- tccli/services/apigateway/apigateway_client.py +136 -30
- tccli/services/apigateway/v20180808/api.json +183 -0
- tccli/services/apigateway/v20180808/examples.json +16 -0
- tccli/services/autoscaling/v20180419/api.json +4 -4
- tccli/services/bi/bi_client.py +106 -0
- tccli/services/bi/v20220105/api.json +355 -0
- tccli/services/bi/v20220105/examples.json +16 -0
- tccli/services/billing/v20180709/api.json +593 -542
- tccli/services/billing/v20180709/examples.json +9 -9
- tccli/services/bpaas/v20181217/api.json +71 -46
- tccli/services/bpaas/v20181217/examples.json +1 -1
- tccli/services/cam/v20190116/api.json +99 -78
- tccli/services/cam/v20190116/examples.json +10 -10
- tccli/services/cdwch/v20200915/api.json +1 -1
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/clb/v20180317/examples.json +1 -1
- tccli/services/cloudhsm/v20191112/api.json +324 -320
- tccli/services/cloudhsm/v20191112/examples.json +16 -16
- tccli/services/cls/v20201016/api.json +3 -3
- tccli/services/config/config_client.py +106 -0
- tccli/services/config/v20220802/api.json +364 -0
- tccli/services/config/v20220802/examples.json +16 -0
- tccli/services/dcdb/v20180411/api.json +136 -136
- tccli/services/dnspod/dnspod_client.py +139 -33
- tccli/services/dnspod/v20210323/api.json +104 -0
- tccli/services/dnspod/v20210323/examples.json +16 -0
- tccli/services/ess/v20201111/api.json +5 -5
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/goosefs/v20220519/api.json +9 -0
- tccli/services/gwlb/v20240906/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +13 -2
- tccli/services/ivld/v20210903/api.json +3 -3
- tccli/services/lcic/lcic_client.py +110 -4
- tccli/services/lcic/v20220817/api.json +306 -2
- tccli/services/lcic/v20220817/examples.json +16 -0
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/live/live_client.py +322 -4
- tccli/services/live/v20180801/api.json +333 -1
- tccli/services/live/v20180801/examples.json +48 -0
- tccli/services/lke/v20231130/api.json +30 -10
- tccli/services/mariadb/v20170312/api.json +142 -142
- tccli/services/mps/v20190612/api.json +12 -2
- tccli/services/oceanus/v20190422/api.json +10 -0
- tccli/services/ocr/ocr_client.py +314 -685
- tccli/services/ocr/v20181119/api.json +187 -1206
- tccli/services/ocr/v20181119/examples.json +4 -66
- tccli/services/organization/v20181225/api.json +43 -43
- tccli/services/organization/v20181225/examples.json +2 -2
- tccli/services/organization/v20210331/api.json +516 -508
- tccli/services/organization/v20210331/examples.json +26 -26
- tccli/services/privatedns/privatedns_client.py +4 -534
- tccli/services/privatedns/v20201028/api.json +4 -943
- tccli/services/privatedns/v20201028/examples.json +0 -80
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/teo/v20220901/api.json +5 -0
- tccli/services/tke/v20220501/api.json +3 -1
- tccli/services/trtc/trtc_client.py +126 -20
- tccli/services/trtc/v20190722/api.json +138 -14
- tccli/services/trtc/v20190722/examples.json +16 -0
- tccli/services/vod/v20180717/api.json +19 -0
- tccli/services/vpc/v20170312/api.json +30 -1
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/RECORD +67 -67
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1222.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-
|
7
|
-
"output": "{\n \"Response\": {\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-
|
15
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"VpcId\": \"vpc-
|
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 \"
|
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\": \"
|
39
|
-
"output": "{\n \"Response\": {\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=
|
47
|
-
"output": "{\n \"Response\": {\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 \"
|
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 \"
|
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=
|
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\": \"
|
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\": \"
|
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 \"
|
95
|
-
"output": "{\n \"Response\": {\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.
|
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
|
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",
|
@@ -15497,7 +15497,7 @@
|
|
15497
15497
|
},
|
15498
15498
|
{
|
15499
15499
|
"disabled": false,
|
15500
|
-
"document": "主题的存储类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
15500
|
+
"document": "主题的存储类型\n\n- hot: 标准存储\n- cold: 低频存储\n注意:此字段可能返回 null,表示取不到有效值。",
|
15501
15501
|
"example": "hot",
|
15502
15502
|
"member": "string",
|
15503
15503
|
"name": "StorageType",
|
@@ -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
|
|