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.
- tccli/__init__.py +1 -1
- tccli/examples/antiddos/v20200309/DescribeBGPIPL7Rules.md +87 -0
- tccli/examples/ckafka/v20190819/DescribeGroup.md +6 -5
- tccli/examples/csip/v20221121/ModifyOrganizationAccountStatus.md +21 -0
- tccli/examples/cynosdb/v20190107/AddInstances.md +2 -2
- tccli/examples/cynosdb/v20190107/DescribeClusterInstanceGrps.md +235 -79
- tccli/examples/cynosdb/v20190107/DescribeClusterParams.md +3 -1
- tccli/examples/cynosdb/v20190107/DescribeClusterPasswordComplexity.md +18 -6
- tccli/examples/cynosdb/v20190107/DescribeInstances.md +63 -55
- tccli/examples/cynosdb/v20190107/DescribeParamTemplateDetail.md +3 -1
- tccli/examples/cynosdb/v20190107/ModifyVipVport.md +3 -3
- tccli/examples/essbasic/v20210526/ChannelCreatePrepareFlow.md +2 -2
- tccli/examples/oceanus/v20190422/CopyJobs.md +11 -20
- tccli/examples/teo/v20220901/DescribeDefaultCertificates.md +2 -1
- tccli/examples/trocket/v20230308/CreateMQTTInstance.md +31 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +176 -0
- tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +94 -0
- tccli/services/antiddos/antiddos_client.py +53 -0
- tccli/services/antiddos/v20200309/api.json +439 -0
- tccli/services/antiddos/v20200309/examples.json +8 -0
- tccli/services/cfg/v20210820/api.json +21 -10
- tccli/services/ckafka/v20190819/api.json +6 -5
- tccli/services/ckafka/v20190819/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +48 -19
- tccli/services/csip/csip_client.py +53 -0
- tccli/services/csip/v20221121/api.json +43 -0
- tccli/services/csip/v20221121/examples.json +8 -0
- tccli/services/cynosdb/v20190107/api.json +415 -87
- tccli/services/cynosdb/v20190107/examples.json +12 -12
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/oceanus/v20190422/api.json +32 -3
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/privatedns/v20201028/api.json +29 -19
- tccli/services/ssl/ssl_client.py +0 -53
- tccli/services/ssl/v20191205/api.json +0 -99
- tccli/services/ssl/v20191205/examples.json +0 -8
- tccli/services/teo/v20220901/api.json +14 -3
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/trocket/trocket_client.py +171 -12
- tccli/services/trocket/v20230308/api.json +492 -0
- tccli/services/trocket/v20230308/examples.json +30 -0
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/RECORD +47 -42
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/entry_points.txt +0 -0
- {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
|
12
|
-
--OrderByType
|
13
|
-
--Filters.0.Names
|
14
|
-
--Filters.0.Values
|
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
|
17
|
-
--Filters.0.Operator
|
18
|
-
--DbType
|
19
|
-
--Status
|
20
|
-
--InstanceIds
|
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": "
|
30
|
+
"Uin": "1111111",
|
31
31
|
"AppId": 0,
|
32
|
-
"ClusterId": "
|
32
|
+
"ClusterId": "cynosdbmysql-asd45qwe",
|
33
33
|
"ClusterName": "abc",
|
34
|
-
"InstanceId": "
|
34
|
+
"InstanceId": "cynosdbmysql-ins-asd45qwe",
|
35
35
|
"InstanceName": "abc",
|
36
36
|
"ProjectId": 0,
|
37
|
-
"Region": "
|
38
|
-
"Zone": "
|
39
|
-
"Status": "
|
40
|
-
"StatusDesc": "
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
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": "
|
51
|
-
"SubnetId": "
|
52
|
-
"Vip": "
|
53
|
-
"Vport":
|
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": "
|
60
|
-
"WanIP": "
|
60
|
+
"WanDomain": "",
|
61
|
+
"WanIP": "",
|
61
62
|
"WanPort": 0,
|
62
|
-
"WanStatus": "
|
63
|
-
"DestroyTime": "
|
64
|
-
"CynosVersion": "
|
65
|
-
"ProcessingTask": "
|
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": "
|
70
|
-
"StorageId": "
|
70
|
+
"ServerlessStatus": "",
|
71
|
+
"StorageId": "",
|
71
72
|
"StoragePayMode": 0,
|
72
|
-
"PhysicalZone": "
|
73
|
-
"BusinessType": "
|
73
|
+
"PhysicalZone": "ap-guangzhou-3",
|
74
|
+
"BusinessType": "",
|
74
75
|
"Tasks": [
|
75
76
|
{
|
76
|
-
"TaskId":
|
77
|
-
"TaskType": "
|
78
|
-
"TaskStatus": "
|
79
|
-
"ObjectId": "
|
80
|
-
"ObjectType": "
|
77
|
+
"TaskId": 111110,
|
78
|
+
"TaskType": "taskCreateClusters",
|
79
|
+
"TaskStatus": "running",
|
80
|
+
"ObjectId": "cynosdbmysql-asd45qwe",
|
81
|
+
"ObjectType": "cluster"
|
81
82
|
}
|
82
83
|
],
|
83
|
-
"IsFreeze": "
|
84
|
+
"IsFreeze": "no",
|
84
85
|
"ResourceTags": [
|
85
86
|
{
|
86
87
|
"TagKey": "abc",
|
87
88
|
"TagValue": "abc"
|
88
89
|
}
|
89
90
|
],
|
90
|
-
"MasterZone": "
|
91
|
+
"MasterZone": "ap-guangzhou-3",
|
91
92
|
"SlaveZones": [
|
92
|
-
"
|
93
|
+
"ap-guangzhou-4"
|
93
94
|
],
|
94
95
|
"InstanceNetInfo": [
|
95
96
|
{
|
96
|
-
"InstanceGroupType": "
|
97
|
-
"InstanceGroupId": "
|
98
|
-
"VpcId": "
|
99
|
-
"SubnetId": "
|
97
|
+
"InstanceGroupType": "ha",
|
98
|
+
"InstanceGroupId": "cynosdbmysql-grp-asd45qwe",
|
99
|
+
"VpcId": "vpc-12as45",
|
100
|
+
"SubnetId": "subnet-12as45",
|
100
101
|
"NetType": 0,
|
101
|
-
"Vip": "
|
102
|
-
"Vport":
|
103
|
-
"WanDomain": "
|
104
|
-
"WanIP": "
|
102
|
+
"Vip": "192.0.0.0",
|
103
|
+
"Vport": 3306,
|
104
|
+
"WanDomain": "",
|
105
|
+
"WanIP": "",
|
105
106
|
"WanPort": 0,
|
106
|
-
"WanStatus": "
|
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"
|
@@ -6,8 +6,8 @@ Input:
|
|
6
6
|
|
7
7
|
```
|
8
8
|
tccli cynosdb ModifyVipVport --cli-unfold-argument \
|
9
|
-
--ClusterId
|
10
|
-
--InstanceGrpId
|
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
|
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
|
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": "
|
25
|
-
"JobName": "
|
26
|
-
"TargetJobName": "",
|
27
|
-
"TargetJobId": "",
|
28
|
-
"Message": "
|
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": "
|
32
|
+
"ClusterName": "abc",
|
33
|
+
"ClusterId": "abc",
|
34
|
+
"JobType": 0
|
42
35
|
}
|
43
36
|
],
|
44
|
-
"
|
45
|
-
"RequestId": "123456a",
|
46
|
-
"SuccessCount": 1
|
37
|
+
"RequestId": "abc"
|
47
38
|
}
|
48
39
|
}
|
49
40
|
```
|
@@ -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,
|