tccli 3.0.1216.1__py2.py3-none-any.whl → 3.0.1217.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/argparser.py +1 -1
- tccli/command.py +2 -2
- tccli/credentials.py +25 -0
- tccli/main.py +6 -2
- tccli/plugins/sso/__init__.py +61 -0
- tccli/plugins/sso/configs.py +4 -0
- tccli/plugins/sso/configure.py +45 -0
- tccli/plugins/sso/login.py +144 -0
- tccli/plugins/sso/logout.py +21 -0
- tccli/plugins/sso/terminal.py +161 -0
- tccli/plugins/sso/texts.py +40 -0
- tccli/services/__init__.py +6 -0
- tccli/services/acp/v20220105/api.json +7 -7
- tccli/services/acp/v20220105/examples.json +2 -2
- tccli/services/aiart/v20221229/api.json +29 -29
- tccli/services/aiart/v20221229/examples.json +8 -8
- tccli/services/apigateway/v20180808/api.json +18 -17
- tccli/services/apigateway/v20180808/examples.json +12 -12
- tccli/services/apm/v20210622/api.json +98 -4
- tccli/services/asr/v20190614/api.json +18 -17
- tccli/services/asr/v20190614/examples.json +13 -13
- tccli/services/autoscaling/v20180419/api.json +371 -309
- tccli/services/autoscaling/v20180419/examples.json +17 -17
- tccli/services/batch/v20170312/api.json +7 -7
- tccli/services/bda/v20200324/api.json +39 -31
- tccli/services/bda/v20200324/examples.json +9 -9
- tccli/services/bh/__init__.py +4 -0
- tccli/services/bh/bh_client.py +3428 -0
- tccli/services/bh/v20230418/api.json +8180 -0
- tccli/services/bh/v20230418/examples.json +519 -0
- tccli/services/bi/v20220105/api.json +48 -0
- tccli/services/billing/v20180709/api.json +26 -24
- tccli/services/bsca/v20210811/api.json +1 -1
- tccli/services/btoe/v20210514/api.json +4 -4
- tccli/services/btoe/v20210514/examples.json +2 -2
- tccli/services/ca/v20230228/api.json +60 -0
- tccli/services/cam/v20190116/api.json +11 -11
- tccli/services/cat/v20180409/api.json +9 -0
- tccli/services/cbs/v20170312/api.json +200 -188
- tccli/services/cbs/v20170312/examples.json +4 -4
- tccli/services/ccc/v20200210/api.json +390 -323
- tccli/services/ccc/v20200210/examples.json +15 -15
- tccli/services/cdb/cdb_client.py +13 -13
- tccli/services/cdb/v20170320/api.json +295 -270
- tccli/services/cdb/v20170320/examples.json +38 -38
- tccli/services/cdc/v20201214/api.json +283 -270
- tccli/services/cdc/v20201214/examples.json +26 -26
- tccli/services/cds/v20180420/api.json +82 -76
- tccli/services/cds/v20180420/examples.json +1 -1
- tccli/services/cdwch/v20200915/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +42 -2
- tccli/services/cdz/v20221123/api.json +41 -5
- tccli/services/cfg/v20210820/api.json +31 -0
- tccli/services/cfs/v20190719/api.json +89 -1
- tccli/services/cfs/v20190719/examples.json +1 -1
- tccli/services/cfw/cfw_client.py +0 -53
- tccli/services/cfw/v20190904/api.json +1849 -1999
- tccli/services/cfw/v20190904/examples.json +157 -159
- tccli/services/ckafka/v20190819/api.json +104 -75
- tccli/services/clb/v20180317/api.json +48 -26
- tccli/services/clb/v20180317/examples.json +1 -1
- tccli/services/cloudapp/v20220530/api.json +5 -1
- tccli/services/cloudaudit/v20190319/api.json +58 -44
- tccli/services/cloudaudit/v20190319/examples.json +6 -6
- tccli/services/cloudstudio/v20230508/api.json +38 -37
- tccli/services/cloudstudio/v20230508/examples.json +4 -4
- tccli/services/cls/cls_client.py +216 -4
- tccli/services/cls/v20201016/api.json +536 -47
- tccli/services/cls/v20201016/examples.json +34 -2
- tccli/services/csip/v20221121/api.json +2562 -2382
- tccli/services/csip/v20221121/examples.json +108 -108
- tccli/services/cvm/v20170312/api.json +149 -112
- tccli/services/cvm/v20170312/examples.json +2 -2
- tccli/services/cwp/cwp_client.py +4 -110
- tccli/services/cwp/v20180228/api.json +6338 -6146
- tccli/services/cwp/v20180228/examples.json +342 -370
- tccli/services/cynosdb/v20190107/api.json +93 -81
- tccli/services/cynosdb/v20190107/examples.json +70 -70
- tccli/services/dasb/v20191018/api.json +796 -651
- tccli/services/dasb/v20191018/examples.json +101 -101
- tccli/services/dcdb/dcdb_client.py +114 -61
- tccli/services/dcdb/v20180411/api.json +141 -7
- tccli/services/dcdb/v20180411/examples.json +32 -0
- tccli/services/dlc/v20210125/api.json +21 -11
- tccli/services/dnspod/dnspod_client.py +417 -46
- tccli/services/dnspod/v20210323/api.json +751 -30
- tccli/services/dnspod/v20210323/examples.json +62 -0
- tccli/services/dts/v20211206/api.json +4 -4
- tccli/services/ecm/v20190719/api.json +2 -2
- tccli/services/emr/v20190103/api.json +339 -114
- tccli/services/emr/v20190103/examples.json +64 -82
- tccli/services/es/v20180416/api.json +29 -0
- tccli/services/es/v20180416/examples.json +1 -1
- tccli/services/ess/v20201111/api.json +49 -31
- tccli/services/ess/v20201111/examples.json +20 -8
- tccli/services/essbasic/v20210526/api.json +54 -49
- tccli/services/essbasic/v20210526/examples.json +36 -18
- tccli/services/facefusion/v20181201/api.json +47 -45
- tccli/services/facefusion/v20181201/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +54 -48
- tccli/services/facefusion/v20220927/examples.json +5 -5
- tccli/services/faceid/v20180301/api.json +497 -496
- tccli/services/faceid/v20180301/examples.json +219 -101
- tccli/services/fmu/v20191213/api.json +59 -67
- tccli/services/fmu/v20191213/examples.json +22 -22
- tccli/services/ft/v20200304/api.json +53 -57
- tccli/services/ft/v20200304/examples.json +14 -14
- tccli/services/gme/v20180711/api.json +21 -11
- tccli/services/gme/v20180711/examples.json +1 -1
- tccli/services/hai/v20230812/api.json +116 -9
- tccli/services/hai/v20230812/examples.json +4 -4
- tccli/services/hunyuan/hunyuan_client.py +436 -12
- tccli/services/hunyuan/v20230901/api.json +1482 -118
- tccli/services/hunyuan/v20230901/examples.json +82 -18
- tccli/services/iai/v20180301/api.json +23 -19
- tccli/services/iai/v20180301/examples.json +2 -2
- tccli/services/iai/v20200303/api.json +530 -511
- tccli/services/iai/v20200303/examples.json +116 -86
- tccli/services/ig/__init__.py +4 -0
- tccli/services/ig/ig_client.py +195 -0
- tccli/services/ig/v20210518/api.json +83 -0
- tccli/services/ig/v20210518/examples.json +13 -0
- tccli/services/ioa/ioa_client.py +53 -0
- tccli/services/ioa/v20220601/api.json +662 -413
- tccli/services/ioa/v20220601/examples.json +24 -10
- tccli/services/iotexplorer/v20190423/api.json +33 -13
- tccli/services/iotexplorer/v20190423/examples.json +3 -3
- tccli/services/iotvideo/iotvideo_client.py +106 -0
- tccli/services/iotvideo/v20191126/api.json +256 -24
- tccli/services/iotvideo/v20191126/examples.json +19 -3
- tccli/services/iotvideo/v20201215/api.json +1 -1
- tccli/services/iotvideo/v20201215/examples.json +1 -1
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/iotvideo/v20211125/examples.json +2 -2
- tccli/services/iss/iss_client.py +69 -122
- tccli/services/iss/v20230517/api.json +10 -54
- tccli/services/iss/v20230517/examples.json +0 -14
- tccli/services/kms/v20190118/api.json +301 -268
- tccli/services/kms/v20190118/examples.json +45 -51
- tccli/services/lcic/lcic_client.py +159 -0
- tccli/services/lcic/v20220817/api.json +273 -1
- tccli/services/lcic/v20220817/examples.json +24 -0
- tccli/services/lighthouse/v20200324/api.json +56 -0
- tccli/services/live/live_client.py +159 -0
- tccli/services/live/v20180801/api.json +244 -0
- tccli/services/live/v20180801/examples.json +24 -0
- tccli/services/lke/v20231130/api.json +17 -17
- tccli/services/lke/v20231130/examples.json +19 -25
- tccli/services/mariadb/v20170312/api.json +7 -7
- tccli/services/market/v20191010/api.json +3 -3
- tccli/services/market/v20191010/examples.json +2 -2
- tccli/services/mmps/v20200710/api.json +47 -47
- tccli/services/mmps/v20200710/examples.json +3 -3
- tccli/services/mongodb/v20190725/api.json +4 -4
- tccli/services/monitor/v20180724/api.json +46 -19
- tccli/services/mps/v20190612/api.json +282 -5
- tccli/services/mps/v20190612/examples.json +25 -1
- tccli/services/mqtt/v20240516/api.json +2 -2
- tccli/services/mrs/v20200910/api.json +72 -34
- tccli/services/mrs/v20200910/examples.json +2 -2
- tccli/services/ms/v20180408/api.json +535 -506
- tccli/services/ms/v20180408/examples.json +25 -25
- tccli/services/oceanus/v20190422/api.json +130 -0
- tccli/services/ocr/ocr_client.py +232 -20
- tccli/services/ocr/v20181119/api.json +2265 -760
- tccli/services/ocr/v20181119/examples.json +200 -180
- tccli/services/omics/v20221128/api.json +614 -553
- tccli/services/omics/v20221128/examples.json +9 -9
- tccli/services/organization/v20210331/api.json +13 -4
- tccli/services/organization/v20210331/examples.json +2 -2
- tccli/services/partners/v20180321/api.json +244 -234
- tccli/services/partners/v20180321/examples.json +19 -19
- tccli/services/privatedns/privatedns_client.py +428 -4
- tccli/services/privatedns/v20201028/api.json +815 -11
- tccli/services/privatedns/v20201028/examples.json +64 -0
- tccli/services/pts/v20210728/api.json +18 -0
- tccli/services/pts/v20210728/examples.json +1 -1
- tccli/services/rce/rce_client.py +53 -0
- tccli/services/rce/v20201103/api.json +146 -0
- tccli/services/rce/v20201103/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +42 -42
- tccli/services/redis/v20180412/examples.json +19 -19
- tccli/services/rum/v20210622/api.json +9 -0
- tccli/services/scf/v20180416/api.json +15 -15
- tccli/services/scf/v20180416/examples.json +1 -1
- tccli/services/smop/v20201203/api.json +46 -42
- tccli/services/smop/v20201203/examples.json +2 -2
- tccli/services/soe/v20180724/api.json +10 -10
- tccli/services/sqlserver/v20180328/api.json +21 -8
- tccli/services/sqlserver/v20180328/examples.json +5 -5
- tccli/services/ssl/v20191205/api.json +97 -4
- tccli/services/ssm/v20190923/api.json +292 -231
- tccli/services/ssm/v20190923/examples.json +42 -42
- tccli/services/tat/v20201028/api.json +97 -97
- tccli/services/tat/v20201028/examples.json +20 -26
- tccli/services/tchd/v20230306/api.json +5 -5
- tccli/services/tchd/v20230306/examples.json +3 -3
- tccli/services/tcr/v20190924/api.json +1 -1
- tccli/services/tcr/v20190924/examples.json +1 -1
- tccli/services/tcss/v20201101/api.json +1973 -1426
- tccli/services/tcss/v20201101/examples.json +346 -364
- tccli/services/tdmq/v20200217/api.json +539 -401
- tccli/services/tdmq/v20200217/examples.json +104 -104
- tccli/services/tds/v20220801/api.json +4 -4
- tccli/services/tem/v20210701/api.json +287 -271
- tccli/services/tem/v20210701/examples.json +59 -59
- tccli/services/teo/v20220901/api.json +37 -9
- tccli/services/teo/v20220901/examples.json +13 -7
- tccli/services/thpc/v20230321/api.json +5 -5
- tccli/services/tke/tke_client.py +217 -58
- tccli/services/tke/v20180525/api.json +36 -27
- tccli/services/tke/v20180525/examples.json +1 -1
- tccli/services/tke/v20220501/api.json +176 -0
- tccli/services/tke/v20220501/examples.json +24 -0
- tccli/services/tmt/v20180321/api.json +38 -8
- tccli/services/trp/v20210515/api.json +86 -74
- tccli/services/trp/v20210515/examples.json +65 -65
- tccli/services/trro/v20220325/api.json +72 -71
- tccli/services/trro/v20220325/examples.json +8 -8
- tccli/services/trtc/trtc_client.py +8 -61
- tccli/services/trtc/v20190722/api.json +72 -30
- tccli/services/trtc/v20190722/examples.json +3 -11
- tccli/services/tse/tse_client.py +110 -4
- tccli/services/tse/v20201207/api.json +122 -7
- tccli/services/tse/v20201207/examples.json +25 -9
- tccli/services/vclm/v20240523/api.json +225 -82
- tccli/services/vclm/v20240523/examples.json +13 -19
- tccli/services/vod/v20180717/api.json +431 -4
- tccli/services/vod/v20180717/examples.json +25 -5
- tccli/services/vod/v20240718/api.json +11 -11
- tccli/services/vod/v20240718/examples.json +4 -4
- tccli/services/vod/vod_client.py +53 -0
- tccli/services/vpc/v20170312/api.json +1090 -862
- tccli/services/vpc/v20170312/examples.json +74 -66
- tccli/services/vpc/vpc_client.py +61 -8
- tccli/services/waf/v20180125/api.json +2540 -2177
- tccli/services/waf/v20180125/examples.json +216 -284
- tccli/services/waf/waf_client.py +172 -119
- tccli/services/wav/v20210129/api.json +48 -48
- tccli/services/wav/v20210129/examples.json +4 -4
- tccli/services/wedata/v20210820/api.json +909 -25
- tccli/services/wedata/v20210820/examples.json +28 -4
- tccli/services/wedata/wedata_client.py +159 -0
- tccli/services/weilingwith/v20230427/api.json +6 -6
- tccli/services/weilingwith/v20230427/examples.json +3 -3
- tccli/sso.py +229 -0
- {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/RECORD +252 -235
- {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/license_files/LICENSE +0 -0
@@ -16,6 +16,22 @@
|
|
16
16
|
"title": "创建终端节点"
|
17
17
|
}
|
18
18
|
],
|
19
|
+
"CreateEndPointAndEndPointService": [
|
20
|
+
{
|
21
|
+
"document": "输入vpcid,终端节点服务名称, 实例id,服务类型 创建终端节点服务,同时用终端节点名称,以及终端节点服务对应的地域来创建一个终端节点",
|
22
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEndPointAndEndPointService\n<公共请求参数>\n\n{\n \"VpcId\": \"vpc-xxxxxxxx\",\n \"EndPointServiceName\": \"test001\",\n \"AutoAcceptFlag\": true,\n \"ServiceInstanceId\": \"lb-xxxxxxxx\",\n \"ServiceType\": \"clb\",\n \"EndPointName\": \"test001\",\n \"EndPointRegion\": \"ap-guangzhou\"\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"EndPointId\": \"eid-scls023kfns\",\n \"EndPointName\": \"终端节点名\",\n \"EndPointServiceId\": \"vpcsvc-gtd4gxa1\",\n \"EndPointVipSet\": [\n \"10.0.0.13\"\n ]\n }\n}",
|
24
|
+
"title": "同时创建终端节点和终端节点服务"
|
25
|
+
}
|
26
|
+
],
|
27
|
+
"CreateForwardRule": [
|
28
|
+
{
|
29
|
+
"document": "",
|
30
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateForwardRule\n<公共请求参数>\n\n{\n \"RuleType\": \"UP\",\n \"ZoneId\": \"zone-fadsvas\",\n \"RuleName\": \"规则1\",\n \"EndPointId\": \"eid-93kvksadf\"\n}",
|
31
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"RuleType\": \"UP\",\n \"RuleId\": \"fid-afdfaf2fsad\",\n \"ZoneId\": \"zone-fadsvas\",\n \"EndPointId\": \"eid-93kvksadf\",\n \"RuleName\": \"规则1\"\n }\n}",
|
32
|
+
"title": "创建转发规则"
|
33
|
+
}
|
34
|
+
],
|
19
35
|
"CreatePrivateDNSAccount": [
|
20
36
|
{
|
21
37
|
"document": "",
|
@@ -60,6 +76,14 @@
|
|
60
76
|
"title": "删除终端节点"
|
61
77
|
}
|
62
78
|
],
|
79
|
+
"DeleteForwardRule": [
|
80
|
+
{
|
81
|
+
"document": "删除转发规则",
|
82
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteForwardRule\n<公共请求参数>\n\n{\n \"RuleIdSet\": [\n \"fid-123456\",\n \"fid-789abc\"\n ]\n}",
|
83
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\"\n }\n}",
|
84
|
+
"title": "删除转发规则"
|
85
|
+
}
|
86
|
+
],
|
63
87
|
"DeletePrivateDNSAccount": [
|
64
88
|
{
|
65
89
|
"document": "",
|
@@ -128,6 +152,38 @@
|
|
128
152
|
"title": "获取私有域解析概览"
|
129
153
|
}
|
130
154
|
],
|
155
|
+
"DescribeEndPointList": [
|
156
|
+
{
|
157
|
+
"document": "",
|
158
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEndPointList\n<公共请求参数>\n\n{\n \"Limit\": 200,\n \"Offset\": 0,\n \"Filters\": [\n {\n \"Name\": \"EndPointName\",\n \"Values\": [\n \"终端节点名\"\n ]\n },\n {\n \"Name\": \"EndPointId\",\n \"Values\": [\n \"eid-24ed8e6319\"\n ]\n },\n {\n \"Name\": \"EndPointServiceId\",\n \"Values\": [\n \"vpcsvc-prvrnrlt\"\n ]\n },\n {\n \"Name\": \"EndPointVip\",\n \"Values\": [\n \"11.149.7.14\",\n \"11.149.7.141\"\n ]\n }\n ]\n}",
|
159
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"8a4ea9cc-b1df-f8f8-ffe7efbe98f9ff85\",\n \"TotalCount\": 5,\n \"EndPointSet\": [\n {\n \"EndPointId\": \"eid-24ed8e6319\",\n \"EndPointName\": \"名称\",\n \"EndPointServiceId\": \"vpcsvc-prvrnrlt\",\n \"EndPointVipSet\": [\n \"10.0.0.17:53\"\n ],\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n }\n ]\n }\n}",
|
160
|
+
"title": "获取终端节点列表"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"DescribeEndPointRegion": [
|
164
|
+
{
|
165
|
+
"document": "查询终端节点可用地域",
|
166
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEndPointRegion\n<公共请求参数>\n\n{}",
|
167
|
+
"output": "{\n \"Response\": {\n \"RegionSet\": [\n {\n \"CnName\": \"北京\",\n \"EnName\": \"bj\",\n \"RegionCode\": \"ap-beijing\",\n \"RegionId\": 8\n },\n {\n \"CnName\": \"广州\",\n \"EnName\": \"gz\",\n \"RegionCode\": \"ap-guangzhou\",\n \"RegionId\": 1\n },\n {\n \"CnName\": \"南京\",\n \"EnName\": \"nj\",\n \"RegionCode\": \"ap-nanjing\",\n \"RegionId\": 33\n },\n {\n \"CnName\": \"上海\",\n \"EnName\": \"sh\",\n \"RegionCode\": \"ap-shanghai\",\n \"RegionId\": 4\n }\n ],\n \"RequestId\": \"036e44eb-02af-44cf-b46e-924a0e04ea4a\"\n }\n}",
|
168
|
+
"title": "查询终端节点可用地域"
|
169
|
+
}
|
170
|
+
],
|
171
|
+
"DescribeForwardRule": [
|
172
|
+
{
|
173
|
+
"document": "",
|
174
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeForwardRule\n<公共请求参数>\n\n{\n \"RuleId\": \"fid-af2f9nkug\"\n}",
|
175
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"ForwardRule\": {\n \"Domain\": \"qq.com\",\n \"ZoneId\": \"zone-s8cs72d9\",\n \"RuleId\": \"fid-fa2c8misu\",\n \"ForwardAddress\": [\n \"1.1.11.1:53\"\n ],\n \"RuleType\": \"DOWN\",\n \"VpcSet\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"UniqVpcId\": \"vpc-as3bsfml\"\n }\n ],\n \"EndPointName\": \"终端节点名\",\n \"EndPointId\": \"eid-fc9iuxhg4\",\n \"RuleName\": \"转发规则名称\",\n \"UpdatedAt\": \"2022-09-09 10:45:44\",\n \"CreatedAt\": \"2022-09-09 10:45:44\"\n }\n }\n}",
|
176
|
+
"title": "查询转发规则"
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"DescribeForwardRuleList": [
|
180
|
+
{
|
181
|
+
"document": "",
|
182
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeForwardRuleList\n<公共请求参数>\n\n{\n \"Limit\": 200,\n \"Offset\": 0,\n \"Filters\": [\n {\n \"Name\": \"RuleName\",\n \"Values\": [\n \"呵呵\"\n ]\n },\n {\n \"Name\": \"RuleType\",\n \"Values\": [\n \"DOWN\"\n ]\n },\n {\n \"Name\": \"ZoneId\",\n \"Values\": [\n \"zone-04jlawty\"\n ]\n },\n {\n \"Name\": \"EndPointId\",\n \"Values\": [\n \"eid-asdfadaf\"\n ]\n },\n {\n \"Name\": \"EndPointName\",\n \"Values\": [\n \"zdjdhhh\"\n ]\n }\n ]\n}",
|
183
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"8a4ea9cc-b1df-f8f8-ffe7efbe98f9ff85\",\n \"TotalCount\": 5,\n \"ForwardRuleSet\": [\n {\n \"Domain\": \"qq.com\",\n \"ZoneId\": \"zone-s8cs72d9\",\n \"RuleId\": \"fid-af2skm96n\",\n \"ForwardAddress\": [\n \"1.1.1.1:53\"\n ],\n \"RuleType\": \"UP\",\n \"VpcSet\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"UniqVpcId\": \"vpc-dus89eks\"\n }\n ],\n \"EndPointName\": \"终端节点1\",\n \"EndPointId\": \"eid-fxiuf872bsp\",\n \"RuleName\": \"转发规则名称\",\n \"UpdatedAt\": \"2022-09-09 10:45:44\",\n \"CreatedAt\": \"2022-09-09 10:45:44\",\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n }\n ]\n }\n}",
|
184
|
+
"title": "获取私有域列表"
|
185
|
+
}
|
186
|
+
],
|
131
187
|
"DescribePrivateDNSAccountList": [
|
132
188
|
{
|
133
189
|
"document": "",
|
@@ -184,6 +240,14 @@
|
|
184
240
|
"title": "获取私有域解析请求量"
|
185
241
|
}
|
186
242
|
],
|
243
|
+
"ModifyForwardRule": [
|
244
|
+
{
|
245
|
+
"document": "",
|
246
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyForwardRule\n<公共请求参数>\n\n{\n \"RuleName\": \"转发规则名\",\n \"EndPointId\": \"eid-xlsjc8qojg\",\n \"RuleId\": \"fid-xiwus89no\"\n}",
|
247
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\"\n }\n}",
|
248
|
+
"title": "修改转发规则"
|
249
|
+
}
|
250
|
+
],
|
187
251
|
"ModifyPrivateZone": [
|
188
252
|
{
|
189
253
|
"document": "",
|
@@ -5161,6 +5161,17 @@
|
|
5161
5161
|
"required": false,
|
5162
5162
|
"type": "int",
|
5163
5163
|
"value_allowed_null": true
|
5164
|
+
},
|
5165
|
+
{
|
5166
|
+
"disabled": false,
|
5167
|
+
"document": "job VUM用量\n注意:此字段可能返回 null,表示取不到有效值。",
|
5168
|
+
"example": "1000",
|
5169
|
+
"member": "int64",
|
5170
|
+
"name": "Usage",
|
5171
|
+
"output_required": false,
|
5172
|
+
"required": false,
|
5173
|
+
"type": "int",
|
5174
|
+
"value_allowed_null": true
|
5164
5175
|
}
|
5165
5176
|
],
|
5166
5177
|
"usage": "both"
|
@@ -5929,6 +5940,7 @@
|
|
5929
5940
|
"example": "1000",
|
5930
5941
|
"member": "int64",
|
5931
5942
|
"name": "MaxRequestsPerSecond",
|
5943
|
+
"output_required": true,
|
5932
5944
|
"required": false,
|
5933
5945
|
"type": "int",
|
5934
5946
|
"value_allowed_null": true
|
@@ -5939,6 +5951,7 @@
|
|
5939
5951
|
"example": "60",
|
5940
5952
|
"member": "int64",
|
5941
5953
|
"name": "DurationSeconds",
|
5954
|
+
"output_required": true,
|
5942
5955
|
"required": false,
|
5943
5956
|
"type": "int",
|
5944
5957
|
"value_allowed_null": true
|
@@ -5949,6 +5962,7 @@
|
|
5949
5962
|
"example": "30",
|
5950
5963
|
"member": "int64",
|
5951
5964
|
"name": "TargetVirtualUsers",
|
5965
|
+
"output_required": true,
|
5952
5966
|
"required": false,
|
5953
5967
|
"type": "int",
|
5954
5968
|
"value_allowed_null": true
|
@@ -5959,6 +5973,7 @@
|
|
5959
5973
|
"example": "6",
|
5960
5974
|
"member": "int64",
|
5961
5975
|
"name": "Resources",
|
5976
|
+
"output_required": true,
|
5962
5977
|
"required": false,
|
5963
5978
|
"type": "int",
|
5964
5979
|
"value_allowed_null": true
|
@@ -5969,6 +5984,7 @@
|
|
5969
5984
|
"example": "500",
|
5970
5985
|
"member": "int64",
|
5971
5986
|
"name": "StartRequestsPerSecond",
|
5987
|
+
"output_required": true,
|
5972
5988
|
"required": false,
|
5973
5989
|
"type": "int",
|
5974
5990
|
"value_allowed_null": true
|
@@ -5979,6 +5995,7 @@
|
|
5979
5995
|
"example": "500",
|
5980
5996
|
"member": "int64",
|
5981
5997
|
"name": "TargetRequestsPerSecond",
|
5998
|
+
"output_required": true,
|
5982
5999
|
"required": false,
|
5983
6000
|
"type": "int",
|
5984
6001
|
"value_allowed_null": true
|
@@ -5989,6 +6006,7 @@
|
|
5989
6006
|
"example": "3",
|
5990
6007
|
"member": "int64",
|
5991
6008
|
"name": "GracefulStopSeconds",
|
6009
|
+
"output_required": true,
|
5992
6010
|
"required": false,
|
5993
6011
|
"type": "int",
|
5994
6012
|
"value_allowed_null": true
|
@@ -364,7 +364,7 @@
|
|
364
364
|
{
|
365
365
|
"document": "",
|
366
366
|
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateJob\n<公共请求参数>\n\n{\n \"ProjectId\": \"project-xx\",\n \"ScenarioId\": \"scenario-xx\",\n \"Note\": \"this is my note\",\n \"JobId\": \"job-xx\"\n}",
|
367
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
367
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc-123-xyz\"\n }\n}",
|
368
368
|
"title": "创建任务"
|
369
369
|
}
|
370
370
|
],
|
tccli/services/rce/rce_client.py
CHANGED
@@ -485,6 +485,58 @@ def doDescribeNameListDataList(args, parsed_globals):
|
|
485
485
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
486
|
|
487
487
|
|
488
|
+
def doDescribeUserUsageCnt(args, parsed_globals):
|
489
|
+
g_param = parse_global_arg(parsed_globals)
|
490
|
+
|
491
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
492
|
+
cred = credential.CVMRoleCredential()
|
493
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
494
|
+
cred = credential.STSAssumeRoleCredential(
|
495
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
496
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
497
|
+
)
|
498
|
+
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):
|
499
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
500
|
+
else:
|
501
|
+
cred = credential.Credential(
|
502
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
503
|
+
)
|
504
|
+
http_profile = HttpProfile(
|
505
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
506
|
+
reqMethod="POST",
|
507
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
508
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
509
|
+
)
|
510
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
511
|
+
if g_param[OptionsDefine.Language]:
|
512
|
+
profile.language = g_param[OptionsDefine.Language]
|
513
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
514
|
+
client = mod.RceClient(cred, g_param[OptionsDefine.Region], profile)
|
515
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
516
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
517
|
+
model = models.DescribeUserUsageCntRequest()
|
518
|
+
model.from_json_string(json.dumps(args))
|
519
|
+
start_time = time.time()
|
520
|
+
while True:
|
521
|
+
rsp = client.DescribeUserUsageCnt(model)
|
522
|
+
result = rsp.to_json_string()
|
523
|
+
try:
|
524
|
+
json_obj = json.loads(result)
|
525
|
+
except TypeError as e:
|
526
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
527
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
528
|
+
break
|
529
|
+
cur_time = time.time()
|
530
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
531
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
532
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
533
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
534
|
+
else:
|
535
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
536
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
537
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
|
+
|
539
|
+
|
488
540
|
def doImportNameListData(args, parsed_globals):
|
489
541
|
g_param = parse_global_arg(parsed_globals)
|
490
542
|
|
@@ -557,6 +609,7 @@ ACTION_MAP = {
|
|
557
609
|
"CreateNameList": doCreateNameList,
|
558
610
|
"DescribeNameListDetail": doDescribeNameListDetail,
|
559
611
|
"DescribeNameListDataList": doDescribeNameListDataList,
|
612
|
+
"DescribeUserUsageCnt": doDescribeUserUsageCnt,
|
560
613
|
"ImportNameListData": doImportNameListData,
|
561
614
|
|
562
615
|
}
|
@@ -42,6 +42,13 @@
|
|
42
42
|
"output": "DescribeNameListDetailResponse",
|
43
43
|
"status": "online"
|
44
44
|
},
|
45
|
+
"DescribeUserUsageCnt": {
|
46
|
+
"document": "RCE控制台预付费和后付费次数展示",
|
47
|
+
"input": "DescribeUserUsageCntRequest",
|
48
|
+
"name": "客户资源用量查询",
|
49
|
+
"output": "DescribeUserUsageCntResponse",
|
50
|
+
"status": "online"
|
51
|
+
},
|
45
52
|
"ImportNameListData": {
|
46
53
|
"document": "新增黑白名单数据,所有黑白名单数据总量上限为10000",
|
47
54
|
"input": "ImportNameListDataRequest",
|
@@ -462,6 +469,33 @@
|
|
462
469
|
],
|
463
470
|
"type": "object"
|
464
471
|
},
|
472
|
+
"DescribeUserUsageCntRequest": {
|
473
|
+
"document": "DescribeUserUsageCnt请求参数结构体",
|
474
|
+
"members": [],
|
475
|
+
"type": "object"
|
476
|
+
},
|
477
|
+
"DescribeUserUsageCntResponse": {
|
478
|
+
"document": "DescribeUserUsageCnt返回参数结构体",
|
479
|
+
"members": [
|
480
|
+
{
|
481
|
+
"disabled": false,
|
482
|
+
"document": "业务出参",
|
483
|
+
"example": "无",
|
484
|
+
"member": "OutputDescribeUserUsageCntData",
|
485
|
+
"name": "Data",
|
486
|
+
"output_required": true,
|
487
|
+
"type": "object",
|
488
|
+
"value_allowed_null": false
|
489
|
+
},
|
490
|
+
{
|
491
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
492
|
+
"member": "string",
|
493
|
+
"name": "RequestId",
|
494
|
+
"type": "string"
|
495
|
+
}
|
496
|
+
],
|
497
|
+
"type": "object"
|
498
|
+
},
|
465
499
|
"ImportNameListDataRequest": {
|
466
500
|
"document": "ImportNameListData请求参数结构体",
|
467
501
|
"members": [
|
@@ -1955,6 +1989,118 @@
|
|
1955
1989
|
],
|
1956
1990
|
"usage": "out"
|
1957
1991
|
},
|
1992
|
+
"OutputDescribeUserUsageCnt": {
|
1993
|
+
"document": "预付费 后付费 总数显示接口出参",
|
1994
|
+
"members": [
|
1995
|
+
{
|
1996
|
+
"disabled": false,
|
1997
|
+
"document": "当前付费模式,0 后付费 1 预付费\n注意:此字段可能返回 null,表示取不到有效值。",
|
1998
|
+
"example": "0",
|
1999
|
+
"member": "int64",
|
2000
|
+
"name": "PayMode",
|
2001
|
+
"output_required": false,
|
2002
|
+
"type": "int",
|
2003
|
+
"value_allowed_null": true
|
2004
|
+
},
|
2005
|
+
{
|
2006
|
+
"disabled": false,
|
2007
|
+
"document": "后付费本月使用量\n注意:此字段可能返回 null,表示取不到有效值。",
|
2008
|
+
"example": "0",
|
2009
|
+
"member": "int64",
|
2010
|
+
"name": "AfterPayModeThisMonthUsedCnt",
|
2011
|
+
"output_required": false,
|
2012
|
+
"type": "int",
|
2013
|
+
"value_allowed_null": true
|
2014
|
+
},
|
2015
|
+
{
|
2016
|
+
"disabled": false,
|
2017
|
+
"document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
2018
|
+
"example": "2000-01-01 00:00:00",
|
2019
|
+
"member": "string",
|
2020
|
+
"name": "CreateTime",
|
2021
|
+
"output_required": false,
|
2022
|
+
"type": "string",
|
2023
|
+
"value_allowed_null": true
|
2024
|
+
},
|
2025
|
+
{
|
2026
|
+
"disabled": false,
|
2027
|
+
"document": "超出时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
2028
|
+
"example": "2000-01-01 00:00:00",
|
2029
|
+
"member": "string",
|
2030
|
+
"name": "ExpireTime",
|
2031
|
+
"output_required": false,
|
2032
|
+
"type": "string",
|
2033
|
+
"value_allowed_null": true
|
2034
|
+
},
|
2035
|
+
{
|
2036
|
+
"disabled": false,
|
2037
|
+
"document": "后付费上月使用量\n注意:此字段可能返回 null,表示取不到有效值。",
|
2038
|
+
"example": "0",
|
2039
|
+
"member": "int64",
|
2040
|
+
"name": "AfterPayModeLastMonthUsedCnt",
|
2041
|
+
"output_required": false,
|
2042
|
+
"type": "int",
|
2043
|
+
"value_allowed_null": true
|
2044
|
+
},
|
2045
|
+
{
|
2046
|
+
"disabled": false,
|
2047
|
+
"document": "预付费总量\n注意:此字段可能返回 null,表示取不到有效值。",
|
2048
|
+
"example": "0",
|
2049
|
+
"member": "int64",
|
2050
|
+
"name": "BeforePayModeTotalUsedCnt",
|
2051
|
+
"output_required": false,
|
2052
|
+
"type": "int",
|
2053
|
+
"value_allowed_null": true
|
2054
|
+
},
|
2055
|
+
{
|
2056
|
+
"disabled": false,
|
2057
|
+
"document": "预付费剩余用量\n注意:此字段可能返回 null,表示取不到有效值。",
|
2058
|
+
"example": "0",
|
2059
|
+
"member": "int64",
|
2060
|
+
"name": "BeforePayModeRemainUsedCnt",
|
2061
|
+
"output_required": false,
|
2062
|
+
"type": "int",
|
2063
|
+
"value_allowed_null": true
|
2064
|
+
}
|
2065
|
+
],
|
2066
|
+
"usage": "out"
|
2067
|
+
},
|
2068
|
+
"OutputDescribeUserUsageCntData": {
|
2069
|
+
"document": "RCE控制台预付费和后付费次数展示出参数据",
|
2070
|
+
"members": [
|
2071
|
+
{
|
2072
|
+
"disabled": false,
|
2073
|
+
"document": "错误码,0 表示成功,非0表示失败错误码。 0:成功 4300:未开通服务",
|
2074
|
+
"example": "0",
|
2075
|
+
"member": "int64",
|
2076
|
+
"name": "Code",
|
2077
|
+
"output_required": true,
|
2078
|
+
"type": "int",
|
2079
|
+
"value_allowed_null": false
|
2080
|
+
},
|
2081
|
+
{
|
2082
|
+
"disabled": false,
|
2083
|
+
"document": "错误信息",
|
2084
|
+
"example": "OK",
|
2085
|
+
"member": "string",
|
2086
|
+
"name": "Message",
|
2087
|
+
"output_required": true,
|
2088
|
+
"type": "string",
|
2089
|
+
"value_allowed_null": false
|
2090
|
+
},
|
2091
|
+
{
|
2092
|
+
"disabled": false,
|
2093
|
+
"document": "业务详情\n注意:此字段可能返回 null,表示取不到有效值。",
|
2094
|
+
"example": "0",
|
2095
|
+
"member": "OutputDescribeUserUsageCnt",
|
2096
|
+
"name": "Value",
|
2097
|
+
"output_required": true,
|
2098
|
+
"type": "object",
|
2099
|
+
"value_allowed_null": true
|
2100
|
+
}
|
2101
|
+
],
|
2102
|
+
"usage": "out"
|
2103
|
+
},
|
1958
2104
|
"OutputImportNameListDataFront": {
|
1959
2105
|
"document": "添加黑白名单数据出参",
|
1960
2106
|
"members": [
|
@@ -48,6 +48,14 @@
|
|
48
48
|
"title": "查询黑白名单详情"
|
49
49
|
}
|
50
50
|
],
|
51
|
+
"DescribeUserUsageCnt": [
|
52
|
+
{
|
53
|
+
"document": "",
|
54
|
+
"input": "POST / HTTP/1.1\nHost: rce.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserUsageCnt\n<公共请求参数>\n\n{}",
|
55
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"OK\",\n \"Value\": {\n \"PayMode\": 0,\n \"AfterPayModeThisMonthUsedCnt\": 0,\n \"CreateTime\": \"2024-11-01 00:00:00\",\n \"ExpireTime\": \"2025-11-01 00:00:00\",\n \"AfterPayModeLastMonthUsedCnt\": 0,\n \"BeforePayModeTotalUsedCnt\": 0,\n \"BeforePayModeRemainUsedCnt\": 0\n }\n },\n \"RequestId\": \"6ef60bec*****270359fb54a7\"\n }\n}",
|
56
|
+
"title": "demo数据"
|
57
|
+
}
|
58
|
+
],
|
51
59
|
"ImportNameListData": [
|
52
60
|
{
|
53
61
|
"document": "",
|