tccli 3.0.948.1__py2.py3-none-any.whl → 3.0.949.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.
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
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.948.1'
1
+ __version__ = '3.0.949.1'
@@ -0,0 +1,30 @@
1
+ **Example 1: 增量增加三元组ACL规则。**
2
+
3
+ 增量增加三元组ACL规则。
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli vpc CreateNetworkAclEntries --cli-unfold-argument \
9
+ --NetworkAclId acl-12345678 \
10
+ --NetworkAclEntrySet.Ingress.0.Protocol TCP \
11
+ --NetworkAclEntrySet.Ingress.0.Port 80 \
12
+ --NetworkAclEntrySet.Ingress.0.CidrBlock 192.168.0.0/24 \
13
+ --NetworkAclEntrySet.Ingress.0.Action Accept \
14
+ --NetworkAclEntrySet.Ingress.0.Description TEST \
15
+ --NetworkAclEntrySet.Egress.0.Protocol TCP \
16
+ --NetworkAclEntrySet.Egress.0.Port 80 \
17
+ --NetworkAclEntrySet.Egress.0.CidrBlock 192.168.0.0/24 \
18
+ --NetworkAclEntrySet.Egress.0.Action Accept \
19
+ --NetworkAclEntrySet.Egress.0.Description TEST
20
+ ```
21
+
22
+ Output:
23
+ ```
24
+ {
25
+ "Response": {
26
+ "RequestId": "f23d1450-ed00-4442-98d4-be409e625e6c"
27
+ }
28
+ }
29
+ ```
30
+
@@ -0,0 +1,22 @@
1
+ **Example 1: 删除单条IPv4规则**
2
+
3
+ 删除单条IPv4规则
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli vpc DeleteNetworkAclEntries --cli-unfold-argument \
9
+ --NetworkAclId acl-n8w3ppae \
10
+ --NetworkAclEntrySet.Ingress.0.NetworkAclIpv4EntryId acli43-kl90bzxv \
11
+ --NetworkAclEntrySet.Egress.0.NetworkAclIpv4EntryId acli43-25s6gffh
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Response": {
18
+ "RequestId": "fed474df-e6c9-434e-8d07-0ce7e11e7315"
19
+ }
20
+ }
21
+ ```
22
+
@@ -0,0 +1,46 @@
1
+ **Example 1: 添加防篡改url**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf AddAntiFakeUrl --cli-unfold-argument \
9
+ --Domain www.test.com \
10
+ --Name test \
11
+ --Uri http://zanyang.qcloudwaf.com/index.html
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Response": {
18
+ "RequestId": "09f0ad6a-cca6-4652-9be0-723d474c2d84",
19
+ "Result": "failure"
20
+ }
21
+ }
22
+ ```
23
+
24
+ **Example 2: 添加成功**
25
+
26
+
27
+
28
+ Input:
29
+
30
+ ```
31
+ tccli waf AddAntiFakeUrl --cli-unfold-argument \
32
+ --Domain www.test1.com \
33
+ --Name test \
34
+ --Uri http://www.test1.com/a1.html
35
+ ```
36
+
37
+ Output:
38
+ ```
39
+ {
40
+ "Response": {
41
+ "RequestId": "ce58ce20-e508-4c68-9a55-18233f703e6f",
42
+ "Result": "success"
43
+ }
44
+ }
45
+ ```
46
+
@@ -0,0 +1,26 @@
1
+ **Example 1: 添加信息防泄漏规则**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf AddAntiInfoLeakRules --cli-unfold-argument \
9
+ --Domain www.test1.com \
10
+ --Name test \
11
+ --ActionType 1 \
12
+ --Strategies.0.Field information \
13
+ --Strategies.0.CompareFunc contains \
14
+ --Strategies.0.Content idcard \
15
+ --Uri http://www.test1.com/123.txt
16
+ ```
17
+
18
+ Output:
19
+ ```
20
+ {
21
+ "Response": {
22
+ "RequestId": "1a16a333-76ac-42f5-8066-c0ea93cc8dc7"
23
+ }
24
+ }
25
+ ```
26
+
@@ -0,0 +1,21 @@
1
+ **Example 1: 删除防篡改url**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DeleteAntiFakeUrl --cli-unfold-argument \
9
+ --Domain www.test.com \
10
+ --Id 123
11
+ ```
12
+
13
+ Output:
14
+ ```
15
+ {
16
+ "Response": {
17
+ "RequestId": "8c20d0a3-9539-4ef8-aea1-06b5ce29e0c9"
18
+ }
19
+ }
20
+ ```
21
+
@@ -0,0 +1,21 @@
1
+ **Example 1: 信息防泄漏删除规则**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DeleteAntiInfoLeakRule --cli-unfold-argument \
9
+ --Domain www.test.com \
10
+ --RuleId 123
11
+ ```
12
+
13
+ Output:
14
+ ```
15
+ {
16
+ "Response": {
17
+ "RequestId": "36809618-b248-46fc-9513-0ecf86675215"
18
+ }
19
+ }
20
+ ```
21
+
@@ -0,0 +1,23 @@
1
+ **Example 1: Waf CC V2 Delete接口**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DeleteCCRule --cli-unfold-argument \
9
+ --Domain test.com \
10
+ --Name test \
11
+ --Edition clb-waf
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Response": {
18
+ "Data": null,
19
+ "RequestId": "d29f2d93-b894-4c04-b047-ea6470bc0acd"
20
+ }
21
+ }
22
+ ```
23
+
@@ -0,0 +1,28 @@
1
+ **Example 1: 获取防篡改url**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DescribeAntiFakeRules --cli-unfold-argument \
9
+ --Domain xx \
10
+ --Order xx \
11
+ --Limit 1 \
12
+ --Filters.0.Values xx \
13
+ --Filters.0.Name xx \
14
+ --Filters.0.ExactMatch True \
15
+ --Offset 1 \
16
+ --By xx
17
+ ```
18
+
19
+ Output:
20
+ ```
21
+ {
22
+ "Response": {
23
+ "Data": [],
24
+ "RequestId": "08e8410d-6e80-4d1f-89ff-62669042369d"
25
+ }
26
+ }
27
+ ```
28
+
@@ -0,0 +1,57 @@
1
+ **Example 1: 获取防篡改url**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DescribeAntiFakeUrl --cli-unfold-argument \
9
+ --Domain www.test.com \
10
+ --PageInfo.PageNumber 0 \
11
+ --PageInfo.PageSize 10
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Response": {
18
+ "List": [],
19
+ "RequestId": "08e8410d-6e80-4d1f-89ff-62669042369d",
20
+ "Total": "0"
21
+ }
22
+ }
23
+ ```
24
+
25
+ **Example 2: 获取配置的防篡改策略--有数据返回场景**
26
+
27
+
28
+
29
+ Input:
30
+
31
+ ```
32
+ tccli waf DescribeAntiFakeUrl --cli-unfold-argument \
33
+ --Domain www.test.com \
34
+ --PageInfo.PageNumber 0 \
35
+ --PageInfo.PageSize 10
36
+ ```
37
+
38
+ Output:
39
+ ```
40
+ {
41
+ "Response": {
42
+ "List": [
43
+ {
44
+ "Domain": "www.test1.com",
45
+ "Id": "135",
46
+ "Name": "test",
47
+ "Protocol": "http",
48
+ "Status": "1",
49
+ "Uri": "http://www.test1.com/a1.html"
50
+ }
51
+ ],
52
+ "RequestId": "0f0d7ca8-2ece-48af-886c-7ef178b5940a",
53
+ "Total": "1"
54
+ }
55
+ }
56
+ ```
57
+
@@ -0,0 +1,40 @@
1
+ **Example 1: 获取信息防泄漏规则列表**
2
+
3
+ 获取信息防泄漏规则列表
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DescribeAntiInfoLeakRules --cli-unfold-argument \
9
+ --Domain abc \
10
+ --ActionType 0 \
11
+ --PageInfo.PageNumber abc \
12
+ --PageInfo.PageSize abc
13
+ ```
14
+
15
+ Output:
16
+ ```
17
+ {
18
+ "Response": {
19
+ "TotalCount": "abc",
20
+ "RuleList": [
21
+ {
22
+ "RuleId": "abc",
23
+ "Name": "abc",
24
+ "Status": "abc",
25
+ "ActionType": "abc",
26
+ "CreateTime": "abc",
27
+ "Strategies": [
28
+ {
29
+ "Field": "abc",
30
+ "CompareFunc": "abc",
31
+ "Content": "abc"
32
+ }
33
+ ]
34
+ }
35
+ ],
36
+ "RequestId": "abc"
37
+ }
38
+ }
39
+ ```
40
+
@@ -0,0 +1,38 @@
1
+ **Example 1: 获取信息防泄漏规则列表**
2
+
3
+ 获取信息防泄漏规则列表
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DescribeAntiInfoLeakageRules --cli-unfold-argument \
9
+ --Domain xx
10
+ ```
11
+
12
+ Output:
13
+ ```
14
+ {
15
+ "Response": {
16
+ "Total": 1,
17
+ "RequestId": "xx",
18
+ "RuleList": [
19
+ {
20
+ "Status": 1,
21
+ "Name": "xx",
22
+ "RuleId": 1,
23
+ "Uri": "xx",
24
+ "Action": "xx",
25
+ "Strategies": [
26
+ {
27
+ "Content": "xx",
28
+ "Field": "xx",
29
+ "CompareFunc": "xx"
30
+ }
31
+ ],
32
+ "CreateTime": "xx"
33
+ }
34
+ ]
35
+ }
36
+ }
37
+ ```
38
+
@@ -0,0 +1,42 @@
1
+ **Example 1: Waf 多域名ip黑白名单查询**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DescribeBatchIpAccessControl --cli-unfold-argument \
9
+ --Sort ts_version:-1 \
10
+ --Limit 20 \
11
+ --Filters.0.Values Domain \
12
+ --Filters.0.Name www.q.com \
13
+ --Filters.0.ExactMatch True \
14
+ --OffSet 0
15
+ ```
16
+
17
+ Output:
18
+ ```
19
+ {
20
+ "Response": {
21
+ "Data": {
22
+ "Res": [
23
+ {
24
+ "ActionType": 42,
25
+ "Ip": "1.1.1.1",
26
+ "Note": "",
27
+ "Source": "custom",
28
+ "TsVersion": 1579074751421,
29
+ "ValidTs": 1579017599,
30
+ "Hosts": [
31
+ "www.q.com",
32
+ "www.b.com"
33
+ ]
34
+ }
35
+ ],
36
+ "TotalCount": 1
37
+ },
38
+ "RequestId": "c937ce96-cf53-4df8-b288-07c6e092072d"
39
+ }
40
+ }
41
+ ```
42
+
@@ -0,0 +1,71 @@
1
+ **Example 1: Waf CC V2 Query接口 无数据返回场景**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DescribeCCRule --cli-unfold-argument \
9
+ --Domain www.test.com \
10
+ --Limit 10 \
11
+ --Offset 0 \
12
+ --Edition clb-waf \
13
+ --Sort priority:1;ts_version:-1
14
+ ```
15
+
16
+ Output:
17
+ ```
18
+ {
19
+ "Response": {
20
+ "Data": {
21
+ "Res": [],
22
+ "TotalCount": 0
23
+ },
24
+ "RequestId": "b22fc98c-6c4f-4716-b043-f11ccbffde70"
25
+ }
26
+ }
27
+ ```
28
+
29
+ **Example 2: Waf CC V2 Query接口 有数据返回场景**
30
+
31
+
32
+
33
+ Input:
34
+
35
+ ```
36
+ tccli waf DescribeCCRule --cli-unfold-argument \
37
+ --Domain test.com \
38
+ --Limit 10 \
39
+ --Offset 0 \
40
+ --Edition clb-waf \
41
+ --Sort priority:1;ts_version:-1
42
+ ```
43
+
44
+ Output:
45
+ ```
46
+ {
47
+ "Response": {
48
+ "Data": {
49
+ "Res": [
50
+ {
51
+ "ActionType": 22,
52
+ "Advance": 0,
53
+ "Interval": 60,
54
+ "Limit": 60,
55
+ "MatchFunc": 0,
56
+ "Name": "test1",
57
+ "OptionsArr": "[{\"key\":\"get\",\"args\":[\"=\"]}]",
58
+ "Priority": 50,
59
+ "Status": 1,
60
+ "TsVersion": 1579058116920,
61
+ "Url": "///",
62
+ "ValidTime": 600
63
+ }
64
+ ],
65
+ "TotalCount": 1
66
+ },
67
+ "RequestId": "1cc54bf4-cfeb-40cc-a823-035e52106df9"
68
+ }
69
+ }
70
+ ```
71
+
@@ -0,0 +1,36 @@
1
+ **Example 1: 根据URL查询API规则**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DescribeCCRuleList --cli-unfold-argument ```
9
+
10
+ Output:
11
+ ```
12
+ {
13
+ "Response": {
14
+ "RequestId": "1cc54bf4-cfeb-40cc-a823-035e52106df9"
15
+ }
16
+ }
17
+ ```
18
+
19
+ **Example 2: test1**
20
+
21
+
22
+
23
+ Input:
24
+
25
+ ```
26
+ tccli waf DescribeCCRuleList --cli-unfold-argument ```
27
+
28
+ Output:
29
+ ```
30
+ {
31
+ "Response": {
32
+ "RequestId": "41b55f8b-1ed1-484c-aab7-c14c0889f78b"
33
+ }
34
+ }
35
+ ```
36
+
@@ -0,0 +1,51 @@
1
+ **Example 1: Waf 会话定义查询接口**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf DescribeSession --cli-unfold-argument \
9
+ --Domain test.com \
10
+ --Edition clb-waf
11
+ ```
12
+
13
+ Output:
14
+ ```
15
+ {
16
+ "Res": [
17
+ {
18
+ "Category": "match",
19
+ "EndMat": "&",
20
+ "EndOffset": "-1",
21
+ "KeyOrStartMat": "hashId",
22
+ "Source": "get",
23
+ "StartOffset": "-1",
24
+ "TsVersion": "1578366436093"
25
+ }
26
+ ]
27
+ }
28
+ ```
29
+
30
+ **Example 2: 没有设置Seesion的场景**
31
+
32
+
33
+
34
+ Input:
35
+
36
+ ```
37
+ tccli waf DescribeSession --cli-unfold-argument \
38
+ --Domain test.com \
39
+ --Edition clb-waf
40
+ ```
41
+
42
+ Output:
43
+ ```
44
+ {
45
+ "Response": {
46
+ "Data": null,
47
+ "RequestId": "e08991ed-f8f8-4a6e-b8be-74f1a34eab5f"
48
+ }
49
+ }
50
+ ```
51
+
@@ -0,0 +1,24 @@
1
+ **Example 1: 编辑防篡改url**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf ModifyAntiFakeUrl --cli-unfold-argument \
9
+ --Domain www.test.com \
10
+ --Name test \
11
+ --Uri http://zanyang.qcloudwaf.com/index.html \
12
+ --Id 123
13
+ ```
14
+
15
+ Output:
16
+ ```
17
+ {
18
+ "Response": {
19
+ "RequestId": "32e5e790-5999-4aa6-a3cb-34ed4c570d14",
20
+ "Result": "success"
21
+ }
22
+ }
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ **Example 1: 切换防篡改开关**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf ModifyAntiFakeUrlStatus --cli-unfold-argument \
9
+ --Domain test.com \
10
+ --Status 0 \
11
+ --Ids 123 345
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Response": {
18
+ "RequestId": "c68bdee7-2c14-4bd3-ba41-cdf1421c0d0c"
19
+ }
20
+ }
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ **Example 1: 信息防泄漏切换规则开关**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf ModifyAntiInfoLeakRuleStatus --cli-unfold-argument \
9
+ --Domain www.test.com \
10
+ --RuleId 123 \
11
+ --Status 1
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Response": {
18
+ "RequestId": "800f0a0c-6f8b-409a-af67-ccd12354e8f4"
19
+ }
20
+ }
21
+ ```
22
+
@@ -0,0 +1,26 @@
1
+ **Example 1: 编辑信息防泄漏规则**
2
+
3
+ 编辑信息防泄漏规则
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf ModifyAntiInfoLeakRules --cli-unfold-argument \
9
+ --RuleId 167 \
10
+ --Name test1 \
11
+ --Domain www.test1.com \
12
+ --ActionType 0 \
13
+ --Strategies.0.Field information \
14
+ --Strategies.0.CompareFunc contains \
15
+ --Strategies.0.Content phone
16
+ ```
17
+
18
+ Output:
19
+ ```
20
+ {
21
+ "Response": {
22
+ "RequestId": "640e40da-d57a-4402-8e3d-39c5bed8addd"
23
+ }
24
+ }
25
+ ```
26
+
@@ -0,0 +1,26 @@
1
+ **Example 1: 切换精准白名单规则的开关**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli waf ModifyCustomWhiteRuleStatus --cli-unfold-argument \
9
+ --RuleId 1100000001 \
10
+ --Domain waf.tencentcloudapi.com \
11
+ --Status 1
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Response": {
18
+ "RequestId": "5d207f4f-0d41-4f5d-bce2-0320090c98d8",
19
+ "Success": {
20
+ "Message": "Success",
21
+ "Code": "Success"
22
+ }
23
+ }
24
+ }
25
+ ```
26
+