tccli 3.0.1236.1__py2.py3-none-any.whl → 3.0.1238.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/__init__.py +3 -0
- tccli/services/aca/__init__.py +4 -0
- tccli/services/aca/aca_client.py +578 -0
- tccli/services/aca/v20210323/api.json +3715 -0
- tccli/services/aca/v20210323/examples.json +69 -0
- tccli/services/aiart/v20221229/api.json +18 -9
- tccli/services/aiart/v20221229/examples.json +2 -2
- tccli/services/apm/v20210622/api.json +25 -22
- tccli/services/apm/v20210622/examples.json +16 -22
- tccli/services/ba/v20200720/api.json +3 -2
- tccli/services/batch/v20170312/api.json +641 -566
- tccli/services/batch/v20170312/examples.json +7 -7
- tccli/services/bi/v20220105/api.json +9 -0
- tccli/services/billing/v20180709/api.json +2 -2
- tccli/services/bpaas/v20181217/examples.json +1 -1
- tccli/services/cam/v20190116/api.json +116 -99
- tccli/services/cam/v20190116/examples.json +11 -11
- tccli/services/ccc/v20200210/api.json +40 -1
- tccli/services/ccc/v20200210/examples.json +1 -1
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +257 -207
- tccli/services/cdb/v20170320/examples.json +18 -10
- tccli/services/cdwch/v20200915/api.json +6 -6
- tccli/services/cdwdoris/v20211228/api.json +16 -5
- tccli/services/cdwdoris/v20211228/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +29 -13
- tccli/services/cfg/v20210820/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +84 -84
- tccli/services/cfs/v20190719/examples.json +6 -6
- tccli/services/chdfs/v20201112/api.json +18 -17
- tccli/services/chdfs/v20201112/examples.json +2 -2
- tccli/services/clb/v20180317/api.json +184 -162
- tccli/services/cloudapp/v20220530/api.json +11 -1
- tccli/services/cloudapp/v20220530/examples.json +3 -3
- tccli/services/cloudaudit/v20190319/api.json +64 -53
- tccli/services/cloudaudit/v20190319/examples.json +5 -5
- tccli/services/cls/v20201016/api.json +21 -21
- tccli/services/cls/v20201016/examples.json +1 -1
- tccli/services/config/v20220802/api.json +2 -0
- tccli/services/config/v20220802/examples.json +2 -2
- tccli/services/cvm/v20170312/api.json +5 -5
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +110 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dcdb/v20180411/api.json +390 -387
- tccli/services/dcdb/v20180411/examples.json +14 -14
- tccli/services/dlc/v20210125/api.json +162 -7
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/domain/v20180808/api.json +55 -54
- tccli/services/domain/v20180808/examples.json +38 -32
- tccli/services/dsgc/v20190723/api.json +1796 -1623
- tccli/services/dsgc/v20190723/examples.json +217 -211
- tccli/services/dts/v20180330/api.json +143 -106
- tccli/services/dts/v20211206/api.json +57 -46
- tccli/services/dts/v20211206/examples.json +1 -1
- tccli/services/ecm/v20190719/api.json +6 -6
- tccli/services/emr/v20190103/api.json +80 -20
- tccli/services/ess/ess_client.py +118 -12
- tccli/services/ess/v20201111/api.json +320 -37
- tccli/services/ess/v20201111/examples.json +19 -3
- tccli/services/essbasic/essbasic_client.py +167 -8
- tccli/services/essbasic/v20210526/api.json +528 -55
- tccli/services/essbasic/v20210526/examples.json +46 -16
- tccli/services/facefusion/v20220927/api.json +12 -1
- tccli/services/fmu/v20191213/api.json +8 -8
- tccli/services/gaap/v20180529/api.json +200 -209
- tccli/services/gwlb/v20240906/api.json +16 -16
- tccli/services/gwlb/v20240906/examples.json +2 -2
- tccli/services/hai/v20230812/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +6 -6
- tccli/services/iss/v20230517/api.json +11 -11
- tccli/services/iss/v20230517/examples.json +31 -31
- tccli/services/keewidb/v20220308/api.json +92 -82
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/lcic/v20220817/api.json +3 -3
- tccli/services/lcic/v20220817/examples.json +2 -2
- tccli/services/lighthouse/v20200324/api.json +18 -18
- tccli/services/lighthouse/v20200324/examples.json +6 -6
- tccli/services/live/v20180801/api.json +32 -14
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/mariadb/v20170312/api.json +285 -263
- tccli/services/mariadb/v20170312/examples.json +12 -12
- tccli/services/mongodb/v20180408/api.json +52 -40
- tccli/services/mongodb/v20180408/examples.json +4 -4
- tccli/services/mongodb/v20190725/api.json +119 -109
- tccli/services/mongodb/v20190725/examples.json +5 -5
- tccli/services/monitor/monitor_client.py +106 -0
- tccli/services/monitor/v20180724/api.json +222 -0
- tccli/services/monitor/v20180724/examples.json +17 -1
- tccli/services/mps/mps_client.py +228 -16
- tccli/services/mps/v20190612/api.json +385 -23
- tccli/services/mps/v20190612/examples.json +32 -0
- tccli/services/mqtt/v20240516/api.json +1 -1
- tccli/services/mqtt/v20240516/examples.json +1 -1
- tccli/services/msp/v20180319/api.json +2 -2
- tccli/services/ocr/v20181119/api.json +11 -1
- tccli/services/omics/v20221128/api.json +14 -2
- tccli/services/organization/v20210331/api.json +45 -18
- tccli/services/privatedns/v20201028/api.json +90 -81
- tccli/services/privatedns/v20201028/examples.json +18 -18
- tccli/services/pts/v20210728/api.json +8 -0
- tccli/services/redis/redis_client.py +106 -0
- tccli/services/redis/v20180412/api.json +178 -16
- tccli/services/redis/v20180412/examples.json +16 -0
- tccli/services/region/v20220627/api.json +5 -3
- tccli/services/region/v20220627/examples.json +1 -1
- tccli/services/ssl/v20191205/api.json +6 -4
- tccli/services/ssl/v20191205/examples.json +1 -1
- tccli/services/sts/v20180813/examples.json +1 -1
- tccli/services/tag/v20180813/api.json +4 -5
- tccli/services/tcb/v20180608/api.json +36 -16
- tccli/services/tdid/v20210519/api.json +30 -38
- tccli/services/tdid/v20210519/examples.json +5 -5
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +64 -1
- tccli/services/tdmq/v20200217/examples.json +9 -1
- tccli/services/teo/teo_client.py +485 -8
- tccli/services/teo/v20220901/api.json +837 -39
- tccli/services/teo/v20220901/examples.json +108 -0
- tccli/services/thpc/v20211109/api.json +32 -34
- tccli/services/thpc/v20220401/api.json +31 -33
- tccli/services/thpc/v20230321/api.json +55 -57
- tccli/services/thpc/v20230321/examples.json +1 -1
- tccli/services/tiia/v20190529/api.json +307 -293
- tccli/services/tiia/v20190529/examples.json +41 -41
- tccli/services/tione/v20211111/api.json +4 -4
- tccli/services/tione/v20211111/examples.json +2 -2
- tccli/services/tke/v20180525/api.json +1 -1
- tccli/services/trocket/trocket_client.py +53 -0
- tccli/services/trocket/v20230308/api.json +119 -3
- tccli/services/trocket/v20230308/examples.json +14 -0
- tccli/services/tse/v20201207/api.json +188 -120
- tccli/services/tse/v20201207/examples.json +30 -30
- tccli/services/tsf/v20180326/api.json +826 -745
- tccli/services/tsf/v20180326/examples.json +99 -111
- tccli/services/vclm/v20240523/api.json +1 -1
- tccli/services/vdb/v20230616/api.json +80 -80
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +64 -44
- tccli/services/vpc/v20170312/examples.json +6 -6
- tccli/services/vrs/v20200824/api.json +3 -2
- tccli/services/wedata/v20210820/api.json +550 -40
- tccli/services/wedata/v20210820/examples.json +10 -4
- {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/RECORD +149 -145
- {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/license_files/LICENSE +0 -0
@@ -3,15 +3,15 @@
|
|
3
3
|
"AddSpecifyPrivateZoneVpc": [
|
4
4
|
{
|
5
5
|
"document": "",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddSpecifyPrivateZoneVpc\n<公共请求参数>\n\n{\n \"ZoneId\": \"
|
7
|
-
"output": "{\n \"Response\": {\n \"ZoneId\": \"
|
6
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddSpecifyPrivateZoneVpc\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-dwuew12\",\n \"VpcSet\": [\n {\n \"UniqVpcId\": \"vpc-sd23d2\",\n \"Region\": \"ap-guangzhou\"\n }\n ],\n \"AccountVpcSet\": [\n {\n \"UniqVpcId\": \"vpc-xxxxxxxx\",\n \"Region\": \"ap-guangzhou\",\n \"Uin\": \"334345\",\n \"VpcName\": \"vpc-testname\"\n }\n ]\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"ZoneId\": \"zone-dwuew12\",\n \"VpcSet\": [\n {\n \"UniqVpcId\": \"vpc-sd23d2\",\n \"Region\": \"ap-guangzhou\"\n }\n ],\n \"AccountVpcSet\": [\n {\n \"Uin\": \"100000236200\",\n \"UniqVpcId\": \"vpc-dshgy2n\",\n \"Region\": \"ap-guangzhou\",\n \"VpcName\": \"vpc-testname\"\n }\n ],\n \"UniqId\": \"vpc-dser2gtg\",\n \"RequestId\": \"ba171d86-1337-48ca-a593-c8cbe46cdec5\"\n }\n}",
|
8
8
|
"title": "追加与私有域关联的vpc"
|
9
9
|
}
|
10
10
|
],
|
11
11
|
"CreatePrivateDNSAccount": [
|
12
12
|
{
|
13
13
|
"document": "",
|
14
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrivateDNSAccount\n<公共请求参数>\n\n{\n \"Account\": {\n \"Uin\": \"
|
14
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrivateDNSAccount\n<公共请求参数>\n\n{\n \"Account\": {\n \"Uin\": \"10020060700\"\n }\n}",
|
15
15
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\"\n }\n}",
|
16
16
|
"title": "创建私有域解析账号"
|
17
17
|
}
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"CreatePrivateZone": [
|
20
20
|
{
|
21
21
|
"document": "",
|
22
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrivateZone\n<公共请求参数>\n\n{\n \"Domain\": \"a.com\",\n \"TagSet\": [\n {\n \"TagKey\": \"owner\",\n \"TagValue\": \"xxxxxxxxxx\"\n }\n ],\n \"VpcSet\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"UniqVpcId\": \"vpc-xxxxxl\"\n }\n ],\n \"AccountVpcSet\": [\n {\n \"Uin\": \"
|
22
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrivateZone\n<公共请求参数>\n\n{\n \"Domain\": \"a.com\",\n \"TagSet\": [\n {\n \"TagKey\": \"owner\",\n \"TagValue\": \"xxxxxxxxxx\"\n }\n ],\n \"VpcSet\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"UniqVpcId\": \"vpc-xxxxxl\"\n }\n ],\n \"AccountVpcSet\": [\n {\n \"Uin\": \"1000458200\",\n \"Region\": \"ap-guangzhou\",\n \"UniqVpcId\": \"vpc-adsebmy1\",\n \"VpcName\": \"vpcname\"\n }\n ],\n \"Remark\": \"测试域名\",\n \"DnsForwardStatus\": \"ENABLED\",\n \"CnameSpeedupStatus\": \"ENABLED\"\n}",
|
23
23
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"ZoneId\": \"41\",\n \"Domain\": \"a.com\"\n }\n}",
|
24
24
|
"title": "创建私有域"
|
25
25
|
}
|
@@ -28,26 +28,26 @@
|
|
28
28
|
{
|
29
29
|
"document": "添加A记录",
|
30
30
|
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrivateZoneRecord\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-123456\",\n \"RecordType\": \"A\",\n \"SubDomain\": \"b\",\n \"RecordValue\": \"3.3.3.3\",\n \"Weight\": 100,\n \"TTL\": 600\n}",
|
31
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"a98891db-9d73-514a-8751422197b540cd\",\n \"RecordId\": \"
|
31
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a98891db-9d73-514a-8751422197b540cd\",\n \"RecordId\": \"15421\"\n }\n}",
|
32
32
|
"title": "私有域-添加A记录"
|
33
33
|
},
|
34
34
|
{
|
35
35
|
"document": "添加MX记录",
|
36
36
|
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrivateZoneRecord\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-123456\",\n \"RecordType\": \"MX\",\n \"SubDomain\": \"b\",\n \"RecordValue\": \"3.3.3.3\",\n \"Weight\": 100,\n \"MX\": 5\n}",
|
37
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"a98891db-9d73-514a-8751422197b540cd\",\n \"RecordId\": \"
|
37
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a98891db-9d73-514a-8751422197b540cd\",\n \"RecordId\": \"15421\"\n }\n}",
|
38
38
|
"title": "私有域-添加MX记录"
|
39
39
|
},
|
40
40
|
{
|
41
41
|
"document": "添加反解析记录",
|
42
42
|
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrivateZoneRecord\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-123456\",\n \"RecordType\": \"PTR\",\n \"SubDomain\": \"1.1.1\",\n \"RecordValue\": \"qq.com\"\n}",
|
43
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"a98891db-9d73-514a-8751422197b540cd\",\n \"RecordId\": \"
|
43
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a98891db-9d73-514a-8751422197b540cd\",\n \"RecordId\": \"15421\"\n }\n}",
|
44
44
|
"title": "私有域-添加PTR记录"
|
45
45
|
}
|
46
46
|
],
|
47
47
|
"DeletePrivateDNSAccount": [
|
48
48
|
{
|
49
49
|
"document": "",
|
50
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePrivateDNSAccount\n<公共请求参数>\n\n{\n \"Account\": {\n \"Uin\": \"
|
50
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePrivateDNSAccount\n<公共请求参数>\n\n{\n \"Account\": {\n \"Uin\": \"1002330010\"\n }\n}",
|
51
51
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\"\n }\n}",
|
52
52
|
"title": "删除私有域解析账号"
|
53
53
|
}
|
@@ -69,13 +69,13 @@
|
|
69
69
|
"DeletePrivateZoneRecord": [
|
70
70
|
{
|
71
71
|
"document": "删除单条解析记录",
|
72
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePrivateZoneRecord\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-xxxxxx\",\n \"RecordId\": \"
|
72
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePrivateZoneRecord\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-xxxxxx\",\n \"RecordId\": \"2657842\"\n}",
|
73
73
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a3ed908c-5848-1a98-d7aaa92528e28303\"\n }\n}",
|
74
74
|
"title": "删除私有域解析记录-单个"
|
75
75
|
},
|
76
76
|
{
|
77
77
|
"document": "批量删除解析记录",
|
78
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePrivateZoneRecord\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-xxxxxx\",\n \"RecordIdSet\": [\n \"
|
78
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePrivateZoneRecord\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-xxxxxx\",\n \"RecordIdSet\": [\n \"2657842\",\n \"2657843\"\n ]\n}",
|
79
79
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\"\n }\n}",
|
80
80
|
"title": "删除私有域解析记录-批量"
|
81
81
|
}
|
@@ -83,23 +83,23 @@
|
|
83
83
|
"DeleteSpecifyPrivateZoneVpc": [
|
84
84
|
{
|
85
85
|
"document": "",
|
86
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteSpecifyPrivateZoneVpc\n<公共请求参数>\n\n{\n \"ZoneId\": \"
|
87
|
-
"output": "{\n \"Response\": {\n \"ZoneId\": \"
|
86
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteSpecifyPrivateZoneVpc\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-sdasd12d\",\n \"VpcSet\": [\n {\n \"UniqVpcId\": \"vpc-dae2312\",\n \"Region\": \"ap-guangzhou\"\n }\n ],\n \"AccountVpcSet\": [\n {\n \"UniqVpcId\": \"vpc-2314dae\",\n \"Region\": \"ap-gangzhou\",\n \"Uin\": \"1000032110\",\n \"VpcName\": \"vpc-testname\"\n }\n ]\n}",
|
87
|
+
"output": "{\n \"Response\": {\n \"ZoneId\": \"zone-sdasd12d\",\n \"VpcSet\": [\n {\n \"UniqVpcId\": \"vpc-dae2312\",\n \"Region\": \"ap-guangzhou\"\n }\n ],\n \"AccountVpcSet\": [\n {\n \"Uin\": \"1000032110\",\n \"UniqVpcId\": \"vpc-2314dae\",\n \"Region\": \"ap-guangzhou\",\n \"VpcName\": \"vpc-testname\"\n }\n ],\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\"\n }\n}",
|
88
88
|
"title": "删除私有域关联的VPC"
|
89
89
|
}
|
90
90
|
],
|
91
91
|
"DescribeAccountVpcList": [
|
92
92
|
{
|
93
93
|
"document": "",
|
94
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccountVpcList\n<公共请求参数>\n\n{\n \"AccountUin\": \"
|
95
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"443f1f2b-9be4-4a2c-b1a6-0494c2d980ff\",\n \"TotalCount\": 1,\n \"VpcSet\": [\n {\n \"VpcId\": \"vpc-ofnocfe1\",\n \"VpcName\": \"testname\",\n \"Uin\":
|
94
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccountVpcList\n<公共请求参数>\n\n{\n \"AccountUin\": \"10000000010\",\n \"Limit\": 200,\n \"Offset\": 0,\n \"Filters\": [\n {\n \"Name\": \"Region\",\n \"Values\": [\n \"ap-guangzhou\"\n ]\n },\n {\n \"Name\": \"VpcName\",\n \"Values\": [\n \"vpc-ofnocfe1\"\n ]\n },\n {\n \"Name\": \"VpcId\",\n \"Values\": [\n \"vpc-sdfwadf1\"\n ]\n }\n ]\n}",
|
95
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"443f1f2b-9be4-4a2c-b1a6-0494c2d980ff\",\n \"TotalCount\": 1,\n \"VpcSet\": [\n {\n \"VpcId\": \"vpc-ofnocfe1\",\n \"VpcName\": \"testname\",\n \"Uin\": \"10000000010\",\n \"Region\": \"ap-guangzhou\"\n }\n ]\n }\n}",
|
96
96
|
"title": "获取私有域解析账号的VPC列表"
|
97
97
|
}
|
98
98
|
],
|
99
99
|
"DescribeAuditLog": [
|
100
100
|
{
|
101
101
|
"document": "",
|
102
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAuditLog\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"ZoneId\",\n \"Values\": [\n \"
|
102
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAuditLog\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"ZoneId\",\n \"Values\": [\n \"zone-dw12dhy\"\n ]\n },\n {\n \"Name\": \"Domain\",\n \"Values\": [\n \"a.com\"\n ]\n },\n {\n \"Name\": \"OperatorUin\",\n \"Values\": [\n \"10023400189\"\n ]\n }\n ],\n \"TimeRangeBegin\": \"2020-11-22 00:00:00\",\n \"TimeRangeEnd\": \"2020-11-23 23:59:59\",\n \"Offset\": 0,\n \"Limit\": 20\n}",
|
103
103
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5471b753-7d7a-8742-6cb079c6472692f2\",\n \"Data\": [\n {\n \"Resource\": \"all\",\n \"Metric\": \"request_count\",\n \"TotalCount\": 48,\n \"DataSet\": [\n {\n \"Date\": \"2020-11-22 00:00:00\",\n \"OperatorUin\": \"100000009719\",\n \"Content\": \"www(11111111111111) A , zone(777777)\"\n },\n {\n \"Date\": \"2020-11-22 01:00:00\",\n \"OperatorUin\": \"100000009719\",\n \"Content\": \"www(11111111111111) A , zone(777777)\"\n },\n {\n \"Date\": \"2020-11-22 02:00:00\",\n \"OperatorUin\": \"100000009719\",\n \"Content\": \"www.baidu.com 600 TXT aaaaaaaaaaaaaaaaaaaaaaaa zone(666666)\"\n },\n {\n \"Date\": \"2020-11-22 03:00:00\",\n \"OperatorUin\": \"100000009719\",\n \"Content\": \"www.baidu.com 600 TXT aaaaaaaaaaaaaaaaaaaaaaaa zone(666666)\"\n },\n {\n \"Date\": \"2020-11-22 04:00:00\",\n \"OperatorUin\": \"100000009719\",\n \"Content\": \"[子域名递归解析:关闭 -> 开启 ][], zone(444444)\"\n }\n ]\n }\n ]\n }\n}",
|
104
104
|
"title": "获取操作日志列表"
|
105
105
|
}
|
@@ -115,7 +115,7 @@
|
|
115
115
|
"DescribePrivateDNSAccountList": [
|
116
116
|
{
|
117
117
|
"document": "",
|
118
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrivateDNSAccountList\n<公共请求参数>\n\n{\n \"Limit\": 200,\n \"Offset\": 0,\n \"Filters\": [\n {\n \"Name\": \"AccountUin\",\n \"Values\": [\n \"
|
118
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrivateDNSAccountList\n<公共请求参数>\n\n{\n \"Limit\": 200,\n \"Offset\": 0,\n \"Filters\": [\n {\n \"Name\": \"AccountUin\",\n \"Values\": [\n \"1000230100\"\n ]\n }\n ]\n}",
|
119
119
|
"output": "{\n \"Response\": {\n \"RequestId\": \"14413609-3e4e-9003-c5df01ee3e4b0df7\",\n \"TotalCount\": 1,\n \"AccountSet\": [\n {\n \"Uin\": \"1234567898\",\n \"Account\": \"privatedns***@tencent.com\",\n \"Nickname\": \"Private DNS体验账号\"\n }\n ]\n }\n}",
|
120
120
|
"title": "获取私有域解析账号列表"
|
121
121
|
}
|
@@ -193,8 +193,8 @@
|
|
193
193
|
"ModifyPrivateZoneVpc": [
|
194
194
|
{
|
195
195
|
"document": "",
|
196
|
-
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPrivateZoneVpc\n<公共请求参数>\n\n{\n \"ZoneId\": \"1\",\n \"VpcSet\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"UniqVpcId\": \"vpc-xxxxxx\"\n }\n ],\n \"AccountVpcSet\": [\n {\n \"Uin\": \"
|
197
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"ZoneId\": \"1\",\n \"VpcSet\": [\n {\n \"UniqVpcId\": \"vpc-xxxxxxx\",\n \"Region\": \"ap-guangzhou\"\n }\n ],\n \"AccountVpcSet\": [\n {\n \"Uin\": \"
|
196
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPrivateZoneVpc\n<公共请求参数>\n\n{\n \"ZoneId\": \"1\",\n \"VpcSet\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"UniqVpcId\": \"vpc-xxxxxx\"\n }\n ],\n \"AccountVpcSet\": [\n {\n \"Uin\": \"1002450010\",\n \"Region\": \"ap-guangzhou\",\n \"UniqVpcId\": \"vpc-xxxxxx\",\n \"VpcName\": \"vpcName\"\n }\n ]\n}",
|
197
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"ZoneId\": \"1\",\n \"VpcSet\": [\n {\n \"UniqVpcId\": \"vpc-xxxxxxx\",\n \"Region\": \"ap-guangzhou\"\n }\n ],\n \"AccountVpcSet\": [\n {\n \"Uin\": \"1002450010\",\n \"UniqVpcId\": \"vpc-xxxxxxx\",\n \"Region\": \"ap-guangzhou\"\n }\n ]\n }\n}",
|
198
198
|
"title": "修改私有域关联的VPC"
|
199
199
|
}
|
200
200
|
],
|
@@ -5731,6 +5731,7 @@
|
|
5731
5731
|
"example": "ap-guangzhou",
|
5732
5732
|
"member": "string",
|
5733
5733
|
"name": "Region",
|
5734
|
+
"output_required": true,
|
5734
5735
|
"required": true,
|
5735
5736
|
"type": "string",
|
5736
5737
|
"value_allowed_null": false
|
@@ -5741,6 +5742,7 @@
|
|
5741
5742
|
"example": "1",
|
5742
5743
|
"member": "int64",
|
5743
5744
|
"name": "RegionId",
|
5745
|
+
"output_required": true,
|
5744
5746
|
"required": true,
|
5745
5747
|
"type": "int",
|
5746
5748
|
"value_allowed_null": false
|
@@ -5751,6 +5753,7 @@
|
|
5751
5753
|
"example": "华南地区",
|
5752
5754
|
"member": "string",
|
5753
5755
|
"name": "Area",
|
5756
|
+
"output_required": true,
|
5754
5757
|
"required": false,
|
5755
5758
|
"type": "string",
|
5756
5759
|
"value_allowed_null": false
|
@@ -5761,6 +5764,7 @@
|
|
5761
5764
|
"example": "广州",
|
5762
5765
|
"member": "string",
|
5763
5766
|
"name": "RegionName",
|
5767
|
+
"output_required": true,
|
5764
5768
|
"required": false,
|
5765
5769
|
"type": "string",
|
5766
5770
|
"value_allowed_null": false
|
@@ -5771,6 +5775,7 @@
|
|
5771
5775
|
"example": "1",
|
5772
5776
|
"member": "int64",
|
5773
5777
|
"name": "RegionState",
|
5778
|
+
"output_required": true,
|
5774
5779
|
"required": false,
|
5775
5780
|
"type": "int",
|
5776
5781
|
"value_allowed_null": false
|
@@ -5781,6 +5786,7 @@
|
|
5781
5786
|
"example": "gz",
|
5782
5787
|
"member": "string",
|
5783
5788
|
"name": "RegionShortName",
|
5789
|
+
"output_required": true,
|
5784
5790
|
"required": false,
|
5785
5791
|
"type": "string",
|
5786
5792
|
"value_allowed_null": false
|
@@ -5791,6 +5797,7 @@
|
|
5791
5797
|
"example": "2021-08-20T16:33:00+08:00",
|
5792
5798
|
"member": "datetime_iso",
|
5793
5799
|
"name": "CreatedAt",
|
5800
|
+
"output_required": true,
|
5794
5801
|
"required": false,
|
5795
5802
|
"type": "string",
|
5796
5803
|
"value_allowed_null": false
|
@@ -5801,6 +5808,7 @@
|
|
5801
5808
|
"example": "2021-08-20T16:33:00+08:00",
|
5802
5809
|
"member": "datetime_iso",
|
5803
5810
|
"name": "UpdatedAt",
|
5811
|
+
"output_required": true,
|
5804
5812
|
"required": false,
|
5805
5813
|
"type": "string",
|
5806
5814
|
"value_allowed_null": false
|
@@ -641,6 +641,58 @@ def doDescribeTaskInfo(args, parsed_globals):
|
|
641
641
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
642
|
|
643
643
|
|
644
|
+
def doModifyInstanceBackupMode(args, parsed_globals):
|
645
|
+
g_param = parse_global_arg(parsed_globals)
|
646
|
+
|
647
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
648
|
+
cred = credential.CVMRoleCredential()
|
649
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
650
|
+
cred = credential.STSAssumeRoleCredential(
|
651
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
652
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
653
|
+
)
|
654
|
+
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):
|
655
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
656
|
+
else:
|
657
|
+
cred = credential.Credential(
|
658
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
659
|
+
)
|
660
|
+
http_profile = HttpProfile(
|
661
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
662
|
+
reqMethod="POST",
|
663
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
664
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
665
|
+
)
|
666
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
667
|
+
if g_param[OptionsDefine.Language]:
|
668
|
+
profile.language = g_param[OptionsDefine.Language]
|
669
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
670
|
+
client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
671
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
672
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
+
model = models.ModifyInstanceBackupModeRequest()
|
674
|
+
model.from_json_string(json.dumps(args))
|
675
|
+
start_time = time.time()
|
676
|
+
while True:
|
677
|
+
rsp = client.ModifyInstanceBackupMode(model)
|
678
|
+
result = rsp.to_json_string()
|
679
|
+
try:
|
680
|
+
json_obj = json.loads(result)
|
681
|
+
except TypeError as e:
|
682
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
683
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
684
|
+
break
|
685
|
+
cur_time = time.time()
|
686
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
687
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
688
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
689
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
690
|
+
else:
|
691
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
692
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
693
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
|
+
|
695
|
+
|
644
696
|
def doModifyBackupDownloadRestriction(args, parsed_globals):
|
645
697
|
g_param = parse_global_arg(parsed_globals)
|
646
698
|
|
@@ -3969,6 +4021,58 @@ def doDescribeRedisClusters(args, parsed_globals):
|
|
3969
4021
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3970
4022
|
|
3971
4023
|
|
4024
|
+
def doDescribeSecondLevelBackupInfo(args, parsed_globals):
|
4025
|
+
g_param = parse_global_arg(parsed_globals)
|
4026
|
+
|
4027
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4028
|
+
cred = credential.CVMRoleCredential()
|
4029
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4030
|
+
cred = credential.STSAssumeRoleCredential(
|
4031
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4032
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4033
|
+
)
|
4034
|
+
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):
|
4035
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4036
|
+
else:
|
4037
|
+
cred = credential.Credential(
|
4038
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4039
|
+
)
|
4040
|
+
http_profile = HttpProfile(
|
4041
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4042
|
+
reqMethod="POST",
|
4043
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4044
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4045
|
+
)
|
4046
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4047
|
+
if g_param[OptionsDefine.Language]:
|
4048
|
+
profile.language = g_param[OptionsDefine.Language]
|
4049
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4050
|
+
client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
4051
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4052
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4053
|
+
model = models.DescribeSecondLevelBackupInfoRequest()
|
4054
|
+
model.from_json_string(json.dumps(args))
|
4055
|
+
start_time = time.time()
|
4056
|
+
while True:
|
4057
|
+
rsp = client.DescribeSecondLevelBackupInfo(model)
|
4058
|
+
result = rsp.to_json_string()
|
4059
|
+
try:
|
4060
|
+
json_obj = json.loads(result)
|
4061
|
+
except TypeError as e:
|
4062
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4063
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4064
|
+
break
|
4065
|
+
cur_time = time.time()
|
4066
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4067
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4068
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4069
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4070
|
+
else:
|
4071
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4072
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4073
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4074
|
+
|
4075
|
+
|
3972
4076
|
def doKillMasterGroup(args, parsed_globals):
|
3973
4077
|
g_param = parse_global_arg(parsed_globals)
|
3974
4078
|
|
@@ -5604,6 +5708,7 @@ ACTION_MAP = {
|
|
5604
5708
|
"UpgradeInstanceVersion": doUpgradeInstanceVersion,
|
5605
5709
|
"DescribeProductInfo": doDescribeProductInfo,
|
5606
5710
|
"DescribeTaskInfo": doDescribeTaskInfo,
|
5711
|
+
"ModifyInstanceBackupMode": doModifyInstanceBackupMode,
|
5607
5712
|
"ModifyBackupDownloadRestriction": doModifyBackupDownloadRestriction,
|
5608
5713
|
"DescribeParamTemplates": doDescribeParamTemplates,
|
5609
5714
|
"DescribeInstanceSecurityGroup": doDescribeInstanceSecurityGroup,
|
@@ -5668,6 +5773,7 @@ ACTION_MAP = {
|
|
5668
5773
|
"DescribeInstanceMonitorBigKey": doDescribeInstanceMonitorBigKey,
|
5669
5774
|
"DescribeReplicationGroupInstance": doDescribeReplicationGroupInstance,
|
5670
5775
|
"DescribeRedisClusters": doDescribeRedisClusters,
|
5776
|
+
"DescribeSecondLevelBackupInfo": doDescribeSecondLevelBackupInfo,
|
5671
5777
|
"KillMasterGroup": doKillMasterGroup,
|
5672
5778
|
"DescribeCommonDBInstances": doDescribeCommonDBInstances,
|
5673
5779
|
"DescribeSlowLog": doDescribeSlowLog,
|