tccli 3.0.948.1__py2.py3-none-any.whl → 3.0.949.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/vpc/v20170312/CreateNetworkAclEntries.md +30 -0
  3. tccli/examples/vpc/v20170312/DeleteNetworkAclEntries.md +22 -0
  4. tccli/examples/waf/v20180125/AddAntiFakeUrl.md +46 -0
  5. tccli/examples/waf/v20180125/AddAntiInfoLeakRules.md +26 -0
  6. tccli/examples/waf/v20180125/DeleteAntiFakeUrl.md +21 -0
  7. tccli/examples/waf/v20180125/DeleteAntiInfoLeakRule.md +21 -0
  8. tccli/examples/waf/v20180125/DeleteCCRule.md +23 -0
  9. tccli/examples/waf/v20180125/DescribeAntiFakeRules.md +28 -0
  10. tccli/examples/waf/v20180125/DescribeAntiFakeUrl.md +57 -0
  11. tccli/examples/waf/v20180125/DescribeAntiInfoLeakRules.md +40 -0
  12. tccli/examples/waf/v20180125/DescribeAntiInfoLeakageRules.md +38 -0
  13. tccli/examples/waf/v20180125/DescribeBatchIpAccessControl.md +42 -0
  14. tccli/examples/waf/v20180125/DescribeCCRule.md +71 -0
  15. tccli/examples/waf/v20180125/DescribeCCRuleList.md +36 -0
  16. tccli/examples/waf/v20180125/DescribeSession.md +51 -0
  17. tccli/examples/waf/v20180125/ModifyAntiFakeUrl.md +24 -0
  18. tccli/examples/waf/v20180125/ModifyAntiFakeUrlStatus.md +22 -0
  19. tccli/examples/waf/v20180125/ModifyAntiInfoLeakRuleStatus.md +22 -0
  20. tccli/examples/waf/v20180125/ModifyAntiInfoLeakRules.md +26 -0
  21. tccli/examples/waf/v20180125/ModifyCustomWhiteRuleStatus.md +26 -0
  22. tccli/examples/waf/v20180125/UpsertCCRule.md +95 -0
  23. tccli/examples/waf/v20180125/UpsertSession.md +25 -0
  24. tccli/services/vpc/v20170312/api.json +86 -0
  25. tccli/services/vpc/v20170312/examples.json +16 -0
  26. tccli/services/vpc/vpc_client.py +195 -89
  27. tccli/services/waf/v20180125/api.json +2671 -582
  28. tccli/services/waf/v20180125/examples.json +202 -0
  29. tccli/services/waf/waf_client.py +1365 -305
  30. {tccli-3.0.948.1.dist-info → tccli-3.0.949.1.dist-info}/METADATA +2 -2
  31. {tccli-3.0.948.1.dist-info → tccli-3.0.949.1.dist-info}/RECORD +34 -12
  32. {tccli-3.0.948.1.dist-info → tccli-3.0.949.1.dist-info}/WHEEL +0 -0
  33. {tccli-3.0.948.1.dist-info → tccli-3.0.949.1.dist-info}/entry_points.txt +0 -0
  34. {tccli-3.0.948.1.dist-info → tccli-3.0.949.1.dist-info}/license_files/LICENSE +0 -0
