tccli 3.0.1049.1__py2.py3-none-any.whl → 3.0.1050.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/csip/v20221121/ModifyRiskCenterScanTask.md +41 -0
- tccli/examples/essbasic/v20210526/ChannelCreatePrepareFlow.md +2 -2
- tccli/examples/hunyuan/v20230901/ChatPro.md +76 -0
- tccli/examples/hunyuan/v20230901/ChatStd.md +37 -0
- tccli/examples/live/v20180801/DescribeLiveTranscodeTemplates.md +8 -8
- tccli/examples/redis/v20180412/CreateInstanceAccount.md +7 -6
- tccli/examples/tke/v20180525/ForwardApplicationRequestV3.md +2 -2
- tccli/examples/trocket/v20230308/CreateMQTTInsPublicEndpoint.md +26 -0
- tccli/examples/trocket/v20230308/CreateMQTTTopic.md +25 -0
- tccli/examples/trocket/v20230308/CreateMQTTUser.md +27 -0
- tccli/examples/trocket/v20230308/DeleteMQTTInsPublicEndpoint.md +22 -0
- tccli/examples/trocket/v20230308/DeleteMQTTInstance.md +22 -0
- tccli/examples/trocket/v20230308/DeleteMQTTTopic.md +23 -0
- tccli/examples/trocket/v20230308/DeleteMQTTUser.md +23 -0
- tccli/examples/trocket/v20230308/DescribeMQTTClient.md +82 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInsPublicEndpoints.md +26 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInsVPCEndpoints.md +40 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInstance.md +34 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInstanceCert.md +25 -0
- tccli/examples/trocket/v20230308/DescribeMQTTMessage.md +83 -0
- tccli/examples/trocket/v20230308/DescribeMQTTMessageList.md +54 -0
- tccli/examples/trocket/v20230308/DescribeMQTTTopic.md +27 -0
- tccli/examples/trocket/v20230308/DescribeMQTTTopicList.md +127 -0
- tccli/examples/trocket/v20230308/DescribeMQTTUserList.md +36 -0
- tccli/examples/trocket/v20230308/ModifyMQTTInsPublicEndpoint.md +26 -0
- tccli/examples/trocket/v20230308/ModifyMQTTInstance.md +24 -0
- tccli/examples/trocket/v20230308/ModifyMQTTInstanceCertBinding.md +24 -0
- tccli/examples/trocket/v20230308/ModifyMQTTTopic.md +24 -0
- tccli/examples/trocket/v20230308/ModifyMQTTUser.md +26 -0
- tccli/examples/wedata/v20210820/DeleteProjectUsers.md +36 -0
- tccli/services/csip/csip_client.py +53 -0
- tccli/services/csip/v20221121/api.json +145 -0
- tccli/services/csip/v20221121/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/hunyuan/v20230901/examples.json +18 -0
- tccli/services/live/v20180801/api.json +12 -2
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/redis/v20180412/api.json +13 -10
- tccli/services/redis/v20180412/examples.json +2 -2
- tccli/services/tke/v20180525/api.json +26 -22
- tccli/services/tke/v20180525/examples.json +1 -1
- tccli/services/trocket/trocket_client.py +1231 -65
- tccli/services/trocket/v20230308/api.json +2042 -90
- tccli/services/trocket/v20230308/examples.json +182 -0
- tccli/services/ump/v20200918/api.json +2 -2
- tccli/services/wedata/v20210820/api.json +24 -0
- tccli/services/wedata/v20210820/examples.json +14 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1049.1.dist-info → tccli-3.0.1050.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1049.1.dist-info → tccli-3.0.1050.1.dist-info}/RECORD +56 -32
- {tccli-3.0.1049.1.dist-info → tccli-3.0.1050.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1049.1.dist-info → tccli-3.0.1050.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1049.1.dist-info → tccli-3.0.1050.1.dist-info}/license_files/LICENSE +0 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket DescribeMQTTInstanceCert --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-7pnqmkrx
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Error": null,
|
16
|
+
"RequestId": null,
|
17
|
+
"Response": {
|
18
|
+
"InstanceId": null,
|
19
|
+
"RequestId": "a07a950a-43ea-4c13-a812-7ba4337d186a",
|
20
|
+
"SSLCaCertId": null,
|
21
|
+
"SSLServerCertId": null
|
22
|
+
}
|
23
|
+
}
|
24
|
+
```
|
25
|
+
|
@@ -0,0 +1,83 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket DescribeMQTTMessage --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-47ka4rdr \
|
10
|
+
--Topic topic24 \
|
11
|
+
--MsgId 0B8D67F0002D6ACBCFC0557BCEBA0001
|
12
|
+
```
|
13
|
+
|
14
|
+
Output:
|
15
|
+
```
|
16
|
+
{
|
17
|
+
"Error": null,
|
18
|
+
"RequestId": null,
|
19
|
+
"Response": {
|
20
|
+
"Body": "Hello MQTT111111",
|
21
|
+
"MessageId": "0B8D67F0002D6ACBCFC0557BCEBA0001",
|
22
|
+
"ProduceTime": "2024-01-17 14:22:57",
|
23
|
+
"ProducerAddr": "11.176.16.153:51134",
|
24
|
+
"Properties": [
|
25
|
+
{
|
26
|
+
"Key": "TRACE_ON",
|
27
|
+
"Value": "true"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"Key": "originMqttTopic",
|
31
|
+
"Value": "mqtt-47ka4rdr%topic24/1"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"Key": "INNER_MULTI_DISPATCH",
|
35
|
+
"Value": "%LMQ%mqtt-47ka4rdr%topic24%1%"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"Key": "IS_EMPTY_MSG",
|
39
|
+
"Value": "false"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"Key": "INNER_MULTI_QUEUE_OFFSET",
|
43
|
+
"Value": "0"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"Key": "retryTimes",
|
47
|
+
"Value": "0"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"Key": "extData",
|
51
|
+
"Value": "{\"qosLevel\":\"1\"}"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"Key": "MSG_REGION",
|
55
|
+
"Value": "cd"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"Key": "qosLevel",
|
59
|
+
"Value": "1"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"Key": "UNIQ_KEY",
|
63
|
+
"Value": "0B8D67F0002D6ACBCFC0557BCEBA0001"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"Key": "CLUSTER",
|
67
|
+
"Value": "rmqbk-mqtt"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"Key": "TAGS",
|
71
|
+
"Value": "MQTT_COMMON"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"Key": "__CLIENT_HOST",
|
75
|
+
"Value": "11.176.16.153:51134"
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"RequestId": "e658afc8-e2c0-463e-bf90-3103d881d59f",
|
79
|
+
"ShowTopicName": "topic24"
|
80
|
+
}
|
81
|
+
}
|
82
|
+
```
|
83
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket DescribeMQTTMessageList --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-47ka4rdr \
|
10
|
+
--Topic topic24 \
|
11
|
+
--Offset 0 \
|
12
|
+
--Limit 20 \
|
13
|
+
--StartTime 1705373755266 \
|
14
|
+
--EndTime 1705632955266 \
|
15
|
+
--TaskRequestId
|
16
|
+
```
|
17
|
+
|
18
|
+
Output:
|
19
|
+
```
|
20
|
+
{
|
21
|
+
"Error": null,
|
22
|
+
"RequestId": null,
|
23
|
+
"Response": {
|
24
|
+
"Data": [
|
25
|
+
{
|
26
|
+
"DeadLetterResendSuccessTimes": null,
|
27
|
+
"DeadLetterResendTimes": null,
|
28
|
+
"Keys": null,
|
29
|
+
"MsgId": "0B8D67F0002D6ACBCFC0557BCEBA0001",
|
30
|
+
"ProduceTime": "2024-01-17 14:22:57",
|
31
|
+
"ProducerAddr": "11.176.16.153:51134",
|
32
|
+
"Qos": "1",
|
33
|
+
"SubTopic": "/1/",
|
34
|
+
"Tags": "MQTT_COMMON"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"DeadLetterResendSuccessTimes": null,
|
38
|
+
"DeadLetterResendTimes": null,
|
39
|
+
"Keys": null,
|
40
|
+
"MsgId": "0B8D67F0002D6ACBCFC0557B1A980000",
|
41
|
+
"ProduceTime": "2024-01-17 14:22:11",
|
42
|
+
"ProducerAddr": "11.176.16.153:44044",
|
43
|
+
"Qos": "0",
|
44
|
+
"SubTopic": "",
|
45
|
+
"Tags": "MQTT_COMMON"
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"RequestId": "116cd3f5-668f-42fe-8572-fcd5d3a31377",
|
49
|
+
"TaskRequestId": "e3d14393-4701-4f62-8a7d-b52bd59b5ace",
|
50
|
+
"TotalCount": 2
|
51
|
+
}
|
52
|
+
}
|
53
|
+
```
|
54
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket DescribeMQTTTopic --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-7pnqmkrx \
|
10
|
+
--Topic topic1
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Error": null,
|
17
|
+
"RequestId": null,
|
18
|
+
"Response": {
|
19
|
+
"CreatedTime": 1705567642,
|
20
|
+
"InstanceId": "mqtt-7pnqmkrx",
|
21
|
+
"Remark": "",
|
22
|
+
"RequestId": "acf7faf2-b2a9-431c-96b9-f589262da8f7",
|
23
|
+
"Topic": "topic1"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
```
|
27
|
+
|
@@ -0,0 +1,127 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket DescribeMQTTTopicList --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-47ka4rdr \
|
10
|
+
--Offset 0 \
|
11
|
+
--Limit 20
|
12
|
+
```
|
13
|
+
|
14
|
+
Output:
|
15
|
+
```
|
16
|
+
{
|
17
|
+
"Error": null,
|
18
|
+
"RequestId": null,
|
19
|
+
"Response": {
|
20
|
+
"Data": [
|
21
|
+
{
|
22
|
+
"InstanceId": "mqtt-47ka4rdr",
|
23
|
+
"Remark": "",
|
24
|
+
"Topic": "1111"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"InstanceId": "mqtt-47ka4rdr",
|
28
|
+
"Remark": "",
|
29
|
+
"Topic": "topic24"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"InstanceId": "mqtt-47ka4rdr",
|
33
|
+
"Remark": "",
|
34
|
+
"Topic": "topic23"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"InstanceId": "mqtt-47ka4rdr",
|
38
|
+
"Remark": "",
|
39
|
+
"Topic": "topic22"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"InstanceId": "mqtt-47ka4rdr",
|
43
|
+
"Remark": "",
|
44
|
+
"Topic": "topic21"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"InstanceId": "mqtt-47ka4rdr",
|
48
|
+
"Remark": "",
|
49
|
+
"Topic": "topic20"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"InstanceId": "mqtt-47ka4rdr",
|
53
|
+
"Remark": "",
|
54
|
+
"Topic": "topic19"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"InstanceId": "mqtt-47ka4rdr",
|
58
|
+
"Remark": "",
|
59
|
+
"Topic": "topic18"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"InstanceId": "mqtt-47ka4rdr",
|
63
|
+
"Remark": "",
|
64
|
+
"Topic": "topic17"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"InstanceId": "mqtt-47ka4rdr",
|
68
|
+
"Remark": "",
|
69
|
+
"Topic": "topic16"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"InstanceId": "mqtt-47ka4rdr",
|
73
|
+
"Remark": "",
|
74
|
+
"Topic": "topic15"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"InstanceId": "mqtt-47ka4rdr",
|
78
|
+
"Remark": "",
|
79
|
+
"Topic": "topic14"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"InstanceId": "mqtt-47ka4rdr",
|
83
|
+
"Remark": "",
|
84
|
+
"Topic": "topic13"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"InstanceId": "mqtt-47ka4rdr",
|
88
|
+
"Remark": "",
|
89
|
+
"Topic": "topic12"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"InstanceId": "mqtt-47ka4rdr",
|
93
|
+
"Remark": "",
|
94
|
+
"Topic": "topic11"
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"InstanceId": "mqtt-47ka4rdr",
|
98
|
+
"Remark": "",
|
99
|
+
"Topic": "topic10"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"InstanceId": "mqtt-47ka4rdr",
|
103
|
+
"Remark": "",
|
104
|
+
"Topic": "topic9"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"InstanceId": "mqtt-47ka4rdr",
|
108
|
+
"Remark": "",
|
109
|
+
"Topic": "topic8"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"InstanceId": "mqtt-47ka4rdr",
|
113
|
+
"Remark": "",
|
114
|
+
"Topic": "topic7"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"InstanceId": "mqtt-47ka4rdr",
|
118
|
+
"Remark": "",
|
119
|
+
"Topic": "topic6"
|
120
|
+
}
|
121
|
+
],
|
122
|
+
"RequestId": "d9042e88-c70e-4158-958c-8bb57d6c809f",
|
123
|
+
"TotalCount": 25
|
124
|
+
}
|
125
|
+
}
|
126
|
+
```
|
127
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket DescribeMQTTUserList --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-47ka4rdr \
|
10
|
+
--Offset 0 \
|
11
|
+
--Limit 10
|
12
|
+
```
|
13
|
+
|
14
|
+
Output:
|
15
|
+
```
|
16
|
+
{
|
17
|
+
"Error": null,
|
18
|
+
"RequestId": null,
|
19
|
+
"Response": {
|
20
|
+
"Data": [
|
21
|
+
{
|
22
|
+
"CreatedTime": 1705392159000,
|
23
|
+
"ModifiedTime": 1705392159000,
|
24
|
+
"Password": "sunjianxiong",
|
25
|
+
"PermRead": true,
|
26
|
+
"PermWrite": true,
|
27
|
+
"Remark": "",
|
28
|
+
"Username": "sunjianxiong"
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"RequestId": "8e86117c-a56c-4598-9e1f-4a039eed6e3a",
|
32
|
+
"TotalCount": 1
|
33
|
+
}
|
34
|
+
}
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket ModifyMQTTInsPublicEndpoint --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-47ka4rdr \
|
10
|
+
--Bandwidth 2 \
|
11
|
+
--Rules.0.IpRule 2.2.2.2 \
|
12
|
+
--Rules.0.Allow True \
|
13
|
+
--Rules.0.Remark 555
|
14
|
+
```
|
15
|
+
|
16
|
+
Output:
|
17
|
+
```
|
18
|
+
{
|
19
|
+
"Error": null,
|
20
|
+
"RequestId": null,
|
21
|
+
"Response": {
|
22
|
+
"RequestId": "02eb3529-3440-44e9-b2c8-1e65c7017c09"
|
23
|
+
}
|
24
|
+
}
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket ModifyMQTTInstance --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-47ka4rdr \
|
10
|
+
--Name sjx0119 \
|
11
|
+
--Remark 555
|
12
|
+
```
|
13
|
+
|
14
|
+
Output:
|
15
|
+
```
|
16
|
+
{
|
17
|
+
"Error": null,
|
18
|
+
"RequestId": null,
|
19
|
+
"Response": {
|
20
|
+
"RequestId": "9955522b-ac27-46c1-8a16-3ed6f98f9c5c"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket ModifyMQTTInstanceCertBinding --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-rvb5xxrn \
|
10
|
+
--SSLServerCertId \
|
11
|
+
--SSLCaCertId
|
12
|
+
```
|
13
|
+
|
14
|
+
Output:
|
15
|
+
```
|
16
|
+
{
|
17
|
+
"Error": null,
|
18
|
+
"RequestId": null,
|
19
|
+
"Response": {
|
20
|
+
"RequestId": "1d2d027f-1701-4bc6-8a2a-cede24d9c9ed"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket ModifyMQTTTopic --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-rvb5xxrn \
|
10
|
+
--Topic 222 \
|
11
|
+
--Remark 444
|
12
|
+
```
|
13
|
+
|
14
|
+
Output:
|
15
|
+
```
|
16
|
+
{
|
17
|
+
"Error": null,
|
18
|
+
"RequestId": null,
|
19
|
+
"Response": {
|
20
|
+
"RequestId": "29a02c3b-66ee-4442-acb7-3545b8e044b7"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
**Example 1: 示例**
|
2
|
+
|
3
|
+
示例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli trocket ModifyMQTTUser --cli-unfold-argument \
|
9
|
+
--InstanceId mqtt-7pnqmkrx \
|
10
|
+
--Username 222 \
|
11
|
+
--Remark 3333 \
|
12
|
+
--PermRead True \
|
13
|
+
--PermWrite True
|
14
|
+
```
|
15
|
+
|
16
|
+
Output:
|
17
|
+
```
|
18
|
+
{
|
19
|
+
"Error": null,
|
20
|
+
"RequestId": null,
|
21
|
+
"Response": {
|
22
|
+
"RequestId": "85d3aeee-ba25-47cc-8c17-7ad837b877ba"
|
23
|
+
}
|
24
|
+
}
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
**Example 1: 删除项目用户**
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli wedata DeleteProjectUsers --cli-unfold-argument ```
|
9
|
+
|
10
|
+
Output:
|
11
|
+
```
|
12
|
+
{
|
13
|
+
"Response": {
|
14
|
+
"RequestId": "xx"
|
15
|
+
}
|
16
|
+
}
|
17
|
+
```
|
18
|
+
|
19
|
+
**Example 2: 成功示例**
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
Input:
|
24
|
+
|
25
|
+
```
|
26
|
+
tccli wedata DeleteProjectUsers --cli-unfold-argument ```
|
27
|
+
|
28
|
+
Output:
|
29
|
+
```
|
30
|
+
{
|
31
|
+
"Response": {
|
32
|
+
"RequestId": "eb621c29-6ee3-49d2-a4e0-cb84b46e2590"
|
33
|
+
}
|
34
|
+
}
|
35
|
+
```
|
36
|
+
|
@@ -901,6 +901,58 @@ def doDescribeCVMAssets(args, parsed_globals):
|
|
901
901
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
902
|
|
903
903
|
|
904
|
+
def doModifyRiskCenterScanTask(args, parsed_globals):
|
905
|
+
g_param = parse_global_arg(parsed_globals)
|
906
|
+
|
907
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
908
|
+
cred = credential.CVMRoleCredential()
|
909
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
910
|
+
cred = credential.STSAssumeRoleCredential(
|
911
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
912
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
913
|
+
)
|
914
|
+
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):
|
915
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
916
|
+
else:
|
917
|
+
cred = credential.Credential(
|
918
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
919
|
+
)
|
920
|
+
http_profile = HttpProfile(
|
921
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
922
|
+
reqMethod="POST",
|
923
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
924
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
925
|
+
)
|
926
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
927
|
+
if g_param[OptionsDefine.Language]:
|
928
|
+
profile.language = g_param[OptionsDefine.Language]
|
929
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
930
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
931
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
932
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
933
|
+
model = models.ModifyRiskCenterScanTaskRequest()
|
934
|
+
model.from_json_string(json.dumps(args))
|
935
|
+
start_time = time.time()
|
936
|
+
while True:
|
937
|
+
rsp = client.ModifyRiskCenterScanTask(model)
|
938
|
+
result = rsp.to_json_string()
|
939
|
+
try:
|
940
|
+
json_obj = json.loads(result)
|
941
|
+
except TypeError as e:
|
942
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
943
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
944
|
+
break
|
945
|
+
cur_time = time.time()
|
946
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
947
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
948
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
949
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
950
|
+
else:
|
951
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
952
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
953
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
|
+
|
955
|
+
|
904
956
|
def doDescribeRiskCenterWebsiteRiskList(args, parsed_globals):
|
905
957
|
g_param = parse_global_arg(parsed_globals)
|
906
958
|
|
@@ -1865,6 +1917,7 @@ ACTION_MAP = {
|
|
1865
1917
|
"DescribeVpcAssets": doDescribeVpcAssets,
|
1866
1918
|
"DescribeRiskCenterServerRiskList": doDescribeRiskCenterServerRiskList,
|
1867
1919
|
"DescribeCVMAssets": doDescribeCVMAssets,
|
1920
|
+
"ModifyRiskCenterScanTask": doModifyRiskCenterScanTask,
|
1868
1921
|
"DescribeRiskCenterWebsiteRiskList": doDescribeRiskCenterWebsiteRiskList,
|
1869
1922
|
"StopRiskCenterTask": doStopRiskCenterTask,
|
1870
1923
|
"CreateRiskCenterScanTask": doCreateRiskCenterScanTask,
|