tccli 3.0.1267.1__py2.py3-none-any.whl → 3.0.1269.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +5 -1
- tccli/services/aiart/aiart_client.py +106 -0
- tccli/services/aiart/v20221229/api.json +275 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/antiddos/v20200309/api.json +194 -136
- tccli/services/antiddos/v20200309/examples.json +15 -15
- tccli/services/bi/v20220105/api.json +1 -1
- tccli/services/billing/billing_client.py +4 -163
- tccli/services/billing/v20180709/api.json +0 -489
- tccli/services/billing/v20180709/examples.json +0 -24
- tccli/services/cat/v20180409/api.json +3 -1
- tccli/services/cbs/v20170312/api.json +27 -0
- tccli/services/ccc/v20200210/api.json +11 -11
- tccli/services/ccc/v20200210/examples.json +2 -2
- tccli/services/cdb/v20170320/api.json +48 -18
- tccli/services/cdn/v20180606/api.json +3 -0
- tccli/services/cfw/v20190904/api.json +30 -30
- tccli/services/ckafka/v20190819/api.json +10 -0
- tccli/services/cloudaudit/v20190319/api.json +3 -3
- tccli/services/cloudaudit/v20190319/examples.json +1 -1
- tccli/services/csip/v20221121/api.json +38 -38
- tccli/services/cwp/cwp_client.py +4 -57
- tccli/services/cwp/v20180228/api.json +11 -185
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +1 -1
- tccli/services/cynosdb/v20190107/examples.json +1 -1
- tccli/services/dcdb/dcdb_client.py +122 -16
- tccli/services/dcdb/v20180411/api.json +222 -0
- tccli/services/dcdb/v20180411/examples.json +16 -0
- tccli/services/dlc/v20210125/api.json +145 -26
- tccli/services/dlc/v20210125/examples.json +18 -18
- tccli/services/domain/v20180808/api.json +8 -8
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/es/v20180416/api.json +9 -9
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +5 -5
- tccli/services/faceid/v20180301/examples.json +6 -0
- tccli/services/gme/v20180711/api.json +118 -115
- tccli/services/gme/v20180711/examples.json +6 -6
- tccli/services/hunyuan/v20230901/api.json +9 -0
- tccli/services/iotexplorer/v20190423/api.json +4 -4
- tccli/services/iotexplorer/v20190423/examples.json +5 -5
- tccli/services/keewidb/v20220308/api.json +2 -2
- tccli/services/lcic/lcic_client.py +61 -8
- tccli/services/lcic/v20220817/api.json +230 -177
- tccli/services/lcic/v20220817/examples.json +10 -2
- tccli/services/lighthouse/v20200324/api.json +80 -71
- tccli/services/live/v20180801/api.json +60 -4
- tccli/services/lke/v20231130/api.json +31 -0
- tccli/services/lkeap/v20240522/api.json +55 -9
- tccli/services/lkeap/v20240522/examples.json +1 -1
- tccli/services/mna/mna_client.py +106 -0
- tccli/services/mna/v20210119/api.json +246 -0
- tccli/services/mna/v20210119/examples.json +16 -0
- tccli/services/monitor/monitor_client.py +62 -57
- tccli/services/monitor/v20230616/api.json +266 -0
- tccli/services/monitor/v20230616/examples.json +19 -0
- tccli/services/mqtt/mqtt_client.py +489 -12
- tccli/services/mqtt/v20240516/api.json +864 -3
- tccli/services/mqtt/v20240516/examples.json +72 -0
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +287 -23
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/postgres/postgres_client.py +334 -16
- tccli/services/postgres/v20170312/api.json +718 -35
- tccli/services/postgres/v20170312/examples.json +72 -0
- tccli/services/rum/v20210622/api.json +1 -1
- tccli/services/smh/v20210712/api.json +50 -30
- tccli/services/ssl/v20191205/api.json +496 -493
- tccli/services/ssl/v20191205/examples.json +144 -24
- tccli/services/taf/taf_client.py +0 -159
- tccli/services/taf/v20200210/api.json +0 -665
- tccli/services/taf/v20200210/examples.json +0 -24
- tccli/services/tdmq/v20200217/api.json +97 -0
- tccli/services/teo/v20220901/api.json +5 -5
- tccli/services/thpc/v20230321/api.json +19 -0
- tccli/services/tione/v20211111/api.json +14 -3
- tccli/services/trabbit/__init__.py +4 -0
- tccli/services/trabbit/trabbit_client.py +1691 -0
- tccli/services/trabbit/v20230418/api.json +4773 -0
- tccli/services/trabbit/v20230418/examples.json +237 -0
- tccli/services/trocket/v20230308/api.json +130 -11
- tccli/services/trtc/v20190722/api.json +8 -8
- tccli/services/trtc/v20190722/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +0 -450
- tccli/services/vclm/v20240523/examples.json +0 -48
- tccli/services/vclm/vclm_client.py +0 -159
- tccli/services/vpc/v20170312/api.json +46 -39
- tccli/services/vpc/v20170312/examples.json +3 -3
- tccli/services/wedata/v20210820/api.json +240 -42
- tccli/services/wedata/v20210820/examples.json +17 -3
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/RECORD +101 -95
- {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1267.1.dist-info → tccli-3.0.1269.1.dist-info}/license_files/LICENSE +0 -0
@@ -43,7 +43,7 @@
|
|
43
43
|
"CreateCCReqLimitPolicy": [
|
44
44
|
{
|
45
45
|
"document": "",
|
46
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCCReqLimitPolicy\n<公共请求参数>\n\n{\n \"Domain\": \"www.baidu.com\",\n \"InstanceId\": \"bgpip-000005v7\",\n \"Ip\": \"1.1.1.1\",\n \"Policy\": {\n \"Action\": \"alg\",\n \"ExecuteDuration\": 120,\n \"Mode\": \"equal\",\n \"Period\": 10,\n \"RequestNum\": 500,\n \"Uri\": \"
|
46
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCCReqLimitPolicy\n<公共请求参数>\n\n{\n \"Domain\": \"www.baidu.com\",\n \"InstanceId\": \"bgpip-000005v7\",\n \"Ip\": \"1.1.1.1\",\n \"Policy\": {\n \"Action\": \"alg\",\n \"ExecuteDuration\": 120,\n \"Mode\": \"equal\",\n \"Period\": 10,\n \"RequestNum\": 500,\n \"Uri\": \"www.abc.com\"\n },\n \"Protocol\": \"http\"\n}",
|
47
47
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5063ab0a-a8a7-41e8-ace2-263b2c1c8794\"\n }\n}",
|
48
48
|
"title": "新增CC频率限制策略"
|
49
49
|
}
|
@@ -59,7 +59,7 @@
|
|
59
59
|
"CreateCcGeoIPBlockConfig": [
|
60
60
|
{
|
61
61
|
"document": "",
|
62
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCcGeoIPBlockConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"bgpip-0000011x\",\n \"IP\": \"1.1.1.1\",\n \"Domain\": \"www.test.com\",\n \"Protocol\": \"http\",\n \"CcGeoIPBlockConfig\": {\n \"Action\": \"drop\",\n \"Id\": \"
|
62
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCcGeoIPBlockConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"bgpip-0000011x\",\n \"IP\": \"1.1.1.1\",\n \"Domain\": \"www.test.com\",\n \"Protocol\": \"http\",\n \"CcGeoIPBlockConfig\": {\n \"Action\": \"drop\",\n \"Id\": \"ccGeoip-00000111\",\n \"RegionType\": \"oversea\",\n \"AreaList\": [\n 100025\n ]\n }\n}",
|
63
63
|
"output": "{\n \"Response\": {\n \"RequestId\": \"54a41bf4-dca0-438b-a1cd-eb1f99e9a6b3\"\n }\n}",
|
64
64
|
"title": "添加CC防护的区域封禁配置"
|
65
65
|
}
|
@@ -307,8 +307,8 @@
|
|
307
307
|
"DescribeBasicDeviceStatus": [
|
308
308
|
{
|
309
309
|
"document": "获取基础防护状态",
|
310
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBasicDeviceStatus\n<公共请求参数>\n\n{\n \"IpList\": [\n \"
|
311
|
-
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"Key\": \"
|
310
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBasicDeviceStatus\n<公共请求参数>\n\n{\n \"IpList\": [\n \"1.1.1.1\"\n ],\n \"IdList\": [\n \"222\"\n ],\n \"FilterRegion\": 1\n}",
|
311
|
+
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"Key\": \"1.1.1.1\",\n \"Value\": \"2\"\n }\n ],\n \"CLBData\": [\n {\n \"Key\": \"1.1.1.1\",\n \"Value\": \"3\"\n }\n ],\n \"CnameWafData\": [\n {\n \"Key\": \"1.1.1.1\",\n \"Value\": \"1\"\n }\n ],\n \"RequestId\": \"07a620b1\"\n }\n}",
|
312
312
|
"title": "获取基础防护状态"
|
313
313
|
},
|
314
314
|
{
|
@@ -433,7 +433,7 @@
|
|
433
433
|
"DescribeDDoSConnectLimitList": [
|
434
434
|
{
|
435
435
|
"document": "",
|
436
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDDoSConnectLimitList\n<公共请求参数>\n\n{\n \"Limit\":
|
436
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDDoSConnectLimitList\n<公共请求参数>\n\n{\n \"Limit\": 10,\n \"Offset\": 0\n}",
|
437
437
|
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"ConfigList\": [\n {\n \"InstanceDetailList\": [\n {\n \"InstanceId\": \"bgpip-111111q1\",\n \"EipList\": [\n \"1.1.1.1\"\n ]\n }\n ],\n \"ConnectLimitConfig\": {\n \"SynLimit\": 1,\n \"BadConnThreshold\": 1,\n \"SdConnLimit\": 1,\n \"SdNewLimit\": 1,\n \"SynRate\": 1,\n \"ConnTimeout\": 1,\n \"DstConnLimit\": 1,\n \"DstNewLimit\": 1,\n \"NullConnEnable\": 1\n }\n }\n ],\n \"RequestId\": \"c9520936-381c-4c04-b535-c8f4df1f8059\"\n }\n}",
|
438
438
|
"title": "获取DDoS连接抑制配置列表"
|
439
439
|
}
|
@@ -458,14 +458,14 @@
|
|
458
458
|
{
|
459
459
|
"document": "",
|
460
460
|
"input": "https://antiddos.tencentcloudapi.com/?Action=DescribeIpBlockList\n&<公共请求参数>",
|
461
|
-
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"Status\": \"
|
461
|
+
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"Status\": \"1\",\n \"Ip\": \"1.1.1.1\",\n \"UnBlockTime\": \"2020-09-22 00:00:00\",\n \"ActionType\": \"type\",\n \"BlockTime\": \"2020-09-22 00:00:00\",\n \"ProtectFlag\": 1\n }\n ],\n \"RequestId\": \"reqid\"\n }\n}",
|
462
462
|
"title": "获取IP封堵列表"
|
463
463
|
}
|
464
464
|
],
|
465
465
|
"DescribeL7RulesBySSLCertId": [
|
466
466
|
{
|
467
467
|
"document": "",
|
468
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeL7RulesBySSLCertId\n<公共请求参数>\n\n{\n \"Status\": \"bindable\",\n \"CertIds\": [\n \"
|
468
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeL7RulesBySSLCertId\n<公共请求参数>\n\n{\n \"Status\": \"bindable\",\n \"CertIds\": [\n \"id-xxxx\"\n ]\n}",
|
469
469
|
"output": "{\n \"Response\": {\n \"CertSet\": [\n {\n \"CertId\": \"kneSCNrZ\",\n \"L7Rules\": [\n {\n \"InsId\": \"bgpip-000001eo\",\n \"AppId\": \"251008915\",\n \"Protocol\": \"https\",\n \"Domain\": \"www.xxx.com\",\n \"VirtualPort\": \"443\",\n \"SSLId\": \"\",\n \"Status\": 8\n }\n ]\n }\n ],\n \"RequestId\": \"d87b0215-5dc6-4b99-ad82-704f0ef1bfb7\"\n }\n}",
|
470
470
|
"title": "查询可绑定证书的域名规则"
|
471
471
|
}
|
@@ -489,7 +489,7 @@
|
|
489
489
|
"DescribeListBlackWhiteIpList": [
|
490
490
|
{
|
491
491
|
"document": "",
|
492
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeListBlackWhiteIpList\n<公共请求参数>\n\n{\n \"FilterInstanceId\": \"bgpip-0000011x\",\n \"FilterIp\": \"1.1.1.1\",\n \"Limit\":
|
492
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeListBlackWhiteIpList\n<公共请求参数>\n\n{\n \"FilterInstanceId\": \"bgpip-0000011x\",\n \"FilterIp\": \"1.1.1.1\",\n \"Limit\": 25,\n \"Offset\": 0\n}",
|
493
493
|
"output": "{\n \"Response\": {\n \"IpList\": [\n {\n \"InstanceDetailList\": [\n {\n \"InstanceId\": \"bgpip-0000011x\",\n \"EipList\": [\n \"1.2.2.19\"\n ]\n }\n ],\n \"Ip\": \"1.1.4.1\",\n \"Type\": \"white\",\n \"Mask\": 1,\n \"ModifyTime\": \"2022-11-29 18:34:13\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"j5RV4a5576e8cf46f24e3bae026ebb391a\"\n }\n}",
|
494
494
|
"title": "获取DDoS防护的IP黑白名单列表"
|
495
495
|
}
|
@@ -537,8 +537,8 @@
|
|
537
537
|
"DescribeListPacketFilterConfig": [
|
538
538
|
{
|
539
539
|
"document": "",
|
540
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeListPacketFilterConfig\n<公共请求参数>\n\n{\n \"FilterInstanceId\": \"bgpip-0000011x\",\n \"FilterIp\": \"1.1.1.1\",\n \"Limit\":
|
541
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"ConfigList\": [\n {\n \"InstanceDetailList\": [\n {\n \"InstanceId\": \"bgpip-0000011x\",\n \"EipList\": [\n \"1.1.1.1\"\n ]\n }\n ],\n \"PacketFilterConfig\": {\n \"MatchType2\": \"sunday\",\n \"MatchBegin2\": \"begin-l5\",\n \"Str2\": \"\",\n \"SportEnd\": 0,\n \"IsNot\": 0,\n \"PktlenMax\": 1500,\n \"MatchLogic\": \"none\",\n \"MatchBegin\": \"begin-l5\",\n \"Offset\": 0,\n \"SportStart\": 0,\n \"DportStart\": 0,\n \"PktlenMin\": 0,\n \"IsNot2\": 0,\n \"Depth\": 20,\n \"Str\": \"\",\n \"Action\": \"drop\",\n \"Protocol\": \"tcp\",\n \"MatchType\": \"sunday\",\n \"DportEnd\": 0,\n \"Offset2\": 5,\n \"Depth2\": 20,\n \"Id\": \"\"\n },\n \"ModifyTime\": \"2022-01-29 17:47:48\"\n }\n ],\n \"RequestId\": \"3eb91f01-96dd-4ad3-9e16-edde46b8cf40\"\n }\n}",
|
540
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeListPacketFilterConfig\n<公共请求参数>\n\n{\n \"FilterInstanceId\": \"bgpip-0000011x\",\n \"FilterIp\": \"1.1.1.1\",\n \"Limit\": 25,\n \"Offset\": 0\n}",
|
541
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"ConfigList\": [\n {\n \"InstanceDetailList\": [\n {\n \"InstanceId\": \"bgpip-0000011x\",\n \"EipList\": [\n \"1.1.1.1\"\n ]\n }\n ],\n \"PacketFilterConfig\": {\n \"MatchType2\": \"sunday\",\n \"MatchBegin2\": \"begin-l5\",\n \"Str2\": \"\",\n \"SportEnd\": 0,\n \"IsNot\": 0,\n \"PktlenMax\": 1500,\n \"MatchLogic\": \"none\",\n \"MatchBegin\": \"begin-l5\",\n \"Offset\": 0,\n \"SportStart\": 0,\n \"DportStart\": 0,\n \"PktlenMin\": 0,\n \"IsNot2\": 0,\n \"Depth\": 20,\n \"Str\": \"\",\n \"Action\": \"drop\",\n \"Protocol\": \"tcp\",\n \"MatchType\": \"sunday\",\n \"PktLenGT\": 50,\n \"DportEnd\": 0,\n \"Offset2\": 5,\n \"Depth2\": 20,\n \"Id\": \"\"\n },\n \"ModifyTime\": \"2022-01-29 17:47:48\"\n }\n ],\n \"RequestId\": \"3eb91f01-96dd-4ad3-9e16-edde46b8cf40\"\n }\n}",
|
542
542
|
"title": "获取DDoS防护的特征过滤规则列表"
|
543
543
|
}
|
544
544
|
],
|
@@ -577,8 +577,8 @@
|
|
577
577
|
"DescribeListWaterPrintConfig": [
|
578
578
|
{
|
579
579
|
"document": "",
|
580
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeListWaterPrintConfig\n<公共请求参数>\n\n{\n \"FilterInstanceId\": \"bgpip-0000011x\",\n \"FilterIp\": \"1.1.1.1\",\n \"Limit\":
|
581
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"ConfigList\": [\n {\n \"WaterPrintConfig\": {\n \"Keys\": [\n {\n \"KeyVersion\": \"fbf1\",\n \"KeyContent\": \"82e352b956e8d512-fbf1-82e352b956e8d512eeb95315d5772e86fac99256\",\n \"KeyId\": \"000005hj\",\n \"KeyOpenStatus\": 0,\n \"CreateTime\": \"2020-09-22 00:00:00\"\n }\n ],\n \"Verify\": \"checkall\",\n \"Listeners\": [\n {\n \"ForwardProtocol\": \"TCP\",\n \"FrontendPort\": 80,\n \"FrontendPortEnd\": 0\n }\n ],\n \"OpenStatus\": 0,\n \"Offset\": 30\n },\n \"InstanceDetailList\": [\n {\n \"InstanceId\": \"bgpip-0000011x\",\n \"EipList\": [\n \"1.1.1.1\"\n ]\n }\n ]\n }\n ],\n \"RequestId\": \"c5ff0d5d-d2bd-4b34-b081-4acd4cf7be1f\"\n }\n}",
|
580
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeListWaterPrintConfig\n<公共请求参数>\n\n{\n \"FilterInstanceId\": \"bgpip-0000011x\",\n \"FilterIp\": \"1.1.1.1\",\n \"Limit\": 25,\n \"Offset\": 0\n}",
|
581
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"ConfigList\": [\n {\n \"WaterPrintConfig\": {\n \"Keys\": [\n {\n \"KeyVersion\": \"fbf1\",\n \"KeyContent\": \"82e352b956e8d512-fbf1-82e352b956e8d512eeb95315d5772e86fac99256\",\n \"KeyId\": \"000005hj\",\n \"KeyOpenStatus\": 0,\n \"CreateTime\": \"2020-09-22 00:00:00\"\n }\n ],\n \"Verify\": \"checkall\",\n \"Listeners\": [\n {\n \"ForwardProtocol\": \"TCP\",\n \"FrontendPort\": 80,\n \"FrontendPortEnd\": 0\n }\n ],\n \"CloudSdkProxy\": 1,\n \"OpenStatus\": 0,\n \"Offset\": 30\n },\n \"InstanceDetailList\": [\n {\n \"InstanceId\": \"bgpip-0000011x\",\n \"EipList\": [\n \"1.1.1.1\"\n ]\n }\n ]\n }\n ],\n \"RequestId\": \"c5ff0d5d-d2bd-4b34-b081-4acd4cf7be1f\"\n }\n}",
|
582
582
|
"title": "获取DDoS防护的水印防护配置列表"
|
583
583
|
}
|
584
584
|
],
|
@@ -601,7 +601,7 @@
|
|
601
601
|
"DescribeOverviewAttackTrend": [
|
602
602
|
{
|
603
603
|
"document": "",
|
604
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOverviewAttackTrend\n<公共请求参数>\n\n{\n \"EndTime\": \"2020-02-03 18:03:23\",\n \"Type\": \"ddos\",\n \"Dimension\": \"attackcount\",\n \"StartTime\": \"2020-02-01 12:04:12\",\n \"Period\":
|
604
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOverviewAttackTrend\n<公共请求参数>\n\n{\n \"EndTime\": \"2020-02-03 18:03:23\",\n \"Type\": \"ddos\",\n \"Dimension\": \"attackcount\",\n \"StartTime\": \"2020-02-01 12:04:12\",\n \"Period\": 86400\n}",
|
605
605
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"Type\": \"ddos\",\n \"StartTime\": \"2020-02-01 12:04:12\",\n \"EndTime\": \"2020-02-03 18:03:23\",\n \"Period\": 86400,\n \"Data\": [\n 0,\n 0\n ],\n \"Count\": 2\n }\n}",
|
606
606
|
"title": "拉取防护概览攻击趋势"
|
607
607
|
}
|
@@ -609,7 +609,7 @@
|
|
609
609
|
"DescribeOverviewCCTrend": [
|
610
610
|
{
|
611
611
|
"document": "当Business可以不传,统计所有Business为 基础防护 + 高防ip + 高防包 的和",
|
612
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOverviewCCTrend\n<公共请求参数>\n\n{\n \"Period\":
|
612
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOverviewCCTrend\n<公共请求参数>\n\n{\n \"Period\": 3600,\n \"StartTime\": \"2020-09-22 00:00:00\",\n \"EndTime\": \"2020-09-23 00:00:00\",\n \"MetricName\": \"dropqps\"\n}",
|
613
613
|
"output": "{\n \"Response\": {\n \"Count\": 1,\n \"Data\": [\n 1234\n ],\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
614
614
|
"title": "获取防护概览趋势图"
|
615
615
|
}
|
@@ -729,7 +729,7 @@
|
|
729
729
|
"ModifyDDoSThreshold": [
|
730
730
|
{
|
731
731
|
"document": "",
|
732
|
-
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDDoSThreshold\n<公共请求参数>\n\n{\n \"Threshold\":
|
732
|
+
"input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDDoSThreshold\n<公共请求参数>\n\n{\n \"Threshold\": 1000,\n \"Id\": \"bgpip-000000xe\",\n \"Business\": \"bgpip\"\n}",
|
733
733
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"Success\": {\n \"Code\": \"Success\",\n \"Message\": \"Success\"\n }\n }\n}",
|
734
734
|
"title": "修改DDoS清洗阈值"
|
735
735
|
}
|
@@ -433,58 +433,6 @@ def doDescribeAllocateConditions(args, parsed_globals):
|
|
433
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
434
434
|
|
435
435
|
|
436
|
-
def doDescribeSavingPlanOverview(args, parsed_globals):
|
437
|
-
g_param = parse_global_arg(parsed_globals)
|
438
|
-
|
439
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
440
|
-
cred = credential.CVMRoleCredential()
|
441
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
442
|
-
cred = credential.STSAssumeRoleCredential(
|
443
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
444
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
445
|
-
)
|
446
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
447
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
448
|
-
else:
|
449
|
-
cred = credential.Credential(
|
450
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
451
|
-
)
|
452
|
-
http_profile = HttpProfile(
|
453
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
454
|
-
reqMethod="POST",
|
455
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
456
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
457
|
-
)
|
458
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
459
|
-
if g_param[OptionsDefine.Language]:
|
460
|
-
profile.language = g_param[OptionsDefine.Language]
|
461
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
462
|
-
client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
|
463
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
464
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
465
|
-
model = models.DescribeSavingPlanOverviewRequest()
|
466
|
-
model.from_json_string(json.dumps(args))
|
467
|
-
start_time = time.time()
|
468
|
-
while True:
|
469
|
-
rsp = client.DescribeSavingPlanOverview(model)
|
470
|
-
result = rsp.to_json_string()
|
471
|
-
try:
|
472
|
-
json_obj = json.loads(result)
|
473
|
-
except TypeError as e:
|
474
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
475
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
476
|
-
break
|
477
|
-
cur_time = time.time()
|
478
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
479
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
480
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
481
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
482
|
-
else:
|
483
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
484
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
485
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
|
-
|
487
|
-
|
488
436
|
def doDescribeAllocationOverview(args, parsed_globals):
|
489
437
|
g_param = parse_global_arg(parsed_globals)
|
490
438
|
|
@@ -1369,58 +1317,6 @@ def doDescribeDosageDetailByDate(args, parsed_globals):
|
|
1369
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
1318
|
|
1371
1319
|
|
1372
|
-
def doDescribeSavingPlanUsage(args, parsed_globals):
|
1373
|
-
g_param = parse_global_arg(parsed_globals)
|
1374
|
-
|
1375
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1376
|
-
cred = credential.CVMRoleCredential()
|
1377
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1378
|
-
cred = credential.STSAssumeRoleCredential(
|
1379
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1380
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1381
|
-
)
|
1382
|
-
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):
|
1383
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1384
|
-
else:
|
1385
|
-
cred = credential.Credential(
|
1386
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1387
|
-
)
|
1388
|
-
http_profile = HttpProfile(
|
1389
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1390
|
-
reqMethod="POST",
|
1391
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
1392
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1393
|
-
)
|
1394
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1395
|
-
if g_param[OptionsDefine.Language]:
|
1396
|
-
profile.language = g_param[OptionsDefine.Language]
|
1397
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1398
|
-
client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1400
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
-
model = models.DescribeSavingPlanUsageRequest()
|
1402
|
-
model.from_json_string(json.dumps(args))
|
1403
|
-
start_time = time.time()
|
1404
|
-
while True:
|
1405
|
-
rsp = client.DescribeSavingPlanUsage(model)
|
1406
|
-
result = rsp.to_json_string()
|
1407
|
-
try:
|
1408
|
-
json_obj = json.loads(result)
|
1409
|
-
except TypeError as e:
|
1410
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1411
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1412
|
-
break
|
1413
|
-
cur_time = time.time()
|
1414
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1415
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1416
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1417
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1418
|
-
else:
|
1419
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1420
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1421
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
|
-
|
1423
|
-
|
1424
1320
|
def doDescribeBillAdjustInfo(args, parsed_globals):
|
1425
1321
|
g_param = parse_global_arg(parsed_globals)
|
1426
1322
|
|
@@ -1993,7 +1889,7 @@ def doDescribeVoucherUsageDetails(args, parsed_globals):
|
|
1993
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
1890
|
|
1995
1891
|
|
1996
|
-
def
|
1892
|
+
def doDescribeCostSummaryByProduct(args, parsed_globals):
|
1997
1893
|
g_param = parse_global_arg(parsed_globals)
|
1998
1894
|
|
1999
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2022,11 +1918,11 @@ def doCreateSavingPlanOrder(args, parsed_globals):
|
|
2022
1918
|
client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
|
2023
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
2024
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2025
|
-
model = models.
|
1921
|
+
model = models.DescribeCostSummaryByProductRequest()
|
2026
1922
|
model.from_json_string(json.dumps(args))
|
2027
1923
|
start_time = time.time()
|
2028
1924
|
while True:
|
2029
|
-
rsp = client.
|
1925
|
+
rsp = client.DescribeCostSummaryByProduct(model)
|
2030
1926
|
result = rsp.to_json_string()
|
2031
1927
|
try:
|
2032
1928
|
json_obj = json.loads(result)
|
@@ -2149,58 +2045,6 @@ def doDescribeSavingPlanCoverage(args, parsed_globals):
|
|
2149
2045
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2150
2046
|
|
2151
2047
|
|
2152
|
-
def doDescribeCostSummaryByProduct(args, parsed_globals):
|
2153
|
-
g_param = parse_global_arg(parsed_globals)
|
2154
|
-
|
2155
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2156
|
-
cred = credential.CVMRoleCredential()
|
2157
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2158
|
-
cred = credential.STSAssumeRoleCredential(
|
2159
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2160
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2161
|
-
)
|
2162
|
-
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):
|
2163
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2164
|
-
else:
|
2165
|
-
cred = credential.Credential(
|
2166
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2167
|
-
)
|
2168
|
-
http_profile = HttpProfile(
|
2169
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2170
|
-
reqMethod="POST",
|
2171
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2172
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2173
|
-
)
|
2174
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2175
|
-
if g_param[OptionsDefine.Language]:
|
2176
|
-
profile.language = g_param[OptionsDefine.Language]
|
2177
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2178
|
-
client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
|
2179
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2180
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2181
|
-
model = models.DescribeCostSummaryByProductRequest()
|
2182
|
-
model.from_json_string(json.dumps(args))
|
2183
|
-
start_time = time.time()
|
2184
|
-
while True:
|
2185
|
-
rsp = client.DescribeCostSummaryByProduct(model)
|
2186
|
-
result = rsp.to_json_string()
|
2187
|
-
try:
|
2188
|
-
json_obj = json.loads(result)
|
2189
|
-
except TypeError as e:
|
2190
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2191
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2192
|
-
break
|
2193
|
-
cur_time = time.time()
|
2194
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2195
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2196
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2197
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2198
|
-
else:
|
2199
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2200
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2201
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
|
-
|
2203
|
-
|
2204
2048
|
def doDescribeAllocationSummaryByItem(args, parsed_globals):
|
2205
2049
|
g_param = parse_global_arg(parsed_globals)
|
2206
2050
|
|
@@ -2428,7 +2272,6 @@ ACTION_MAP = {
|
|
2428
2272
|
"DescribeBillResourceSummary": doDescribeBillResourceSummary,
|
2429
2273
|
"DescribeAllocationSummaryByBusiness": doDescribeAllocationSummaryByBusiness,
|
2430
2274
|
"DescribeAllocateConditions": doDescribeAllocateConditions,
|
2431
|
-
"DescribeSavingPlanOverview": doDescribeSavingPlanOverview,
|
2432
2275
|
"DescribeAllocationOverview": doDescribeAllocationOverview,
|
2433
2276
|
"DescribeDosageDetailList": doDescribeDosageDetailList,
|
2434
2277
|
"CreateAllocationTag": doCreateAllocationTag,
|
@@ -2446,7 +2289,6 @@ ACTION_MAP = {
|
|
2446
2289
|
"DescribeBillDetailForOrganization": doDescribeBillDetailForOrganization,
|
2447
2290
|
"DescribeAccountBalance": doDescribeAccountBalance,
|
2448
2291
|
"DescribeDosageDetailByDate": doDescribeDosageDetailByDate,
|
2449
|
-
"DescribeSavingPlanUsage": doDescribeSavingPlanUsage,
|
2450
2292
|
"DescribeBillAdjustInfo": doDescribeBillAdjustInfo,
|
2451
2293
|
"DescribeAllocationBillDetail": doDescribeAllocationBillDetail,
|
2452
2294
|
"DescribeBillSummaryByRegion": doDescribeBillSummaryByRegion,
|
@@ -2458,10 +2300,9 @@ ACTION_MAP = {
|
|
2458
2300
|
"DescribeSavingPlanResourceInfo": doDescribeSavingPlanResourceInfo,
|
2459
2301
|
"DescribeTagList": doDescribeTagList,
|
2460
2302
|
"DescribeVoucherUsageDetails": doDescribeVoucherUsageDetails,
|
2461
|
-
"
|
2303
|
+
"DescribeCostSummaryByProduct": doDescribeCostSummaryByProduct,
|
2462
2304
|
"DeleteAllocationTag": doDeleteAllocationTag,
|
2463
2305
|
"DescribeSavingPlanCoverage": doDescribeSavingPlanCoverage,
|
2464
|
-
"DescribeCostSummaryByProduct": doDescribeCostSummaryByProduct,
|
2465
2306
|
"DescribeAllocationSummaryByItem": doDescribeAllocationSummaryByItem,
|
2466
2307
|
"DescribeBillSummaryByProduct": doDescribeBillSummaryByProduct,
|
2467
2308
|
"DescribeBillSummaryByTag": doDescribeBillSummaryByTag,
|