@@ -0,0 +1,95 @@
1
+ **Example 1: Waf CC V2 Upsert接口**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf UpsertCCRule --cli-unfold-argument \
9
+ --Status 0 \
10
+ --Advance 0 \
11
+ --Domain test.com \
12
+ --Name test2 \
13
+ --Url /test \
14
+ --Priority 50 \
15
+ --Interval 60 \
16
+ --MatchFunc 0 \
17
+ --ValidTime 600
18
+ \
19
+ --Limit 60 \
20
+ --ActionType 22 \
21
+ --OptionsArr [{"key":"get","args":["a=12"]}]
22
+ ```
23
+
24
+ Output:
25
+ ```
26
+ {
27
+ "Response": {
28
+ "Data": null,
29
+ "RequestId": "5029e2b0-493c-4dcc-9e4e-d53ab98ede99"
30
+ }
31
+ }
32
+ ```
33
+
34
+ **Example 2: test**
35
+
36
+
37
+
38
+ Input:
39
+
40
+ ```
41
+ tccli waf UpsertCCRule --cli-unfold-argument \
42
+ --Status 0 \
43
+ --MatchFunc 0 \
44
+ --Domain hzh.qcloud.com \
45
+ --Name ddp \
46
+ --Advance 0 \
47
+ --ValidTime 61 \
48
+ --Interval 10 \
49
+ --Priority 1 \
50
+ --Url /test \
51
+ --Limit 10 \
52
+ --ActionType 20
53
+ ```
54
+
55
+ Output:
56
+ ```
57
+ {
58
+ "Response": {
59
+ "RequestId": "2ca5c6bb-05b7-4183-bbf2-3c7059544317",
60
+ "Data": ""
61
+ }
62
+ }
63
+ ```
64
+
65
+ **Example 3: test1**
66
+
67
+
68
+
69
+ Input:
70
+
71
+ ```
72
+ tccli waf UpsertCCRule --cli-unfold-argument \
73
+ --Status 0 \
74
+ --MatchFunc 0 \
75
+ --Domain hzh.qcloud.com \
76
+ --Name ddp \
77
+ --Advance 0 \
78
+ --ValidTime 61 \
79
+ --Interval 10 \
80
+ --Priority 1 \
81
+ --Url /test \
82
+ --Limit 10 \
83
+ --ActionType 20
84
+ ```
85
+
86
+ Output:
87
+ ```
88
+ {
89
+ "Response": {
90
+ "RequestId": "2ca5c6bb-05b7-4183-bbf2-3c7059544317",
91
+ "Data": ""
92
+ }
93
+ }
94
+ ```
95
+
@@ -0,0 +1,25 @@
1
+ **Example 1: Waf 会话定义 Upsert接口**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf UpsertSession --cli-unfold-argument \
9
+ --Domain test.com \
10
+ --Category match \
11
+ --KeyOrStartMat hashId \
12
+ --EndMat 12 \
13
+ --Source get \
14
+ --StartOffset -1 \
15
+ --EndOffset -1 \
16
+ --Edition clb-waf
17
+ ```
18
+
19
+ Output:
20
+ ```
21
+ {
22
+ "Data": null
23
+ }
24
+ ```
25
+
@@ -336,6 +336,13 @@
336
336
  "output": "CreateNetworkAclResponse",
337
337
  "status": "online"
338
338
  },
339
+ "CreateNetworkAclEntries": {
340
+ "document": "本接口(CreateNetworkAclEntries)用于增量添加网络ACL三元组的入站规则和出站规则。",
341
+ "input": "CreateNetworkAclEntriesRequest",
342
+ "name": "增量添加网络ACL三元组规则接口",
343
+ "output": "CreateNetworkAclEntriesResponse",
344
+ "status": "online"
345
+ },
339
346
  "CreateNetworkAclQuintupleEntries": {
340
347
  "document": "本接口(CreateNetworkAclQuintupleEntries)用于增量网络ACL五元组的入站规则和出站规则。",
341
348
  "input": "CreateNetworkAclQuintupleEntriesRequest",
@@ -623,6 +630,13 @@
623
630
  "output": "DeleteNetworkAclResponse",
624
631
  "status": "online"
625
632
  },
633
+ "DeleteNetworkAclEntries": {
634
+ "document": "本接口(DeleteNetworkAclEntries)用于删除三元组网络ACL的入站规则和出站规则。在NetworkAclEntrySet参数中:\n* 删除IPv4规则,需要传入NetworkAclIpv4EntryId。\n* 删除IPv6规则,需要传入NetworkAclIpv6EntryId。",
635
+ "input": "DeleteNetworkAclEntriesRequest",
636
+ "name": "删除ACL三元组单条规则",
637
+ "output": "DeleteNetworkAclEntriesResponse",
638
+ "status": "online"
639
+ },
626
640
  "DeleteNetworkAclQuintupleEntries": {
627
641
  "document": "本接口(DeleteNetworkAclQuintupleEntries)用于删除网络ACL五元组指定的入站规则和出站规则(但不是全量删除该ACL下的所有条目)。在NetworkAclQuintupleEntrySet参数中:NetworkAclQuintupleEntry需要提供NetworkAclQuintupleEntryId。",
628
642
  "input": "DeleteNetworkAclQuintupleEntriesRequest",
@@ -6810,6 +6824,42 @@
6810
6824
  ],
6811
6825
  "type": "object"
6812
6826
  },
