tccli 3.0.997.1__py2.py3-none-any.whl → 3.0.999.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/cynosdb/v20190107/DescribeClusterDatabases.md +24 -0
- tccli/examples/essbasic/v20210526/ChannelDeleteSealPolicies.md +10 -7
- tccli/examples/essbasic/v20210526/ChannelDescribeOrganizationSeals.md +6 -5
- tccli/examples/essbasic/v20210526/ChannelDescribeRoles.md +669 -447
- tccli/examples/essbasic/v20210526/ChannelUpdateSealStatus.md +6 -3
- tccli/examples/faceid/v20180301/DetectAIFakeFaces.md +52 -0
- tccli/examples/monitor/v20180724/ModifyAlarmPolicyCondition.md +77 -0
- tccli/examples/sqlserver/v20180328/CreateAccount.md +1 -1
- tccli/examples/sqlserver/v20180328/ModifyAccountPrivilege.md +1 -1
- tccli/examples/sqlserver/v20180328/RestartDBInstance.md +1 -1
- tccli/examples/sqlserver/v20180328/StartInstanceXEvent.md +1 -1
- tccli/examples/waf/v20180125/DescribeCCAutoStatus.md +21 -0
- tccli/examples/waf/v20180125/DescribeCCRuleList.md +59 -1
- tccli/examples/waf/v20180125/UpsertCCAutoStatus.md +22 -0
- tccli/examples/wedata/v20210820/DescribeTableMetas.md +90 -0
- tccli/examples/weilingwith/v20230427/DescribeApplicationList.md +48 -2
- tccli/examples/weilingwith/v20230427/DescribeDeviceShadowList.md +21 -2
- tccli/examples/weilingwith/v20230427/DescribeVideoRecordStream.md +9 -1
- tccli/services/cdb/v20170320/api.json +2 -2
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +92 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +31 -22
- tccli/services/essbasic/v20210526/examples.json +12 -12
- tccli/services/faceid/faceid_client.py +53 -0
- tccli/services/faceid/v20180301/api.json +79 -0
- tccli/services/faceid/v20180301/examples.json +14 -0
- tccli/services/gaap/v20180529/api.json +10 -0
- tccli/services/live/v20180801/api.json +18 -0
- tccli/services/monitor/v20180724/api.json +11 -7
- tccli/services/monitor/v20180724/examples.json +6 -0
- tccli/services/ocr/v20181119/api.json +76 -0
- tccli/services/omics/v20221128/api.json +151 -23
- tccli/services/sqlserver/v20180328/api.json +9 -9
- tccli/services/sqlserver/v20180328/examples.json +4 -4
- tccli/services/teo/v20220901/api.json +14 -3
- tccli/services/vrs/v20200824/api.json +1 -1
- tccli/services/waf/v20180125/api.json +298 -67
- tccli/services/waf/v20180125/examples.json +18 -10
- tccli/services/waf/waf_client.py +75 -22
- tccli/services/wedata/v20210820/api.json +825 -0
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +69 -16
- tccli/services/weilingwith/v20230427/api.json +490 -40
- tccli/services/weilingwith/v20230427/examples.json +5 -5
- {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/METADATA +2 -2
- {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/RECORD +52 -47
- {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.997.1.dist-info → tccli-3.0.999.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,14 +1,17 @@
|
|
1
1
|
**Example 1: 停用印章**
|
2
2
|
|
3
|
-
|
3
|
+
1.指定AppId为yDwfwUUgygormhg1UuS2eARxjMT0mxAw
|
4
|
+
2.指定子客企业的OpenId为org_dianziqian
|
5
|
+
3.指定要操作的印章Id为yDRTZxxxxxJNR
|
6
|
+
4.指定设置印章状态为DISABLE
|
4
7
|
|
5
8
|
Input:
|
6
9
|
|
7
10
|
```
|
8
11
|
tccli essbasic ChannelUpdateSealStatus --cli-unfold-argument \
|
9
|
-
--Agent.ProxyOrganizationOpenId
|
12
|
+
--Agent.ProxyOrganizationOpenId org_dianziqian \
|
10
13
|
--Agent.ProxyOperator.OpenId 732aaef****541b89c49e0cc \
|
11
|
-
--Agent.AppId
|
14
|
+
--Agent.AppId yDwfwUUgygormhg1UuS2eARxjMT0mxAw \
|
12
15
|
--SealId yDRTZxxxxxJNR \
|
13
16
|
--Status DISABLE \
|
14
17
|
--Reason 变更原因-停用
|
@@ -0,0 +1,52 @@
|
|
1
|
+
**Example 1: 异常示例**
|
2
|
+
|
3
|
+
图片解码失败
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli faceid DetectAIFakeFaces --cli-unfold-argument \
|
9
|
+
--FaceInputType 2 \
|
10
|
+
--FaceInput AAAAHGZ0eXBtcDQyAAAAAWlzb21tcDQxbXA0MgAADXNtb292AAAAbG12aGQAAAAA2qNvttqjb7cAAB9AAACYFgABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAJ/XRyYWsAAABcdGtoZAAAAAHao2+22qNvtwAAAAEAAAAAAACYFgAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAADwAAAAtAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAmBYAAAAUAAEAAAAACXVtZGlhAAAAIG1kaGQAAAAA2qNvttqjb7cAAAJYAAALaFXEAAAAAAAxaGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAENvcmUgTWVkaWEgVmlkZW8AAAAJHG1pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQ
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"Error": {
|
18
|
+
"Code": "FailedOperation.ImageDecodeFailed",
|
19
|
+
"Message": "图片解码失败。"
|
20
|
+
},
|
21
|
+
"RequestId": "0e77ad29-ad65-4901-9efc-b49a6e0a357b"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
```
|
25
|
+
|
26
|
+
**Example 2: 示例**
|
27
|
+
|
28
|
+
疑似高风险攻击
|
29
|
+
|
30
|
+
Input:
|
31
|
+
|
32
|
+
```
|
33
|
+
tccli faceid DetectAIFakeFaces --cli-unfold-argument \
|
34
|
+
--FaceInputType 1 \
|
35
|
+
--FaceInput VBORw0KGgoAAAANSUhEUgAAAkYAAAI9CAYAAADfOLduAAABQ2lDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSCwoyGFhYGDIzSspCnJ3UoiIjFJgf87AziDBwMcgwqCQmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsgsz5I1BWZcn/xff7Y4dPvimWmY6lEAV0pqcTKQ/gPEyckFRSUMDIwJQLZyeUkBiN0CZIsUAR0FZM8AsdMh7DUgdhKEfQCsJiTIGci+AmQLJGckpgDZT4BsnSQk8XQkNtReEOD0CFBwNTI3LiTgVpJBSWpFCYh2zi+oLMpMzyhRcASGUKqCZ16yno6CkYGRMQMDKLwhqj/fAIcjoxgHQqzwKgODhTyQ8RQhlniBgWH3OgYG4Z8IMWUDBgYeoGn7/AsSixLhDmD8xlKcZmwEYXNvZ2Bgnfb//+dwBgZ2TQaGv9f///+9/f//v8sYGJhvMTAc+AYADqxgzYM88zoAAAA4ZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAKgAgAEAAAAAQAAAkagAwAEAAAAAQAAAj0AAAAAi/M5dAAAQABJREFUeAHsvWd35EiSbYsIRlCkViW6pmq6Wry71vz/fzEf3n2fpufd
|
36
|
+
```
|
37
|
+
|
38
|
+
Output:
|
39
|
+
```
|
40
|
+
{
|
41
|
+
"Response": {
|
42
|
+
"AttackRiskDetailList": [
|
43
|
+
{
|
44
|
+
"Type": "SuspectedWatermark"
|
45
|
+
}
|
46
|
+
],
|
47
|
+
"AttackRiskLevel": "High",
|
48
|
+
"RequestId": "2dd93e6f-5121-4bac-8c64-d6ad646663d2"
|
49
|
+
}
|
50
|
+
}
|
51
|
+
```
|
52
|
+
|
@@ -28,3 +28,80 @@ Output:
|
|
28
28
|
}
|
29
29
|
```
|
30
30
|
|
31
|
+
**Example 2: test**
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
Input:
|
36
|
+
|
37
|
+
```
|
38
|
+
tccli monitor ModifyAlarmPolicyCondition --cli-unfold-argument \
|
39
|
+
--Module abc \
|
40
|
+
--PolicyId abc \
|
41
|
+
--ConditionTemplateId 0 \
|
42
|
+
--Condition.IsUnionRule 0 \
|
43
|
+
--Condition.Rules.0.MetricName abc \
|
44
|
+
--Condition.Rules.0.Period 0 \
|
45
|
+
--Condition.Rules.0.Operator abc \
|
46
|
+
--Condition.Rules.0.Value abc \
|
47
|
+
--Condition.Rules.0.ContinuePeriod 0 \
|
48
|
+
--Condition.Rules.0.NoticeFrequency 0 \
|
49
|
+
--Condition.Rules.0.IsPowerNotice 0 \
|
50
|
+
--Condition.Rules.0.Filter.Type abc \
|
51
|
+
--Condition.Rules.0.Filter.Dimensions abc \
|
52
|
+
--Condition.Rules.0.Description abc \
|
53
|
+
--Condition.Rules.0.Unit abc \
|
54
|
+
--Condition.Rules.0.RuleType abc \
|
55
|
+
--Condition.Rules.0.IsAdvanced 0 \
|
56
|
+
--Condition.Rules.0.IsOpen 0 \
|
57
|
+
--Condition.Rules.0.ProductId abc \
|
58
|
+
--Condition.Rules.0.ValueMax 0 \
|
59
|
+
--Condition.Rules.0.ValueMin 0 \
|
60
|
+
--Condition.Rules.0.HierarchicalValue.Remind abc \
|
61
|
+
--Condition.Rules.0.HierarchicalValue.Warn abc \
|
62
|
+
--Condition.Rules.0.HierarchicalValue.Serious abc \
|
63
|
+
--Condition.ComplexExpression abc \
|
64
|
+
--EventCondition.Rules.0.MetricName abc \
|
65
|
+
--EventCondition.Rules.0.Period 0 \
|
66
|
+
--EventCondition.Rules.0.Operator abc \
|
67
|
+
--EventCondition.Rules.0.Value abc \
|
68
|
+
--EventCondition.Rules.0.ContinuePeriod 0 \
|
69
|
+
--EventCondition.Rules.0.NoticeFrequency 0 \
|
70
|
+
--EventCondition.Rules.0.IsPowerNotice 0 \
|
71
|
+
--EventCondition.Rules.0.Filter.Type abc \
|
72
|
+
--EventCondition.Rules.0.Filter.Dimensions abc \
|
73
|
+
--EventCondition.Rules.0.Description abc \
|
74
|
+
--EventCondition.Rules.0.Unit abc \
|
75
|
+
--EventCondition.Rules.0.RuleType abc \
|
76
|
+
--EventCondition.Rules.0.IsAdvanced 0 \
|
77
|
+
--EventCondition.Rules.0.IsOpen 0 \
|
78
|
+
--EventCondition.Rules.0.ProductId abc \
|
79
|
+
--EventCondition.Rules.0.ValueMax 0 \
|
80
|
+
--EventCondition.Rules.0.ValueMin 0 \
|
81
|
+
--EventCondition.Rules.0.HierarchicalValue.Remind abc \
|
82
|
+
--EventCondition.Rules.0.HierarchicalValue.Warn abc \
|
83
|
+
--EventCondition.Rules.0.HierarchicalValue.Serious abc \
|
84
|
+
--Filter.Type abc \
|
85
|
+
--Filter.Dimensions abc \
|
86
|
+
--GroupBy abc \
|
87
|
+
--LogAlarmReqInfo.InstanceId abc \
|
88
|
+
--LogAlarmReqInfo.Filter.0.Key abc \
|
89
|
+
--LogAlarmReqInfo.Filter.0.Operator abc \
|
90
|
+
--LogAlarmReqInfo.Filter.0.Value abc \
|
91
|
+
--LogAlarmReqInfo.AlarmMerge abc \
|
92
|
+
--LogAlarmReqInfo.AlarmMergeTime abc \
|
93
|
+
--NoticeIds abc \
|
94
|
+
--Enable 0 \
|
95
|
+
--PolicyName abc \
|
96
|
+
--EbSubject abc
|
97
|
+
```
|
98
|
+
|
99
|
+
Output:
|
100
|
+
```
|
101
|
+
{
|
102
|
+
"Response": {
|
103
|
+
"RequestId": "abc"
|
104
|
+
}
|
105
|
+
}
|
106
|
+
```
|
107
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
**Example 1: Waf 斯巴达版本查询cc自动封堵状态**
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli waf DescribeCCAutoStatus --cli-unfold-argument \
|
9
|
+
--Domain www.test.com
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Response": {
|
16
|
+
"AutoCCSwitch": 0,
|
17
|
+
"RequestId": "2a2d479f-d481-40e9-bb31-8f9e743bd529"
|
18
|
+
}
|
19
|
+
}
|
20
|
+
```
|
21
|
+
|
@@ -19,6 +19,27 @@ Output:
|
|
19
19
|
```
|
20
20
|
{
|
21
21
|
"Response": {
|
22
|
+
"Data": {
|
23
|
+
"Res": [
|
24
|
+
{
|
25
|
+
"ActionType": 22,
|
26
|
+
"Advance": 0,
|
27
|
+
"Interval": 60,
|
28
|
+
"Limit": 60,
|
29
|
+
"MatchFunc": 0,
|
30
|
+
"Name": "test1",
|
31
|
+
"Priority": 50,
|
32
|
+
"Status": 1,
|
33
|
+
"TsVersion": 1579058116920,
|
34
|
+
"Url": "///",
|
35
|
+
"ValidTime": 600,
|
36
|
+
"Options": "",
|
37
|
+
"RuleId": 1900009616,
|
38
|
+
"EventId": "111"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"TotalCount": 1
|
42
|
+
},
|
22
43
|
"RequestId": "1cc54bf4-cfeb-40cc-a823-035e52106df9"
|
23
44
|
}
|
24
45
|
}
|
@@ -43,7 +64,44 @@ Output:
|
|
43
64
|
```
|
44
65
|
{
|
45
66
|
"Response": {
|
46
|
-
"RequestId": "41b55f8b-1ed1-484c-aab7-c14c0889f78b"
|
67
|
+
"RequestId": "41b55f8b-1ed1-484c-aab7-c14c0889f78b",
|
68
|
+
"Data": {
|
69
|
+
"Res": [
|
70
|
+
{
|
71
|
+
"Name": "test",
|
72
|
+
"Status": 0,
|
73
|
+
"Advance": 0,
|
74
|
+
"Limit": 2,
|
75
|
+
"Interval": 60,
|
76
|
+
"Url": "/",
|
77
|
+
"MatchFunc": 0,
|
78
|
+
"ActionType": 22,
|
79
|
+
"Priority": 50,
|
80
|
+
"ValidTime": 600,
|
81
|
+
"TsVersion": 1609769256761,
|
82
|
+
"Options": "[]",
|
83
|
+
"RuleId": 0,
|
84
|
+
"EventId": "11"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"Name": "ddp",
|
88
|
+
"Status": 0,
|
89
|
+
"Advance": 0,
|
90
|
+
"Limit": 10,
|
91
|
+
"Interval": 10,
|
92
|
+
"Url": "/test",
|
93
|
+
"MatchFunc": 0,
|
94
|
+
"ActionType": 20,
|
95
|
+
"Priority": 1,
|
96
|
+
"ValidTime": 61,
|
97
|
+
"TsVersion": 1669794335102,
|
98
|
+
"Options": "",
|
99
|
+
"RuleId": 1900009616,
|
100
|
+
"EventId": "111"
|
101
|
+
}
|
102
|
+
],
|
103
|
+
"TotalCount": 2
|
104
|
+
}
|
47
105
|
}
|
48
106
|
}
|
49
107
|
```
|
@@ -0,0 +1,22 @@
|
|
1
|
+
**Example 1: Waf 斯巴达版本更新cc自动封堵状态**
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli waf UpsertCCAutoStatus --cli-unfold-argument \
|
9
|
+
--Domain test.com \
|
10
|
+
--Value 1
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"Data": null,
|
18
|
+
"RequestId": "a0b4e55b-5307-4378-856d-efc22475c77d"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,90 @@
|
|
1
|
+
**Example 1: 获取表元数据list**
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli wedata DescribeTableMetas --cli-unfold-argument \
|
9
|
+
--OrderFields.0.Direction xx \
|
10
|
+
--OrderFields.0.Name xx \
|
11
|
+
--PageNumber 0 \
|
12
|
+
--Filters.0.Values \
|
13
|
+
--Filters.0.Name xx \
|
14
|
+
--PageSize 0
|
15
|
+
```
|
16
|
+
|
17
|
+
Output:
|
18
|
+
```
|
19
|
+
{
|
20
|
+
"Response": {
|
21
|
+
"TableMetas": [
|
22
|
+
{
|
23
|
+
"ClusterId": "xx",
|
24
|
+
"TableHeat": {
|
25
|
+
"Heat": 0.0,
|
26
|
+
"TableId": "xx",
|
27
|
+
"DayTime": "2020-09-22T00:00:00+00:00"
|
28
|
+
},
|
29
|
+
"DatabaseId": "xx",
|
30
|
+
"HasFavorite": true,
|
31
|
+
"ProjectDisplayName": "xx",
|
32
|
+
"StorageSizeWithUnit": "xx",
|
33
|
+
"TableId": "xx",
|
34
|
+
"BizCatalogNames": [
|
35
|
+
"xx"
|
36
|
+
],
|
37
|
+
"TablePath": "xx",
|
38
|
+
"LikeCount": 0,
|
39
|
+
"TableNameCn": "xx",
|
40
|
+
"DdlModifyTime": "2020-09-22T00:00:00+00:00",
|
41
|
+
"Description": "xx",
|
42
|
+
"InstanceId": "xx",
|
43
|
+
"TableName": "xx",
|
44
|
+
"LastAccessTime": "2020-09-22T00:00:00+00:00",
|
45
|
+
"LifeCycleTime": 0,
|
46
|
+
"MetastoreId": 0,
|
47
|
+
"DataModifyTime": "2020-09-22T00:00:00+00:00",
|
48
|
+
"TablePropertyScore": {
|
49
|
+
"Timeliness": 0.0,
|
50
|
+
"Average": 0.0,
|
51
|
+
"DayTime": "2020-09-22T00:00:00+00:00",
|
52
|
+
"Normative": 0.0,
|
53
|
+
"Stability": 0.0,
|
54
|
+
"TableId": "xx",
|
55
|
+
"Safety": 0.0,
|
56
|
+
"Integrity": 0.0
|
57
|
+
},
|
58
|
+
"Partitions": "xx",
|
59
|
+
"ReplicationFactor": "xx",
|
60
|
+
"DatasourceName": "xx",
|
61
|
+
"StorageFormat": "xx",
|
62
|
+
"TechnologyType": "xx",
|
63
|
+
"ProjectId": "xx",
|
64
|
+
"BizCatalogIds": [
|
65
|
+
"xx"
|
66
|
+
],
|
67
|
+
"ColumnSeparator": "xx",
|
68
|
+
"DatasourceId": 0,
|
69
|
+
"HasAdminAuthority": true,
|
70
|
+
"TableOwnerName": "xx",
|
71
|
+
"ModifyTime": "2020-09-22T00:00:00+00:00",
|
72
|
+
"TableNameEn": "xx",
|
73
|
+
"FavoriteCount": 0,
|
74
|
+
"TableType": "xx",
|
75
|
+
"DatasourceDisplayName": "xx",
|
76
|
+
"ClusterName": "xx",
|
77
|
+
"ProjectName": "xx",
|
78
|
+
"HasLike": true,
|
79
|
+
"MetastoreType": "xx",
|
80
|
+
"DatabaseName": "xx",
|
81
|
+
"StorageSize": 0,
|
82
|
+
"CreateTime": "2020-09-22T00:00:00+00:00"
|
83
|
+
}
|
84
|
+
],
|
85
|
+
"TotalCount": 0,
|
86
|
+
"RequestId": "xx"
|
87
|
+
}
|
88
|
+
}
|
89
|
+
```
|
90
|
+
|
@@ -5,13 +5,59 @@
|
|
5
5
|
Input:
|
6
6
|
|
7
7
|
```
|
8
|
-
tccli weilingwith DescribeApplicationList --cli-unfold-argument
|
8
|
+
tccli weilingwith DescribeApplicationList --cli-unfold-argument \
|
9
|
+
--WorkspaceId 1016 \
|
10
|
+
--PageNumber 1 \
|
11
|
+
--PageSize 3 \
|
12
|
+
--ApplicationToken XggJvayJyusfUwuoJ2OlT4Z2YAVq6bVo
|
13
|
+
```
|
9
14
|
|
10
15
|
Output:
|
11
16
|
```
|
12
17
|
{
|
13
18
|
"Response": {
|
14
|
-
"RequestId": "2ebee73c-8477-48c0-ad4d-8a748b7842a3"
|
19
|
+
"RequestId": "2ebee73c-8477-48c0-ad4d-8a748b7842a3",
|
20
|
+
"Result": {
|
21
|
+
"ApplicationInfoList": [
|
22
|
+
{
|
23
|
+
"Address": "http://checkproject-a6f6718d.dtwin.tencent.com/testcodingpush",
|
24
|
+
"ApplicationId": "10041",
|
25
|
+
"ApplicationLogo": {
|
26
|
+
"FileId": "359cc1b5-88c1-4dd6-8ff4-21d0b36ac7e2",
|
27
|
+
"Url": "https://wetwin-manager-1258344699.cos.ap-guangzhou.myqcloud.com/%2F100055/0/20230717/359cc1b5-88c1-4dd6-8ff4-21d0b36ac7e2/%E8%B5%84%E4%BA%A7%E7%AE%A1%E7%90%86-%E9%BB%91.png?q-sign-algorithm=sha1&q-ak=AKIDiFWWFo67rLZXFgrlNinb8NL2SaR2M0OU&q-sign-time=1693452005%3B1693453205&q-key-time=1693452005%3B1693453205&q-header-list=host&q-url-param-list=&q-signature=6bf531d1b08d6f75eb7e153c24746a61d7be37d0"
|
28
|
+
},
|
29
|
+
"Description": "12345611111",
|
30
|
+
"EnglishName": "zctest1111",
|
31
|
+
"Name": "智能资产管理",
|
32
|
+
"Type": 0
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"Address": "http://t-ws.twins.tencent.com/proxy/29098b25-447d-437e-987a-d493d55e84f5/weiling-pubsub/test",
|
36
|
+
"ApplicationId": "10048",
|
37
|
+
"ApplicationLogo": {
|
38
|
+
"FileId": "",
|
39
|
+
"Url": ""
|
40
|
+
},
|
41
|
+
"Description": "",
|
42
|
+
"EnglishName": "MsgCenter",
|
43
|
+
"Name": "消息服务",
|
44
|
+
"Type": 0
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"Address": "http://t.twins.tencent.com/",
|
48
|
+
"ApplicationId": "10051",
|
49
|
+
"ApplicationLogo": {
|
50
|
+
"FileId": "",
|
51
|
+
"Url": ""
|
52
|
+
},
|
53
|
+
"Description": "",
|
54
|
+
"EnglishName": "IOT",
|
55
|
+
"Name": "孪生中台(物联感知中心)",
|
56
|
+
"Type": 0
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"TotalCount": "171"
|
60
|
+
}
|
15
61
|
}
|
16
62
|
}
|
17
63
|
```
|
@@ -5,13 +5,32 @@
|
|
5
5
|
Input:
|
6
6
|
|
7
7
|
```
|
8
|
-
tccli weilingwith DescribeDeviceShadowList --cli-unfold-argument
|
8
|
+
tccli weilingwith DescribeDeviceShadowList --cli-unfold-argument \
|
9
|
+
--WorkspaceId 1016 \
|
10
|
+
--WIDSet 026d1dd8-a6d7-4fb7-9a94-0df07edaaff8 \
|
11
|
+
--PageNumber 1 \
|
12
|
+
--PageSize 20 \
|
13
|
+
--ApplicationToken YzenL5LdGoxQM5gqJfCCoMDeGqUSsY78
|
14
|
+
```
|
9
15
|
|
10
16
|
Output:
|
11
17
|
```
|
12
18
|
{
|
13
19
|
"Response": {
|
14
|
-
"RequestId": "16528537-3858-42bd-973a-ae8c80bdeee3"
|
20
|
+
"RequestId": "16528537-3858-42bd-973a-ae8c80bdeee3",
|
21
|
+
"Result": {
|
22
|
+
"PageNumber": 1,
|
23
|
+
"PageSize": 20,
|
24
|
+
"Set": [
|
25
|
+
{
|
26
|
+
"DeviceShadow": "x-json:{\"desired\":{},\"reported\":{\"events\":{},\"profile\":{\"modelId\":\"w0745001\"},\"properties\":{\"Ept\":96,\"IA\":32,\"IB\":42},\"reportTs\":1693370542126}}",
|
27
|
+
"DeviceShadowUpdateTime": "2023-08-30 12:42:22",
|
28
|
+
"WID": "026d1dd8-a6d7-4fb7-9a94-0df07edaaff8"
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"TotalPage": 1,
|
32
|
+
"TotalRow": 1
|
33
|
+
}
|
15
34
|
}
|
16
35
|
}
|
17
36
|
```
|
@@ -5,7 +5,15 @@
|
|
5
5
|
Input:
|
6
6
|
|
7
7
|
```
|
8
|
-
tccli weilingwith DescribeVideoRecordStream --cli-unfold-argument
|
8
|
+
tccli weilingwith DescribeVideoRecordStream --cli-unfold-argument \
|
9
|
+
--WID c0e3f641-6ec6-444e-8ac9-3cfecc755cb0 \
|
10
|
+
--Protocol hls \
|
11
|
+
--StartTime 1693466137 \
|
12
|
+
--EndTime 1693466144 \
|
13
|
+
--PlayBackRate 1 \
|
14
|
+
--WorkspaceId 1016 \
|
15
|
+
--ApplicationToken wA9bELuI4oulQCBK876UDBxe00dNcxQW
|
16
|
+
```
|
9
17
|
|
10
18
|
Output:
|
11
19
|
```
|
@@ -13755,8 +13755,8 @@
|
|
13755
13755
|
},
|
13756
13756
|
{
|
13757
13757
|
"disabled": false,
|
13758
|
-
"document": "日志类型:
|
13759
|
-
"example": "
|
13758
|
+
"document": "日志类型:error/slowLog",
|
13759
|
+
"example": "error",
|
13760
13760
|
"member": "string",
|
13761
13761
|
"name": "LogType",
|
13762
13762
|
"required": true,
|
@@ -2721,6 +2721,58 @@ def doDescribeInstanceSlowQueries(args, parsed_globals):
|
|
2721
2721
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2722
2722
|
|
2723
2723
|
|
2724
|
+
def doDescribeClusterDatabases(args, parsed_globals):
|
2725
|
+
g_param = parse_global_arg(parsed_globals)
|
2726
|
+
|
2727
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2728
|
+
cred = credential.CVMRoleCredential()
|
2729
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2730
|
+
cred = credential.STSAssumeRoleCredential(
|
2731
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2732
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
2733
|
+
)
|
2734
|
+
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):
|
2735
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2736
|
+
else:
|
2737
|
+
cred = credential.Credential(
|
2738
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2739
|
+
)
|
2740
|
+
http_profile = HttpProfile(
|
2741
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2742
|
+
reqMethod="POST",
|
2743
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2744
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2745
|
+
)
|
2746
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2747
|
+
if g_param[OptionsDefine.Language]:
|
2748
|
+
profile.language = g_param[OptionsDefine.Language]
|
2749
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2750
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
2751
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2752
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2753
|
+
model = models.DescribeClusterDatabasesRequest()
|
2754
|
+
model.from_json_string(json.dumps(args))
|
2755
|
+
start_time = time.time()
|
2756
|
+
while True:
|
2757
|
+
rsp = client.DescribeClusterDatabases(model)
|
2758
|
+
result = rsp.to_json_string()
|
2759
|
+
try:
|
2760
|
+
json_obj = json.loads(result)
|
2761
|
+
except TypeError as e:
|
2762
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2763
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2764
|
+
break
|
2765
|
+
cur_time = time.time()
|
2766
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2767
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2768
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2769
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2770
|
+
else:
|
2771
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2772
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2773
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
|
+
|
2775
|
+
|
2724
2776
|
def doModifyClusterParam(args, parsed_globals):
|
2725
2777
|
g_param = parse_global_arg(parsed_globals)
|
2726
2778
|
|
@@ -6788,6 +6840,7 @@ ACTION_MAP = {
|
|
6788
6840
|
"ModifyParamTemplate": doModifyParamTemplate,
|
6789
6841
|
"DescribeInstanceParams": doDescribeInstanceParams,
|
6790
6842
|
"DescribeInstanceSlowQueries": doDescribeInstanceSlowQueries,
|
6843
|
+
"DescribeClusterDatabases": doDescribeClusterDatabases,
|
6791
6844
|
"ModifyClusterParam": doModifyClusterParam,
|
6792
6845
|
"CreateClusters": doCreateClusters,
|
6793
6846
|
"CreateAccounts": doCreateAccounts,
|