tccli 3.0.1040.1__py2.py3-none-any.whl → 3.0.1042.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/cloudaudit/v20190319/DeleteAuditTrack.md +1 -1
- tccli/examples/cloudaudit/v20190319/DescribeAuditTrack.md +1 -1
- tccli/examples/cloudaudit/v20190319/DescribeAuditTracks.md +1 -1
- tccli/examples/cloudaudit/v20190319/DescribeEvents.md +2 -2
- tccli/examples/cloudaudit/v20190319/ModifyAuditTrack.md +1 -1
- tccli/examples/dts/v20211206/ConfigureSubscribeJob.md +36 -0
- tccli/examples/dts/v20211206/CreateConsumerGroup.md +24 -0
- tccli/examples/dts/v20211206/CreateSubscribe.md +28 -0
- tccli/examples/dts/v20211206/CreateSubscribeCheckJob.md +20 -0
- tccli/examples/dts/v20211206/DeleteConsumerGroup.md +22 -0
- tccli/examples/dts/v20211206/DescribeConsumerGroups.md +83 -0
- tccli/examples/dts/v20211206/DescribeOffsetByTime.md +39 -0
- tccli/examples/dts/v20211206/DescribeSubscribeCheckJob.md +78 -0
- tccli/examples/dts/v20211206/DescribeSubscribeDetail.md +67 -0
- tccli/examples/dts/v20211206/DescribeSubscribeJobs.md +52 -0
- tccli/examples/dts/v20211206/DescribeSubscribeReturnable.md +22 -0
- tccli/examples/dts/v20211206/DestroyIsolatedSubscribe.md +20 -0
- tccli/examples/dts/v20211206/IsolateSubscribe.md +20 -0
- tccli/examples/dts/v20211206/ModifyConsumerGroupDescription.md +23 -0
- tccli/examples/dts/v20211206/ModifyConsumerGroupPassword.md +24 -0
- tccli/examples/dts/v20211206/ModifySubscribeAutoRenewFlag.md +21 -0
- tccli/examples/dts/v20211206/ModifySubscribeName.md +21 -0
- tccli/examples/dts/v20211206/ModifySubscribeObjects.md +21 -0
- tccli/examples/dts/v20211206/ResetConsumerGroupOffset.md +25 -0
- tccli/examples/dts/v20211206/ResetSubscribe.md +20 -0
- tccli/examples/dts/v20211206/ResumeSubscribe.md +20 -0
- tccli/examples/dts/v20211206/StartSubscribe.md +20 -0
- tccli/examples/essbasic/v20210526/ChannelCreatePrepareFlow.md +56 -0
- tccli/examples/ocr/v20181119/VerifyOfdVatInvoiceOCR.md +6 -1
- tccli/services/car/v20220110/api.json +2 -2
- tccli/services/clb/v20180317/api.json +3 -1
- tccli/services/cloudaudit/v20190319/api.json +61 -27
- tccli/services/cloudaudit/v20190319/examples.json +6 -6
- tccli/services/cvm/v20170312/api.json +2 -2
- tccli/services/cynosdb/v20190107/api.json +118 -0
- tccli/services/dnspod/v20210323/api.json +10 -0
- tccli/services/dts/dts_client.py +1008 -160
- tccli/services/dts/v20211206/api.json +4354 -1796
- tccli/services/dts/v20211206/examples.json +176 -0
- tccli/services/ess/v20201111/api.json +12 -12
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/essbasic/v20210526/examples.json +1 -1
- tccli/services/monitor/v20180724/api.json +13 -8
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/rum/rum_client.py +12 -171
- tccli/services/rum/v20210622/api.json +0 -170
- tccli/services/rum/v20210622/examples.json +0 -24
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +1 -0
- {tccli-3.0.1040.1.dist-info → tccli-3.0.1042.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1040.1.dist-info → tccli-3.0.1042.1.dist-info}/RECORD +56 -34
- {tccli-3.0.1040.1.dist-info → tccli-3.0.1042.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1040.1.dist-info → tccli-3.0.1042.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1040.1.dist-info → tccli-3.0.1042.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1042.1'
|
@@ -0,0 +1,36 @@
|
|
1
|
+
**Example 1: 配置订阅**
|
2
|
+
|
3
|
+
配置订阅一个cdb整实例的任务,其中db1.table1的数据根据id列值投递到不同的kafka分区,其他的数据根据表名投递
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts ConfigureSubscribeJob --cli-unfold-argument \
|
9
|
+
--SubscribeMode all \
|
10
|
+
--SubscribeId subs-5ft0e2nrc0 \
|
11
|
+
--KafkaConfig.DistributeRules.0.DbPattern db1 \
|
12
|
+
--KafkaConfig.DistributeRules.0.RuleType cols \
|
13
|
+
--KafkaConfig.DistributeRules.0.TablePattern table1 \
|
14
|
+
--KafkaConfig.DistributeRules.0.Columns id \
|
15
|
+
--KafkaConfig.NumberOfPartitions 8 \
|
16
|
+
--KafkaConfig.DefaultRuleType table \
|
17
|
+
--AccessType cdb \
|
18
|
+
--Protocol json \
|
19
|
+
--Endpoints.0.InstanceId cdb-kdxona7h \
|
20
|
+
--Endpoints.0.DatabaseRegion ap-guangzhou \
|
21
|
+
--Endpoints.0.EncryptConn Encrypted \
|
22
|
+
--Endpoints.0.User root \
|
23
|
+
--Endpoints.0.Password ****** \
|
24
|
+
--ExtraAttr.0.Value true \
|
25
|
+
--ExtraAttr.0.Key ProcessXA
|
26
|
+
```
|
27
|
+
|
28
|
+
Output:
|
29
|
+
```
|
30
|
+
{
|
31
|
+
"Response": {
|
32
|
+
"RequestId": "abc"
|
33
|
+
}
|
34
|
+
}
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
**Example 1: 创建消费组**
|
2
|
+
|
3
|
+
创建消费组
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts CreateConsumerGroup --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw \
|
10
|
+
--ConsumerGroupName test \
|
11
|
+
--AccountName test \
|
12
|
+
--Password 123 \
|
13
|
+
--Description this is a test account
|
14
|
+
```
|
15
|
+
|
16
|
+
Output:
|
17
|
+
```
|
18
|
+
{
|
19
|
+
"Response": {
|
20
|
+
"RequestId": "20461920-b18e-11ec-ae1a-cfe224f4f21f"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
**Example 1: 购买订阅任务**
|
2
|
+
|
3
|
+
购买1个按量计费的mysql订阅任务
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts CreateSubscribe --cli-unfold-argument \
|
9
|
+
--Product mysql \
|
10
|
+
--PayType 1 \
|
11
|
+
--Count 1 \
|
12
|
+
--Tags.0.TagKey abc \
|
13
|
+
--Tags.0.TagValue abc \
|
14
|
+
--Name test-subscribe
|
15
|
+
```
|
16
|
+
|
17
|
+
Output:
|
18
|
+
```
|
19
|
+
{
|
20
|
+
"Response": {
|
21
|
+
"SubscribeIds": [
|
22
|
+
"subs-b6x64o31tm"
|
23
|
+
],
|
24
|
+
"RequestId": "xxxxxxxxxxxxxxx"
|
25
|
+
}
|
26
|
+
}
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
**Example 1: 启动一个订阅任务的校验**
|
2
|
+
|
3
|
+
启动一个订阅任务的校验。任务必须已经成功掉用ConfigureSubscribe接口配置了所有的必要信息才能启动校验。
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts CreateSubscribeCheckJob --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-l4d3a7izai
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Response": {
|
16
|
+
"RequestId": "77501ba0-f097-11ed-ac7d-b1056735c0c8"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
**Example 1: 删除消费组**
|
2
|
+
|
3
|
+
删除消费组
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts DeleteConsumerGroup --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw \
|
10
|
+
--ConsumerGroupName account-subs-9jyki7hniw-test \
|
11
|
+
--AccountName consumer-grp-subs-9jyki7hniw-test
|
12
|
+
```
|
13
|
+
|
14
|
+
Output:
|
15
|
+
```
|
16
|
+
{
|
17
|
+
"Response": {
|
18
|
+
"RequestId": "bef6a6f0-f3b1-11ed-b987-7301347aa36f"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,83 @@
|
|
1
|
+
**Example 1: 获取数据订阅的消费组**
|
2
|
+
|
3
|
+
获取数据订阅的消费组
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts DescribeConsumerGroups --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Response": {
|
16
|
+
"Items": [
|
17
|
+
{
|
18
|
+
"Account": "account-subs-47damshnra-3",
|
19
|
+
"ConsumerGroupLag": 464948,
|
20
|
+
"ConsumerGroupName": "consumer-grp-subs-47damshnra-3",
|
21
|
+
"ConsumerGroupOffset": -1,
|
22
|
+
"ConsumerGroupState": "Dead",
|
23
|
+
"CreatedAt": "2022-03-25 17:31:31",
|
24
|
+
"Description": "sdfjo",
|
25
|
+
"Latency": 528268,
|
26
|
+
"PartitionAssignment": [],
|
27
|
+
"StateOfPartition": [
|
28
|
+
{
|
29
|
+
"ConsumerGroupLag": 464948,
|
30
|
+
"ConsumerGroupOffset": -1,
|
31
|
+
"Latency": 528268,
|
32
|
+
"PartitionNo": 0
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"UpdatedAt": "2022-03-25 17:31:31"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"Account": "account-subs-47damshnra-2",
|
39
|
+
"ConsumerGroupLag": 464948,
|
40
|
+
"ConsumerGroupName": "consumer-grp-subs-47damshnra-2",
|
41
|
+
"ConsumerGroupOffset": -1,
|
42
|
+
"ConsumerGroupState": "Dead",
|
43
|
+
"CreatedAt": "2022-03-22 17:34:31",
|
44
|
+
"Description": "sdfjo",
|
45
|
+
"Latency": 528268,
|
46
|
+
"PartitionAssignment": [],
|
47
|
+
"StateOfPartition": [
|
48
|
+
{
|
49
|
+
"ConsumerGroupLag": 464948,
|
50
|
+
"ConsumerGroupOffset": -1,
|
51
|
+
"Latency": 528268,
|
52
|
+
"PartitionNo": 0
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"UpdatedAt": "2022-03-22 17:34:31"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"Account": "account-subs-47damshnra-1",
|
59
|
+
"ConsumerGroupLag": 464948,
|
60
|
+
"ConsumerGroupName": "consumer-grp-subs-47damshnra-1",
|
61
|
+
"ConsumerGroupOffset": -1,
|
62
|
+
"ConsumerGroupState": "Dead",
|
63
|
+
"CreatedAt": "2022-03-04 15:14:18",
|
64
|
+
"Description": "sdfjo",
|
65
|
+
"Latency": 528268,
|
66
|
+
"PartitionAssignment": [],
|
67
|
+
"StateOfPartition": [
|
68
|
+
{
|
69
|
+
"ConsumerGroupLag": 464948,
|
70
|
+
"ConsumerGroupOffset": -1,
|
71
|
+
"Latency": 528268,
|
72
|
+
"PartitionNo": 0
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"UpdatedAt": "2022-03-04 15:14:18"
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"RequestId": "68c04ba0-b0d8-11ec-98f5-11f9ac4a2e37",
|
79
|
+
"TotalCount": 3
|
80
|
+
}
|
81
|
+
}
|
82
|
+
```
|
83
|
+
|
@@ -0,0 +1,39 @@
|
|
1
|
+
**Example 1: 根据时间查询kafka中的checkpoint消息**
|
2
|
+
|
3
|
+
查询KafkaTopic中指定时间前最近的checkpoint及其offset
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts DescribeOffsetByTime --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw \
|
10
|
+
--Time 2023-05-15 16:31:30
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"Items": [
|
18
|
+
{
|
19
|
+
"Offset": 62856,
|
20
|
+
"PartitionNo": 0
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"Offset": 62842,
|
24
|
+
"PartitionNo": 1
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"Offset": 62842,
|
28
|
+
"PartitionNo": 2
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"Offset": 62842,
|
32
|
+
"PartitionNo": 3
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"RequestId": "087e2780-f3bc-11ed-8dff-ff5f3734b02b"
|
36
|
+
}
|
37
|
+
}
|
38
|
+
```
|
39
|
+
|
@@ -0,0 +1,78 @@
|
|
1
|
+
**Example 1: 查询订阅校验任务结果**
|
2
|
+
|
3
|
+
查询订阅校验任务结果
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts DescribeSubscribeCheckJob --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-l4d3a7izai
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Response": {
|
16
|
+
"Message": "success",
|
17
|
+
"Progress": 100,
|
18
|
+
"RequestId": "b048a800-f2fe-11ed-a211-5df19a912eab",
|
19
|
+
"Status": "success",
|
20
|
+
"StepAll": 5,
|
21
|
+
"StepNow": 5,
|
22
|
+
"Steps": [
|
23
|
+
{
|
24
|
+
"Errors": [],
|
25
|
+
"Percent": 100,
|
26
|
+
"Status": "finished",
|
27
|
+
"StepId": "ConnectDBCheck",
|
28
|
+
"StepName": "连接DB检查",
|
29
|
+
"StepNo": 1,
|
30
|
+
"Warnings": []
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"Errors": [],
|
34
|
+
"Percent": 100,
|
35
|
+
"Status": "finished",
|
36
|
+
"StepId": "OptimizeCheck",
|
37
|
+
"StepName": "周边检查",
|
38
|
+
"StepNo": 2,
|
39
|
+
"Warnings": []
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"Errors": [],
|
43
|
+
"Percent": 100,
|
44
|
+
"Status": "finished",
|
45
|
+
"StepId": "VersionCheck",
|
46
|
+
"StepName": "版本检查",
|
47
|
+
"StepNo": 3,
|
48
|
+
"Warnings": []
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"Errors": [],
|
52
|
+
"Percent": 100,
|
53
|
+
"Status": "finished",
|
54
|
+
"StepId": "SrcPrivilegeCheck",
|
55
|
+
"StepName": "源实例权限检查",
|
56
|
+
"StepNo": 4,
|
57
|
+
"Warnings": [
|
58
|
+
{
|
59
|
+
"HelpDoc": "",
|
60
|
+
"Message": "我们不需要能修改您源端数据的权限,请取消他们。例如,您的授权情况:GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`%` WITH GRANT OPTION,GRANT APPLICATION_PASSWORD_ADMIN,ROLE_ADMIN,SHOW_ROUTINE,XA_RECOVER_ADMIN ON *.* TO `root`@`%` WITH GRANT OPTION 请参考 https://cloud.tencent.com/document/product/571/52412"
|
61
|
+
}
|
62
|
+
]
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"Errors": [],
|
66
|
+
"Percent": 100,
|
67
|
+
"Status": "finished",
|
68
|
+
"StepId": "BinlogParamCheck",
|
69
|
+
"StepName": "binlog参数检查",
|
70
|
+
"StepNo": 5,
|
71
|
+
"Warnings": []
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"SubscribeId": "subs-9jyki7hniw"
|
75
|
+
}
|
76
|
+
}
|
77
|
+
```
|
78
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
**Example 1: 查询订阅任务详情**
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts DescribeSubscribeDetail --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-0b2up6hk4u
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Response": {
|
16
|
+
"Region": "ap-guangzhou",
|
17
|
+
"AccessType": "cdb",
|
18
|
+
"AutoRenewFlag": 0,
|
19
|
+
"Broker": "guangzhoutest-kafka-3.cdb-dts.tencentcs.com.cn:32339",
|
20
|
+
"CreateTime": "2023-12-06 14:31:27",
|
21
|
+
"Endpoints": [
|
22
|
+
{
|
23
|
+
"DatabaseRegion": "ap-guangzhou",
|
24
|
+
"EncryptConn": "UnEncrypted",
|
25
|
+
"InstanceId": "cdb-kdxona7h",
|
26
|
+
"User": "root"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"ExpireTime": "0000-00-00 00:00:00",
|
30
|
+
"InstanceId": "cdb-kdxona7h",
|
31
|
+
"InstanceStatus": "running",
|
32
|
+
"IsolateTime": "0000-00-00 00:00:00",
|
33
|
+
"KafkaConfig": {
|
34
|
+
"DistributeRules": [
|
35
|
+
{
|
36
|
+
"DbPattern": "db1",
|
37
|
+
"RuleType": "cols",
|
38
|
+
"TablePattern": "table1",
|
39
|
+
"Columns": [
|
40
|
+
"id"
|
41
|
+
]
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"DbPattern": ".*",
|
45
|
+
"RuleType": "table",
|
46
|
+
"TablePattern": ".*",
|
47
|
+
"Columns": null
|
48
|
+
}
|
49
|
+
],
|
50
|
+
"NumberOfPartitions": 8
|
51
|
+
},
|
52
|
+
"ModifyTime": "2023-12-06 14:33:47",
|
53
|
+
"OfflineTime": "0000-00-00 00:00:00",
|
54
|
+
"PayType": 0,
|
55
|
+
"Product": "mysql",
|
56
|
+
"Protocol": "json",
|
57
|
+
"Status": "normal",
|
58
|
+
"SubsStatus": "running",
|
59
|
+
"SubscribeId": "subs-0b2up6hk4u",
|
60
|
+
"SubscribeName": "test",
|
61
|
+
"SubscribeMode": "all",
|
62
|
+
"Topic": "topic-subs-0b2up6hk4u-cdb-kdxona7h",
|
63
|
+
"RequestId": "7bd11a40-9406-11ee-9689-216abbbe2107"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
```
|
67
|
+
|
@@ -0,0 +1,52 @@
|
|
1
|
+
**Example 1: 查询订阅任务列表**
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts DescribeSubscribeJobs --cli-unfold-argument \
|
9
|
+
--Offset 0 \
|
10
|
+
--Limit 10
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"TotalCount": 1,
|
18
|
+
"Items": [
|
19
|
+
{
|
20
|
+
"SubscribeId": "subs-5ft0e2nrc0",
|
21
|
+
"SubscribeName": "name-5ft0e2nrc0",
|
22
|
+
"Topic": "topic-subs-5ft0e2nrc0-cdb-kdxona7h",
|
23
|
+
"Product": "mysql",
|
24
|
+
"InstanceId": "cdb-kdxona7h",
|
25
|
+
"InstanceStatus": "running",
|
26
|
+
"Status": "normal",
|
27
|
+
"SubsStatus": "running",
|
28
|
+
"ModifyTime": "2023-10-01 12:00:00",
|
29
|
+
"CreateTime": "2023-09-01 12:00:00",
|
30
|
+
"IsolateTime": "0000-00-00 00:00:00",
|
31
|
+
"ExpireTime": "2023-11-01 12:00:00",
|
32
|
+
"OfflineTime": "0000-00-00 00:00:00",
|
33
|
+
"PayType": 0,
|
34
|
+
"AutoRenewFlag": 0,
|
35
|
+
"Region": "ap-guangzhou",
|
36
|
+
"AccessType": "cdb",
|
37
|
+
"Endpoints": [
|
38
|
+
{
|
39
|
+
"DatabaseRegion": "ap-guangzhou",
|
40
|
+
"InstanceId": "cdb-kdxona7h",
|
41
|
+
"EncryptConn": "Encrypted",
|
42
|
+
"User": "root"
|
43
|
+
}
|
44
|
+
],
|
45
|
+
"SubscribeVersion": "kafka"
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"RequestId": "cd6eebd0-9405-11ee-9689-216abbbe2107"
|
49
|
+
}
|
50
|
+
}
|
51
|
+
```
|
52
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
**Example 1: 查询订阅实例是否可以退换**
|
2
|
+
|
3
|
+
查询订阅实例是否可以退换
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts DescribeSubscribeReturnable --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Response": {
|
16
|
+
"IsReturnable": true,
|
17
|
+
"ReturnFailMessage": "",
|
18
|
+
"RequestId": "14a719b5-ffb34ab6-816c43c1-8c6a23eb"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
**Example 1: 下线已隔离的数据订阅实例**
|
2
|
+
|
3
|
+
订阅任务已经隔离,立即发起下线任务
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts DestroyIsolatedSubscribe --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Response": {
|
16
|
+
"RequestId": "14a719b5-ffb34ab6-816c43c1-8c6a23eb"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
**Example 1: 隔离订阅任务**
|
2
|
+
|
3
|
+
隔离订阅任务
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts IsolateSubscribe --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Response": {
|
16
|
+
"RequestId": "14a719b5-ffb34ab6-816c43c1-8c6a23eb"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
**Example 1: 修改消费组备注**
|
2
|
+
|
3
|
+
修改消费组备注
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts ModifyConsumerGroupDescription --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw \
|
10
|
+
--AccountName account-subs-9jyki7hniw-1 \
|
11
|
+
--ConsumerGroupName consumer-grp-subs-9jyki7hniw-1 \
|
12
|
+
--Description this is a test group
|
13
|
+
```
|
14
|
+
|
15
|
+
Output:
|
16
|
+
```
|
17
|
+
{
|
18
|
+
"Response": {
|
19
|
+
"RequestId": "bef6a6f0-f3b1-11ed-b987-7301347aa36f"
|
20
|
+
}
|
21
|
+
}
|
22
|
+
```
|
23
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
**Example 1: 修改消费组密码**
|
2
|
+
|
3
|
+
修改消费组密码
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts ModifyConsumerGroupPassword --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw \
|
10
|
+
--AccountName account-subs-9jyki7hniw-1 \
|
11
|
+
--ConsumerGroupName consumer-grp-subs-9jyki7hniw-1 \
|
12
|
+
--OldPassword 123 \
|
13
|
+
--NewPassword asdiouy09
|
14
|
+
```
|
15
|
+
|
16
|
+
Output:
|
17
|
+
```
|
18
|
+
{
|
19
|
+
"Response": {
|
20
|
+
"RequestId": "bef6a6f0-f3b1-11ed-b987-7301347aa36f"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
**Example 1: 修改数据订阅自动续费标识**
|
2
|
+
|
3
|
+
将一个包年包月的订阅任务从不自动续费改为自动续费
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts ModifySubscribeAutoRenewFlag --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw \
|
10
|
+
--AutoRenewFlag 1
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"RequestId": "14a719b5-ffb34ab6-816c43c1-8c6a23eb"
|
18
|
+
}
|
19
|
+
}
|
20
|
+
```
|
21
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
**Example 1: 修改数据订阅实例的名称**
|
2
|
+
|
3
|
+
修改数据订阅实例的名称
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts ModifySubscribeName --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-9jyki7hniw \
|
10
|
+
--SubscribeName subscribe-test
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"RequestId": "14a719b5-ffb34ab6-816c43c1-8c6a23eb"
|
18
|
+
}
|
19
|
+
}
|
20
|
+
```
|
21
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
**Example 1: 修改数据订阅通道的订阅规则**
|
2
|
+
|
3
|
+
修改数据订阅的订阅规则,如添加或者移除某些库表
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli dts ModifySubscribeObjects --cli-unfold-argument \
|
9
|
+
--SubscribeId subs-ieuwi83j2e \
|
10
|
+
--SubscribeObjectType 0
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"RequestId": "14a719b5-ffb34ab6-816c43c1-8c6a23eb"
|
18
|
+
}
|
19
|
+
}
|
20
|
+
```
|
21
|
+
|