6827
+ "CreateNetworkAclEntriesRequest": {
6828
+ "document": "CreateNetworkAclEntries请求参数结构体",
6829
+ "members": [
6830
+ {
6831
+ "disabled": false,
6832
+ "document": "网络ACL实例ID。例如:acl-12345678。",
6833
+ "example": "acl-12345678",
6834
+ "member": "string",
6835
+ "name": "NetworkAclId",
6836
+ "required": true,
6837
+ "type": "string"
6838
+ },
6839
+ {
6840
+ "disabled": false,
6841
+ "document": "网络三元组ACL规则集。",
6842
+ "example": "无",
6843
+ "member": "NetworkAclEntrySet",
6844
+ "name": "NetworkAclEntrySet",
6845
+ "required": true,
6846
+ "type": "object"
6847
+ }
6848
+ ],
6849
+ "type": "object"
6850
+ },
6851
+ "CreateNetworkAclEntriesResponse": {
6852
+ "document": "CreateNetworkAclEntries返回参数结构体",
6853
+ "members": [
6854
+ {
6855
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
6856
+ "member": "string",
6857
+ "name": "RequestId",
6858
+ "type": "string"
6859
+ }
6860
+ ],
6861
+ "type": "object"
6862
+ },
6813
6863
  "CreateNetworkAclQuintupleEntriesRequest": {
6814
6864
  "document": "CreateNetworkAclQuintupleEntries请求参数结构体",
6815
6865
  "members": [
@@ -9531,6 +9581,42 @@
9531
9581
  ],
9532
9582
  "type": "object"
9533
9583
  },
9584
+ "DeleteNetworkAclEntriesRequest": {
9585
+ "document": "DeleteNetworkAclEntries请求参数结构体",
9586
+ "members": [
9587
+ {
9588
+ "disabled": false,
9589
+ "document": "三元组网络ACL实例ID。例如:acl-12345678。",
9590
+ "example": "acl-12345678",
9591
+ "member": "string",
9592
+ "name": "NetworkAclId",
9593
+ "required": true,
9594
+ "type": "string"
9595
+ },
9596
+ {
9597
+ "disabled": false,
9598
+ "document": "三元组网络ACL规则集。",
9599
+ "example": "无",
9600
+ "member": "NetworkAclEntrySet",
9601
+ "name": "NetworkAclEntrySet",
9602
+ "required": false,
9603
+ "type": "object"
9604
+ }
9605
+ ],
9606
+ "type": "object"
9607
+ },
9608
+ "DeleteNetworkAclEntriesResponse": {
9609
+ "document": "DeleteNetworkAclEntries返回参数结构体",
9610
+ "members": [
9611
+ {
9612
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
9613
+ "member": "string",
9614
+ "name": "RequestId",
9615
+ "type": "string"
9616
+ }
9617
+ ],
9618
+ "type": "object"
9619
+ },
9534
9620
  "DeleteNetworkAclQuintupleEntriesRequest": {
9535
9621
  "document": "DeleteNetworkAclQuintupleEntries请求参数结构体",
9536
9622
  "members": [
@@ -468,6 +468,14 @@
468
468
  "title": "创建网络ACL"
469
469
  }
470
470
  ],
471
+ "CreateNetworkAclEntries": [
472
+ {
473
+ "document": "增量增加三元组ACL规则。",
474
+ "input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateNetworkAclEntries\n<公共请求参数>\n\n{\n \"NetworkAclId\": \"acl-12345678\",\n \"NetworkAclEntrySet\": {\n \"Ingress\": [\n {\n \"Protocol\": \"TCP\",\n \"Port\": \"80\",\n \"CidrBlock\": \"192.168.0.0/24\",\n \"Action\": \"Accept\",\n \"Description\": \"TEST\"\n }\n ],\n \"Egress\": [\n {\n \"Protocol\": \"TCP\",\n \"Port\": \"80\",\n \"CidrBlock\": \"192.168.0.0/24\",\n \"Action\": \"Accept\",\n \"Description\": \"TEST\"\n }\n ]\n }\n}",
475
+ "output": "{\n \"Response\": {\n \"RequestId\": \"f23d1450-ed00-4442-98d4-be409e625e6c\"\n }\n}",
476
+ "title": "增量增加三元组ACL规则。"
477
+ }
478
+ ],
471
479
  "CreateNetworkAclQuintupleEntries": [
472
480
  {
473
481
  "document": "",
@@ -808,6 +816,14 @@
808
816
  "title": "删除网络ACL"
809
817
  }
810
818
  ],
819
+ "DeleteNetworkAclEntries": [
820
+ {
821
+ "document": "删除单条IPv4规则",
822
+ "input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteNetworkAclEntries\n<公共请求参数>\n\n{\n \"NetworkAclId\": \"acl-n8w3ppae\",\n \"NetworkAclEntrySet\": {\n \"Ingress\": [\n {\n \"NetworkAclIpv4EntryId\": \"acli43-kl90bzxv\"\n }\n ],\n \"Egress\": [\n {\n \"NetworkAclIpv4EntryId\": \"acli43-25s6gffh\"\n }\n ]\n }\n}",
823
+ "output": "{\n \"Response\": {\n \"RequestId\": \"fed474df-e6c9-434e-8d07-0ce7e11e7315\"\n }\n}",
824
+ "title": "删除单条IPv4规则"
825
+ }
826
+ ],
811
827
  "DeleteNetworkAclQuintupleEntries": [
812
828
  {
813
829
  "document": "",