tccli 3.0.1048.1__py2.py3-none-any.whl → 3.0.1049.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 (47) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/antiddos/v20200309/DescribeBGPIPL7Rules.md +87 -0
  3. tccli/examples/ckafka/v20190819/DescribeGroup.md +6 -5
  4. tccli/examples/csip/v20221121/ModifyOrganizationAccountStatus.md +21 -0
  5. tccli/examples/cynosdb/v20190107/AddInstances.md +2 -2
  6. tccli/examples/cynosdb/v20190107/DescribeClusterInstanceGrps.md +235 -79
  7. tccli/examples/cynosdb/v20190107/DescribeClusterParams.md +3 -1
  8. tccli/examples/cynosdb/v20190107/DescribeClusterPasswordComplexity.md +18 -6
  9. tccli/examples/cynosdb/v20190107/DescribeInstances.md +63 -55
  10. tccli/examples/cynosdb/v20190107/DescribeParamTemplateDetail.md +3 -1
  11. tccli/examples/cynosdb/v20190107/ModifyVipVport.md +3 -3
  12. tccli/examples/essbasic/v20210526/ChannelCreatePrepareFlow.md +2 -2
  13. tccli/examples/oceanus/v20190422/CopyJobs.md +11 -20
  14. tccli/examples/teo/v20220901/DescribeDefaultCertificates.md +2 -1
  15. tccli/examples/trocket/v20230308/CreateMQTTInstance.md +31 -0
  16. tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +176 -0
  17. tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +94 -0
  18. tccli/services/antiddos/antiddos_client.py +53 -0
  19. tccli/services/antiddos/v20200309/api.json +439 -0
  20. tccli/services/antiddos/v20200309/examples.json +8 -0
  21. tccli/services/cfg/v20210820/api.json +21 -10
  22. tccli/services/ckafka/v20190819/api.json +6 -5
  23. tccli/services/ckafka/v20190819/examples.json +1 -1
  24. tccli/services/cls/v20201016/api.json +48 -19
  25. tccli/services/csip/csip_client.py +53 -0
  26. tccli/services/csip/v20221121/api.json +43 -0
  27. tccli/services/csip/v20221121/examples.json +8 -0
  28. tccli/services/cynosdb/v20190107/api.json +415 -87
  29. tccli/services/cynosdb/v20190107/examples.json +12 -12
  30. tccli/services/essbasic/v20210526/examples.json +2 -2
  31. tccli/services/live/v20180801/api.json +1 -1
  32. tccli/services/oceanus/v20190422/api.json +32 -3
  33. tccli/services/oceanus/v20190422/examples.json +1 -1
  34. tccli/services/privatedns/v20201028/api.json +29 -19
  35. tccli/services/ssl/ssl_client.py +0 -53
  36. tccli/services/ssl/v20191205/api.json +0 -99
  37. tccli/services/ssl/v20191205/examples.json +0 -8
  38. tccli/services/teo/v20220901/api.json +14 -3
  39. tccli/services/teo/v20220901/examples.json +1 -1
  40. tccli/services/trocket/trocket_client.py +171 -12
  41. tccli/services/trocket/v20230308/api.json +492 -0
  42. tccli/services/trocket/v20230308/examples.json +30 -0
  43. {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/METADATA +2 -2
  44. {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/RECORD +47 -42
  45. {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/WHEEL +0 -0
  46. {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/entry_points.txt +0 -0
  47. {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/license_files/LICENSE +0 -0
@@ -8,16 +8,16 @@ Input:
8
8
  tccli cynosdb DescribeInstances --cli-unfold-argument \
9
9
  --Limit 0 \
10
10
  --Offset 0 \
11
- --OrderBy abc \
12
- --OrderByType abc \
13
- --Filters.0.Names abc \
14
- --Filters.0.Values abc \
11
+ --OrderBy CREATETIME \
12
+ --OrderByType ASC \
13
+ --Filters.0.Names status \
14
+ --Filters.0.Values running \
15
15
  --Filters.0.ExactMatch True \
16
- --Filters.0.Name abc \
17
- --Filters.0.Operator abc \
18
- --DbType abc \
19
- --Status abc \
20
- --InstanceIds abc
16
+ --Filters.0.Name \
17
+ --Filters.0.Operator \
18
+ --DbType MYSQL \
19
+ --Status running \
20
+ --InstanceIds cynosdbmysql-ins-1asd45qwe
21
21
  ```
22
22
 
23
23
  Output:
@@ -27,85 +27,93 @@ Output:
27
27
  "TotalCount": 0,
28
28
  "InstanceSet": [
29
29
  {
30
- "Uin": "abc",
30
+ "Uin": "1111111",
31
31
  "AppId": 0,
32
- "ClusterId": "abc",
32
+ "ClusterId": "cynosdbmysql-asd45qwe",
33
33
  "ClusterName": "abc",
34
- "InstanceId": "abc",
34
+ "InstanceId": "cynosdbmysql-ins-asd45qwe",
35
35
  "InstanceName": "abc",
36
36
  "ProjectId": 0,
37
- "Region": "abc",
38
- "Zone": "abc",
39
- "Status": "abc",
40
- "StatusDesc": "abc",
41
- "DbType": "abc",
42
- "DbVersion": "abc",
43
- "Cpu": 0,
44
- "Memory": 0,
45
- "Storage": 0,
46
- "InstanceType": "abc",
47
- "InstanceRole": "abc",
37
+ "Region": "ap-guangzhou",
38
+ "Zone": "ap-guangzhou-3",
39
+ "Status": "running",
40
+ "StatusDesc": "运行中",
41
+ "DbMode": "NORMAL",
42
+ "DbType": "MYSQL",
43
+ "DbVersion": "5.7",
44
+ "Cpu": 1,
45
+ "Memory": 1,
46
+ "Storage": 10,
47
+ "InstanceType": "rw",
48
+ "InstanceRole": "master",
48
49
  "UpdateTime": "2020-09-22 00:00:00",
49
50
  "CreateTime": "2020-09-22 00:00:00",
50
- "VpcId": "abc",
51
- "SubnetId": "abc",
52
- "Vip": "abc",
53
- "Vport": 0,
51
+ "VpcId": "vpc-12as56",
52
+ "SubnetId": "subnet-123asd",
53
+ "Vip": "192.0.0.0",
54
+ "Vport": 3306,
54
55
  "PayMode": 0,
55
56
  "PeriodEndTime": "2020-09-22 00:00:00",
56
57
  "DestroyDeadlineText": "abc",
57
58
  "IsolateTime": "2020-09-22 00:00:00",
58
59
  "NetType": 0,
59
- "WanDomain": "abc",
60
- "WanIP": "abc",
60
+ "WanDomain": "",
61
+ "WanIP": "",
61
62
  "WanPort": 0,
62
- "WanStatus": "abc",
63
- "DestroyTime": "abc",
64
- "CynosVersion": "abc",
65
- "ProcessingTask": "abc",
63
+ "WanStatus": "",
64
+ "DestroyTime": "",
65
+ "CynosVersion": "2.0.10",
66
+ "ProcessingTask": "",
66
67
  "RenewFlag": 0,
67
68
  "MinCpu": 0,
68
69
  "MaxCpu": 0,
69
- "ServerlessStatus": "abc",
70
- "StorageId": "abc",
70
+ "ServerlessStatus": "",
71
+ "StorageId": "",
71
72
  "StoragePayMode": 0,
72
- "PhysicalZone": "abc",
73
- "BusinessType": "abc",
73
+ "PhysicalZone": "ap-guangzhou-3",
74
+ "BusinessType": "",
74
75
  "Tasks": [
75
76
  {
76
- "TaskId": 0,
77
- "TaskType": "abc",
78
- "TaskStatus": "abc",
79
- "ObjectId": "abc",
80
- "ObjectType": "abc"
77
+ "TaskId": 111110,
78
+ "TaskType": "taskCreateClusters",
79
+ "TaskStatus": "running",
80
+ "ObjectId": "cynosdbmysql-asd45qwe",
81
+ "ObjectType": "cluster"
81
82
  }
82
83
  ],
83
- "IsFreeze": "abc",
84
+ "IsFreeze": "no",
84
85
  "ResourceTags": [
85
86
  {
86
87
  "TagKey": "abc",
87
88
  "TagValue": "abc"
88
89
  }
89
90
  ],
90
- "MasterZone": "abc",
91
+ "MasterZone": "ap-guangzhou-3",
91
92
  "SlaveZones": [
92
- "abc"
93
+ "ap-guangzhou-4"
93
94
  ],
94
95
  "InstanceNetInfo": [
95
96
  {
96
- "InstanceGroupType": "abc",
97
- "InstanceGroupId": "abc",
98
- "VpcId": "abc",
99
- "SubnetId": "abc",
97
+ "InstanceGroupType": "ha",
98
+ "InstanceGroupId": "cynosdbmysql-grp-asd45qwe",
99
+ "VpcId": "vpc-12as45",
100
+ "SubnetId": "subnet-12as45",
100
101
  "NetType": 0,
101
- "Vip": "abc",
102
- "Vport": 0,
103
- "WanDomain": "abc",
104
- "WanIP": "abc",
102
+ "Vip": "192.0.0.0",
103
+ "Vport": 3306,
104
+ "WanDomain": "",
105
+ "WanIP": "",
105
106
  "WanPort": 0,
106
- "WanStatus": "abc"
107
+ "WanStatus": ""
107
108
  }
108
- ]
109
+ ],
110
+ "ResourcePackages": [
111
+ {
112
+ "PackageId": "",
113
+ "PackageType": ""
114
+ }
115
+ ],
116
+ "InstanceIndexMode": ""
109
117
  }
110
118
  ],
111
119
  "RequestId": "abc"
@@ -28,7 +28,9 @@ Output:
28
28
  "MatchValue": "",
29
29
  "Max": "10240",
30
30
  "Min": "0",
31
- "ModifiableInfo": {},
31
+ "ModifiableInfo": {
32
+ "IsModifiable": 1
33
+ },
32
34
  "NeedReboot": 0,
33
35
  "ParamName": "max_user_connections",
34
36
  "ParamType": "integer",
@@ -6,8 +6,8 @@ Input:
6
6
 
7
7
  ```
8
8
  tccli cynosdb ModifyVipVport --cli-unfold-argument \
9
- --ClusterId cynosdbmysql-asd \
10
- --InstanceGrpId cynosdbmysql-grp-qwe \
9
+ --ClusterId xxx \
10
+ --InstanceGrpId xxx \
11
11
  --Vip xx.xx.xx.xx
12
12
  ```
13
13
 
@@ -16,7 +16,7 @@ Output:
16
16
  {
17
17
  "Response": {
18
18
  "RequestId": "128046",
19
- "FlowId": 123
19
+ "FlowId": "123"
20
20
  }
21
21
  }
22
22
  ```
@@ -58,7 +58,7 @@ Output:
58
58
 
59
59
  1.这是一个B2C的合同模板, 创建发起合同签署链接,只指定一个子企业的参与方
60
60
  2.FlowApproverList参数指定的参与方不能更改, 未指定的参与方可以修改
61
- <img border="0" src="https://qcloudimg.tencent-cloud.cn/raw/f51c3d969db0093300094a22c6c01555.png" >
61
+ <img src="https://qcloudimg.tencent-cloud.cn/raw/f51c3d969db0093300094a22c6c01555.png" >
62
62
 
63
63
 
64
64
  Input:
@@ -97,7 +97,7 @@ Output:
97
97
 
98
98
  1.创建发起合同签署链接, 提前定义两个签署人, 分别是 B端渠道子客企业的员工和C端为张三这个自然人
99
99
  2.FlowApproverList参数指定的参与方不能更改
100
- <img border="0" src="https://qcloudimg.tencent-cloud.cn/raw/935a3cebf2881b25c1d87e234a303a13.png" >
100
+ <img src="https://qcloudimg.tencent-cloud.cn/raw/935a3cebf2881b25c1d87e234a303a13.png" >
101
101
 
102
102
 
103
103
  Input:
@@ -19,31 +19,22 @@ Output:
19
19
  ```
20
20
  {
21
21
  "Response": {
22
+ "SuccessCount": 0,
23
+ "FailCount": 0,
22
24
  "CopyJobsResults": [
23
25
  {
24
- "JobId": "cql-pqx9zh30",
25
- "JobName": "jar3",
26
- "TargetJobName": "",
27
- "TargetJobId": "",
28
- "Message": "Failed to get cluster group",
29
- "Result": -1,
30
- "ClusterName": "",
31
- "ClusterId": ""
32
- },
33
- {
34
- "JobId": "cql-njifzfwn",
35
- "JobName": "OOM",
36
- "TargetJobName": "OOM_2021-12-21_17_54_32",
37
- "TargetJobId": "cql-2dhxz8sf",
38
- "Message": "OK",
26
+ "JobId": "abc",
27
+ "JobName": "abc",
28
+ "TargetJobName": "abc",
29
+ "TargetJobId": "abc",
30
+ "Message": "abc",
39
31
  "Result": 0,
40
- "ClusterName": "依赖管理二期",
41
- "ClusterId": "cluster-l0elpxde"
32
+ "ClusterName": "abc",
33
+ "ClusterId": "abc",
34
+ "JobType": 0
42
35
  }
43
36
  ],
44
- "FailCount": 1,
45
- "RequestId": "123456a",
46
- "SuccessCount": 1
37
+ "RequestId": "abc"
47
38
  }
48
39
  }
49
40
  ```
@@ -29,7 +29,8 @@ Output:
29
29
  "ExpireTime": "2020-09-22T00:00:00+00:00",
30
30
  "Alias": "EdgeOne default",
31
31
  "Message": "",
32
- "Type": "default"
32
+ "Type": "default",
33
+ "SignAlgo": "RSA 2048"
33
34
  }
34
35
  ]
35
36
  }
@@ -0,0 +1,31 @@
1
+ **Example 1: 示例**
2
+
3
+ 示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket CreateMQTTInstance --cli-unfold-argument \
9
+ --InstanceType BASIC \
10
+ --Name sunjianxiong-1 \
11
+ --SkuCode basic_1k \
12
+ --Remark this is remark \
13
+ --VpcList.0.VpcId vpc-9a5wnirv \
14
+ --VpcList.0.SubnetId subnet-0tw6tlfi \
15
+ --IpRules.0.Ip 1.1.1.1 \
16
+ --IpRules.0.Allow True \
17
+ --IpRules.0.Remark 11111111
18
+ ```
19
+
20
+ Output:
21
+ ```
22
+ {
23
+ "Error": null,
24
+ "RequestId": null,
25
+ "Response": {
26
+ "InstanceId": "mqtt-7pnqmkrx",
27
+ "RequestId": "02107c9d-cbea-418c-bafc-740300fdefad"
28
+ }
29
+ }
30
+ ```
31
+
@@ -0,0 +1,176 @@
1
+ **Example 1: 示例**
2
+
3
+ 示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket DescribeMQTTInstanceList --cli-unfold-argument \
9
+ --Offset 0 \
10
+ --Limit 10
11
+ ```
12
+
13
+ Output:
14
+ ```
15
+ {
16
+ "Error": null,
17
+ "RequestId": null,
18
+ "Response": {
19
+ "Data": [
20
+ {
21
+ "ClientNumLimit": 1,
22
+ "CreateTime": 1705565760,
23
+ "InstanceId": "mqtt-wjgxr8jg",
24
+ "InstanceName": "sunjianxiong-0118-no-pub",
25
+ "InstanceStatus": "CREATE_FAILURE",
26
+ "InstanceType": "BASIC",
27
+ "Remark": "",
28
+ "SkuCode": "mqtt_1k",
29
+ "SubscriptionNumLimit": 1,
30
+ "TopicNum": 0,
31
+ "TopicNumLimit": 1,
32
+ "TpsLimit": 1,
33
+ "Version": "1"
34
+ },
35
+ {
36
+ "ClientNumLimit": 1000,
37
+ "CreateTime": 1705562417,
38
+ "InstanceId": "mqtt-7pnqmkrx",
39
+ "InstanceName": "sunjianxiong-1",
40
+ "InstanceStatus": "RUNNING",
41
+ "InstanceType": "BASIC",
42
+ "Remark": "this is remark",
43
+ "SkuCode": "basic_1k",
44
+ "SubscriptionNumLimit": 1000,
45
+ "TopicNum": 0,
46
+ "TopicNumLimit": 25,
47
+ "TpsLimit": 1000,
48
+ "Version": "1"
49
+ },
50
+ {
51
+ "ClientNumLimit": 1000,
52
+ "CreateTime": 1705562390,
53
+ "InstanceId": "mqtt-92vrwg7q",
54
+ "InstanceName": "sunjianxiong-1",
55
+ "InstanceStatus": "RUNNING",
56
+ "InstanceType": "BASIC",
57
+ "Remark": "this is remark",
58
+ "SkuCode": "basic_1k",
59
+ "SubscriptionNumLimit": 1000,
60
+ "TopicNum": 0,
61
+ "TopicNumLimit": 25,
62
+ "TpsLimit": 1000,
63
+ "Version": "1"
64
+ },
65
+ {
66
+ "ClientNumLimit": 1000,
67
+ "CreateTime": 1705562343,
68
+ "InstanceId": "mqtt-mzjj8pwq",
69
+ "InstanceName": "sunjianxiong-1",
70
+ "InstanceStatus": "RUNNING",
71
+ "InstanceType": "BASIC",
72
+ "Remark": "this is remark",
73
+ "SkuCode": "basic_1k",
74
+ "SubscriptionNumLimit": 1000,
75
+ "TopicNum": 0,
76
+ "TopicNumLimit": 25,
77
+ "TpsLimit": 1000,
78
+ "Version": "1"
79
+ },
80
+ {
81
+ "ClientNumLimit": 1000,
82
+ "CreateTime": 1705562309,
83
+ "InstanceId": "mqtt-r8wq2qbr",
84
+ "InstanceName": "sunjianxiong",
85
+ "InstanceStatus": "RUNNING",
86
+ "InstanceType": "BASIC",
87
+ "Remark": "this is remark",
88
+ "SkuCode": "basic_1k",
89
+ "SubscriptionNumLimit": 1000,
90
+ "TopicNum": 0,
91
+ "TopicNumLimit": 25,
92
+ "TpsLimit": 1000,
93
+ "Version": "1"
94
+ },
95
+ {
96
+ "ClientNumLimit": 1000,
97
+ "CreateTime": 1705481574,
98
+ "InstanceId": "mqtt-o98e9db4",
99
+ "InstanceName": "sunjianxiong-0117",
100
+ "InstanceStatus": "RUNNING",
101
+ "InstanceType": "BASIC",
102
+ "Remark": "",
103
+ "SkuCode": "basic_1k",
104
+ "SubscriptionNumLimit": 1000,
105
+ "TopicNum": 1,
106
+ "TopicNumLimit": 25,
107
+ "TpsLimit": 1000,
108
+ "Version": "1"
109
+ },
110
+ {
111
+ "ClientNumLimit": 1000,
112
+ "CreateTime": 1705391046,
113
+ "InstanceId": "mqtt-47ka4rdr",
114
+ "InstanceName": "sun-0116",
115
+ "InstanceStatus": "RUNNING",
116
+ "InstanceType": "BASIC",
117
+ "Remark": "",
118
+ "SkuCode": "basic_1k",
119
+ "SubscriptionNumLimit": 1000,
120
+ "TopicNum": 25,
121
+ "TopicNumLimit": 25,
122
+ "TpsLimit": 1000,
123
+ "Version": "1"
124
+ },
125
+ {
126
+ "ClientNumLimit": 1000,
127
+ "CreateTime": 1705386756,
128
+ "InstanceId": "mqtt-3jaepn74",
129
+ "InstanceName": "sunjianxiong",
130
+ "InstanceStatus": "RUNNING",
131
+ "InstanceType": "BASIC",
132
+ "Remark": "this is remark",
133
+ "SkuCode": "basic_1k",
134
+ "SubscriptionNumLimit": 1000,
135
+ "TopicNum": 0,
136
+ "TopicNumLimit": 25,
137
+ "TpsLimit": 1000,
138
+ "Version": "1"
139
+ },
140
+ {
141
+ "ClientNumLimit": 1000,
142
+ "CreateTime": 1705305132,
143
+ "InstanceId": "mqtt-x4r9v2xq",
144
+ "InstanceName": "sunjianxiong-0115",
145
+ "InstanceStatus": "RUNNING",
146
+ "InstanceType": "BASIC",
147
+ "Remark": "",
148
+ "SkuCode": "basic_1k",
149
+ "SubscriptionNumLimit": 1000,
150
+ "TopicNum": 1,
151
+ "TopicNumLimit": 25,
152
+ "TpsLimit": 1000,
153
+ "Version": "1"
154
+ },
155
+ {
156
+ "ClientNumLimit": 1000,
157
+ "CreateTime": 1704962679,
158
+ "InstanceId": "mqtt-o47zowaz",
159
+ "InstanceName": "sjx-0111",
160
+ "InstanceStatus": "RUNNING",
161
+ "InstanceType": "BASIC",
162
+ "Remark": "",
163
+ "SkuCode": "basic_1k",
164
+ "SubscriptionNumLimit": 1000,
165
+ "TopicNum": 0,
166
+ "TopicNumLimit": 1000,
167
+ "TpsLimit": 1000,
168
+ "Version": "1"
169
+ }
170
+ ],
171
+ "RequestId": "9424369d-904f-4fa2-b407-0bd5e536e989",
172
+ "TotalCount": 10
173
+ }
174
+ }
175
+ ```
176
+
@@ -0,0 +1,94 @@
1
+ **Example 1: 标志示例**
2
+
3
+ 标志示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket DescribeMQTTProductSKUList --cli-unfold-argument ```
9
+
10
+ Output:
11
+ ```
12
+ {
13
+ "Error": null,
14
+ "RequestId": null,
15
+ "Response": {
16
+ "MQTTProductSkuList": [
17
+ {
18
+ "ClientNumLimit": 1,
19
+ "InstanceType": "BASIC",
20
+ "OnSale": true,
21
+ "ProxySpecCore": 2,
22
+ "ProxySpecCount": 1,
23
+ "ProxySpecMemory": 4,
24
+ "SkuCode": "mqtt_1k",
25
+ "SubscriptionNumLimit": 1,
26
+ "TopicNumLimit": 1,
27
+ "TpsLimit": 1
28
+ },
29
+ {
30
+ "ClientNumLimit": 1000,
31
+ "InstanceType": "BASIC",
32
+ "OnSale": true,
33
+ "ProxySpecCore": 1,
34
+ "ProxySpecCount": 2,
35
+ "ProxySpecMemory": 2,
36
+ "SkuCode": "basic_1k",
37
+ "SubscriptionNumLimit": 1000,
38
+ "TopicNumLimit": 25,
39
+ "TpsLimit": 1000
40
+ }
41
+ ],
42
+ "RequestId": "2be05982-b125-4259-b965-c487949cd896",
43
+ "TotalCount": 2
44
+ }
45
+ }
46
+ ```
47
+
48
+ **Example 2: 示例**
49
+
50
+ 示例
51
+
52
+ Input:
53
+
54
+ ```
55
+ tccli trocket DescribeMQTTProductSKUList --cli-unfold-argument ```
56
+
57
+ Output:
58
+ ```
59
+ {
60
+ "Error": null,
61
+ "RequestId": null,
62
+ "Response": {
63
+ "MQTTProductSkuList": [
64
+ {
65
+ "ClientNumLimit": 1,
66
+ "InstanceType": "BASIC",
67
+ "OnSale": true,
68
+ "ProxySpecCore": 2,
69
+ "ProxySpecCount": 1,
70
+ "ProxySpecMemory": 4,
71
+ "SkuCode": "mqtt_1k",
72
+ "SubscriptionNumLimit": 1,
73
+ "TopicNumLimit": 1,
74
+ "TpsLimit": 1
75
+ },
76
+ {
77
+ "ClientNumLimit": 1000,
78
+ "InstanceType": "BASIC",
79
+ "OnSale": true,
80
+ "ProxySpecCore": 1,
81
+ "ProxySpecCount": 2,
82
+ "ProxySpecMemory": 2,
83
+ "SkuCode": "basic_1k",
84
+ "SubscriptionNumLimit": 1000,
85
+ "TopicNumLimit": 25,
86
+ "TpsLimit": 1000
87
+ }
88
+ ],
89
+ "RequestId": "73a1275e-26ce-494c-90d0-d7f9d0510730",
90
+ "TotalCount": 2
91
+ }
92
+ }
93
+ ```
94
+
@@ -225,6 +225,58 @@ def doDescribeL7RulesBySSLCertId(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
+ def doDescribeBGPIPL7Rules(args, parsed_globals):
229
+ g_param = parse_global_arg(parsed_globals)
230
+
231
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
232
+ cred = credential.CVMRoleCredential()
233
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
+ cred = credential.STSAssumeRoleCredential(
235
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
+ )
238
+ 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):
239
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
240
+ else:
241
+ cred = credential.Credential(
242
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
243
+ )
244
+ http_profile = HttpProfile(
245
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
246
+ reqMethod="POST",
247
+ endpoint=g_param[OptionsDefine.Endpoint],
248
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
249
+ )
250
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
251
+ if g_param[OptionsDefine.Language]:
252
+ profile.language = g_param[OptionsDefine.Language]
253
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
254
+ client = mod.AntiddosClient(cred, g_param[OptionsDefine.Region], profile)
255
+ client._sdkVersion += ("_CLI_" + __version__)
256
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
+ model = models.DescribeBGPIPL7RulesRequest()
258
+ model.from_json_string(json.dumps(args))
259
+ start_time = time.time()
260
+ while True:
261
+ rsp = client.DescribeBGPIPL7Rules(model)
262
+ result = rsp.to_json_string()
263
+ try:
264
+ json_obj = json.loads(result)
265
+ except TypeError as e:
266
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
267
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
+ break
269
+ cur_time = time.time()
270
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
+ else:
275
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
+
279
+
228
280
  def doDescribeListIPAlarmConfig(args, parsed_globals):
229
281
  g_param = parse_global_arg(parsed_globals)
230
282
 
@@ -4972,6 +5024,7 @@ ACTION_MAP = {
4972
5024
  "ModifyDDoSBlackWhiteIpList": doModifyDDoSBlackWhiteIpList,
4973
5025
  "DescribePendingRiskInfo": doDescribePendingRiskInfo,
4974
5026
  "DescribeL7RulesBySSLCertId": doDescribeL7RulesBySSLCertId,
5027
+ "DescribeBGPIPL7Rules": doDescribeBGPIPL7Rules,
4975
5028
  "DescribeListIPAlarmConfig": doDescribeListIPAlarmConfig,
4976
5029
  "DescribeDefaultAlarmThreshold": doDescribeDefaultAlarmThreshold,
4977
5030
  "DescribeDDoSConnectLimitList": doDescribeDDoSConnectLimitList,