tccli 3.0.1225.1__py2.py3-none-any.whl → 3.0.1227.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/services/billing/v20180709/api.json +23 -23
- tccli/services/billing/v20180709/examples.json +5 -5
- tccli/services/cam/v20190116/api.json +19 -13
- tccli/services/cdb/v20170320/api.json +218 -2
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdwdoris/v20211228/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +1762 -1445
- tccli/services/ckafka/v20190819/examples.json +22 -22
- tccli/services/cloudapp/v20220530/api.json +2 -2
- tccli/services/cloudapp/v20220530/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +21 -1
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +297 -0
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/ims/v20201229/api.json +2 -2
- tccli/services/iotexplorer/iotexplorer_client.py +57 -4
- tccli/services/iotexplorer/v20190423/api.json +145 -0
- tccli/services/iotexplorer/v20190423/examples.json +14 -0
- tccli/services/ivld/v20210903/api.json +245 -192
- tccli/services/ivld/v20210903/examples.json +10 -10
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/live/live_client.py +53 -0
- tccli/services/live/v20180801/api.json +204 -35
- tccli/services/live/v20180801/examples.json +9 -1
- tccli/services/lke/v20231130/api.json +20 -20
- tccli/services/mps/v20190612/api.json +186 -25
- tccli/services/organization/v20181225/api.json +75 -51
- tccli/services/organization/v20181225/examples.json +20 -20
- tccli/services/organization/v20210331/api.json +74 -61
- tccli/services/organization/v20210331/examples.json +14 -14
- tccli/services/rce/v20201103/api.json +1 -1
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/scf/v20180416/api.json +1 -1
- tccli/services/teo/v20220901/api.json +3 -3
- tccli/services/tke/v20220501/api.json +109 -0
- tccli/services/tmt/v20180321/api.json +1 -1
- tccli/services/trtc/v20190722/api.json +104 -0
- tccli/services/tsf/v20180326/api.json +1287 -118
- tccli/services/tsf/v20180326/examples.json +5 -5
- tccli/services/tts/v20190823/api.json +2 -2
- tccli/services/vclm/v20240523/api.json +77 -6
- tccli/services/vclm/v20240523/examples.json +9 -1
- tccli/services/vclm/vclm_client.py +53 -0
- tccli/services/vdb/v20230616/api.json +29 -0
- tccli/services/vod/v20180717/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +134 -0
- tccli/services/vpc/v20170312/examples.json +8 -0
- tccli/services/vpc/vpc_client.py +53 -0
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/RECORD +55 -55
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/license_files/LICENSE +0 -0
@@ -11,7 +11,7 @@
|
|
11
11
|
"BatchCreateAcl": [
|
12
12
|
{
|
13
13
|
"document": "",
|
14
|
-
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchCreateAcl\n<公共请求参数>\n\n{\n \"InstanceId\": \"ckafka-xx\",\n \"ResourceType\": 2,\n \"RuleList\": [\n {\n \"Operation\": \"2\",\n \"PermissionType\": \"3\",\n \"Host\": \"
|
14
|
+
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchCreateAcl\n<公共请求参数>\n\n{\n \"InstanceId\": \"ckafka-xx\",\n \"ResourceType\": 2,\n \"RuleList\": [\n {\n \"Operation\": \"2\",\n \"PermissionType\": \"3\",\n \"Host\": \"10.1.1.0/24\",\n \"Principal\": \"User:*\"\n }\n ],\n \"ResourceNames\": [\n \"rewr\",\n \"topic-1\"\n ]\n}",
|
15
15
|
"output": "{\n \"Response\": {\n \"Result\": 0,\n \"RequestId\": \"20e995ed-75b9-43bb-84c0-35676567e1a8\"\n }\n}",
|
16
16
|
"title": "批量创建ACL"
|
17
17
|
}
|
@@ -19,16 +19,16 @@
|
|
19
19
|
"BatchModifyGroupOffsets": [
|
20
20
|
{
|
21
21
|
"document": "批量设置Groups 消费分组offset",
|
22
|
-
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchModifyGroupOffsets\n<公共请求参数>\n\n{\n \"GroupName\": \"
|
23
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"
|
22
|
+
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchModifyGroupOffsets\n<公共请求参数>\n\n{\n \"GroupName\": \"group-test\",\n \"TopicName\": [\n \"topic-abc\"\n ],\n \"InstanceId\": \"ckafka-test\",\n \"Partitions\": [\n {\n \"Partition\": 0,\n \"Offset\": 0\n }\n ]\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"OK\",\n \"ReturnMessage\": \"success\",\n \"Data\": {\n \"FlowId\": 0,\n \"RouteDTO\": {\n \"RouteId\": 0\n }\n }\n },\n \"RequestId\": \"abc\"\n }\n}",
|
24
24
|
"title": "批量设置Groups 消费分组offset"
|
25
25
|
}
|
26
26
|
],
|
27
27
|
"BatchModifyTopicAttributes": [
|
28
28
|
{
|
29
29
|
"document": "批量设置主题属性",
|
30
|
-
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchModifyTopicAttributes\n<公共请求参数>\n\n{\n \"InstanceId\": \"
|
31
|
-
"output": "{\n \"Response\": {\n \"Result\": [\n {\n \"InstanceId\": \"ckafka-jam3ao99\",\n \"TopicName\": \"test\",\n \"ReturnCode\": \"20018\",\n \"Message\": \"get topic information fail\"\n },\n {\n \"InstanceId\": \"ckafka-jam3ao99\",\n \"TopicName\": \"test1\",\n \"ReturnCode\": \"20018\",\n \"Message\": \"get topic information fail\"\n }\n ],\n \"RequestId\": \"
|
30
|
+
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchModifyTopicAttributes\n<公共请求参数>\n\n{\n \"InstanceId\": \"ckafka-test\",\n \"Topic\": [\n {\n \"TopicName\": \"topic-test\",\n \"PartitionNum\": 0,\n \"Note\": \"abc\",\n \"ReplicaNum\": 0,\n \"CleanUpPolicy\": \"policy\",\n \"MinInsyncReplicas\": 0,\n \"UncleanLeaderElectionEnable\": true,\n \"RetentionMs\": 0,\n \"RetentionBytes\": 0,\n \"SegmentMs\": 0,\n \"MaxMessageBytes\": 0\n }\n ]\n}",
|
31
|
+
"output": "{\n \"Response\": {\n \"Result\": [\n {\n \"InstanceId\": \"ckafka-jam3ao99\",\n \"TopicName\": \"topic-test\",\n \"ReturnCode\": \"20018\",\n \"Message\": \"get topic information fail\"\n },\n {\n \"InstanceId\": \"ckafka-jam3ao99\",\n \"TopicName\": \"topic-test1\",\n \"ReturnCode\": \"20018\",\n \"Message\": \"get topic information fail\"\n }\n ],\n \"RequestId\": \"qwer0001\"\n }\n}",
|
32
32
|
"title": "批量设置主题属性"
|
33
33
|
}
|
34
34
|
],
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"CreateAcl": [
|
52
52
|
{
|
53
53
|
"document": "",
|
54
|
-
"input": "https://ckafka.tencentcloudapi.com/?Action=CreateAcl\n&InstanceId=
|
54
|
+
"input": "https://ckafka.tencentcloudapi.com/?Action=CreateAcl\n&InstanceId=ckafka-test\n&ResourceType=2\n&ResourceName=yourresourcetest1\n&Operation=2\n&PermissionType=2\n&Host=1.1.1.1\n&Principal=User:user1\n&<公共请求参数>",
|
55
55
|
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"ok[apply ok]\",\n \"Data\": {\n \"FlowId\": 0,\n \"RouteDTO\": {\n \"RouteId\": 0\n }\n }\n },\n \"RequestId\": \"b1ce770b-3623-47d3-b31b-538f8941142d\"\n }\n}",
|
56
56
|
"title": "添加 ACL 策略"
|
57
57
|
}
|
@@ -75,22 +75,22 @@
|
|
75
75
|
"CreateConnectResource": [
|
76
76
|
{
|
77
77
|
"document": "创建Datahub连接源(ES)",
|
78
|
-
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConnectResource\n<公共请求参数>\n\n{\n \"Description\": \"
|
79
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ResourceId\": \"resource-
|
78
|
+
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConnectResource\n<公共请求参数>\n\n{\n \"Description\": \"your description\",\n \"EsConnectParam\": {\n \"UserName\": \"elastic\",\n \"Resource\": \"es-test\",\n \"Password\": \"yourpassword\",\n \"Port\": 9200,\n \"ServiceVip\": \"10.0.0.1\",\n \"UniqVpcId\": \"vpc-test\",\n \"SelfBuilt\": false\n },\n \"ResourceName\": \"yourresourcename\",\n \"Type\": \"ES\"\n}",
|
79
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ResourceId\": \"resource-test\"\n },\n \"RequestId\": \"9e6d209b-69fd-4a00-b064-75131aa0a0f8\"\n }\n}",
|
80
80
|
"title": "创建Datahub连接源(ES)"
|
81
81
|
},
|
82
82
|
{
|
83
83
|
"document": "创建Datahub连接源(DTS)",
|
84
|
-
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConnectResource\n<公共请求参数>\n\n{\n \"Description\": \"
|
85
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ResourceId\": \"resource-
|
84
|
+
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConnectResource\n<公共请求参数>\n\n{\n \"Description\": \"your description\",\n \"DtsConnectParam\": {\n \"UserName\": \"root\",\n \"Resource\": \"dts-test\",\n \"Topic\": \"topic\",\n \"GroupId\": \"group\",\n \"Password\": \"yourpassword\",\n \"Port\": 0\n },\n \"ResourceName\": \"resourcename\",\n \"Type\": \"DTS\"\n}",
|
85
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ResourceId\": \"resource-test\"\n },\n \"RequestId\": \"9e6d209b-69fd-4a00-b064-75131aa0a0f8\"\n }\n}",
|
86
86
|
"title": "创建Datahub连接源(DTS)"
|
87
87
|
}
|
88
88
|
],
|
89
89
|
"CreateConsumer": [
|
90
90
|
{
|
91
91
|
"document": "创建消费者",
|
92
|
-
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConsumer\n<公共请求参数>\n\n{\n \"InstanceId\": \"ckafka-
|
93
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnMessage\": \"
|
92
|
+
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConsumer\n<公共请求参数>\n\n{\n \"InstanceId\": \"ckafka-test\",\n \"TopicName\": \"topic-test\",\n \"GroupName\": \"group-test\"\n}",
|
93
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnMessage\": \"success\",\n \"ReturnCode\": \"ok\",\n \"Data\": {\n \"FlowId\": 0,\n \"RouteDTO\": {\n \"RouteId\": 0\n }\n }\n },\n \"RequestId\": \"9e6d209b-69fd-4a00-b064-75131aa0a0f8\"\n }\n}",
|
94
94
|
"title": "创建消费者"
|
95
95
|
}
|
96
96
|
],
|
@@ -98,25 +98,25 @@
|
|
98
98
|
{
|
99
99
|
"document": "SINK任务",
|
100
100
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDatahubTask\n<公共请求参数>\n\n{\n \"TaskName\": \"MyTaskName\",\n \"TaskType\": \"SINK\",\n \"SourceResource\": {\n \"Type\": \"KAFKA\",\n \"KafkaParam\": {\n \"SelfBuilt\": false,\n \"Resource\": \"ckafka-7kd5rzza\",\n \"Topic\": \"topic-test\",\n \"OffsetType\": \"timestamp\",\n \"StartTime\": 1635339533\n }\n },\n \"TargetResource\": {\n \"Type\": \"EB\",\n \"EventBusParam\": {\n \"Type\": \"COS\",\n \"SelfBuilt\": false,\n \"Resource\": \"target-resource\",\n \"Namespace\": \"default\",\n \"FunctionName\": \"ckafka-7kd5rzza_topic-0cus2p9z_task_1633501781881_schedule\",\n \"Qualifier\": \"$LATEST\"\n }\n }\n}",
|
101
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TaskId\": \"
|
101
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TaskId\": \"abc\",\n \"DatahubId\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
102
102
|
"title": "创建SINK任务"
|
103
103
|
},
|
104
104
|
{
|
105
105
|
"document": "",
|
106
106
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDatahubTask\n<公共请求参数>\n\n{\n \"TaskName\": \"MyTaskName\",\n \"TaskType\": \"SINK\",\n \"SourceResource\": {\n \"Type\": \"KAFKA\",\n \"KafkaParam\": {\n \"SelfBuilt\": false,\n \"Resource\": \"ckafka-7kd5rzza\",\n \"Topic\": \"topic-test\",\n \"OffsetType\": \"earliest\"\n }\n },\n \"TargetResource\": {\n \"Type\": \"ES\",\n \"EsParam\": {\n \"Resource\": \"resource-xxx\",\n \"DropInvalidMessage\": true,\n \"Index\": \"xxx\",\n \"DropInvalidJsonMessage\": false\n }\n }\n}",
|
107
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TaskId\": \"
|
107
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TaskId\": \"abc\",\n \"DatahubId\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
108
108
|
"title": "创建SINK任务(ES)"
|
109
109
|
},
|
110
110
|
{
|
111
111
|
"document": "TRANSFORM任务",
|
112
|
-
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDatahubTask\n<公共请求参数>\n\n{\n \"TaskName\": \"MyTaskName\",\n \"TaskType\": \"TRANSFORM\",\n \"SourceResource\": {\n \"Type\": \"KAFKA\",\n \"KafkaParam\": {\n \"SelfBuilt\": false,\n \"Resource\": \"ckafka-aaa\",\n \"Topic\": \"topic-source\"\n }\n },\n \"TargetResource\": {\n \"Type\": \"KAFKA\",\n \"KafkaParam\": {\n \"SelfBuilt\": false,\n \"Resource\": \"ckafka-bbb\",\n \"Topic\": \"topic-traget\"\n }\n },\n \"TransformParam\": {\n \"Regex\": \";\",\n \"AnalysisFormat\": \"DELIMITER\",\n \"OutputFormat\": \"JSON\",\n \"SourceType\": \"xx\",\n \"FilterParam\": [\n {\n \"MatchMode\": \"PREFIX\",\n \"Value\": \"cass\",\n \"Key\": \"0\"\n }\n ],\n \"FailureParam\": {\n \"Type\": \"DLQ\",\n \"MaxRetryAttempts\": 1,\n \"KafkaParam\": {\n \"Resource\": \"ckafka-xxx\",\n \"SelfBuilt\": false,\n \"Topic\": \"test-dlq\"\n }\n },\n \"Content\": \"xx\",\n \"MapParam\": [\n {\n \"Type\": \"DEFAULT\",\n \"Key\": \"1\"\n },\n {\n \"Type\": \"DEFAULT\",\n \"Key\": \"2\"\n },\n {\n \"Type\": \"DEFAULT\",\n \"Value\": \"abc\",\n \"Key\": \"3\"\n },\n {\n \"Type\": \"DATE\",\n \"Value\": \"\",\n \"Key\": \"5\"\n }\n ]\n }\n}",
|
113
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TaskId\": \"
|
112
|
+
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDatahubTask\n<公共请求参数>\n\n{\n \"TaskName\": \"abc\",\n \"TaskType\": \"abc\",\n \"SourceResource\": {\n \"Type\": \"abc\",\n \"KafkaParam\": {\n \"SelfBuilt\": true,\n \"Resource\": \"abc\",\n \"Topic\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"ResourceName\": \"abc\",\n \"ZoneId\": 0,\n \"TopicId\": \"abc\",\n \"PartitionNum\": 0,\n \"EnableToleration\": true,\n \"QpsLimit\": 1,\n \"TableMappings\": [\n {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Topic\": \"abc\",\n \"TopicId\": \"abc\"\n }\n ],\n \"UseTableMapping\": true,\n \"UseAutoCreateTopic\": true,\n \"CompressionType\": \"abc\",\n \"MsgMultiple\": 0,\n \"ConnectorSyncType\": \"abc\",\n \"KeepPartition\": true\n },\n \"EventBusParam\": {\n \"Type\": \"abc\",\n \"SelfBuilt\": true,\n \"Resource\": \"abc\",\n \"Namespace\": \"abc\",\n \"FunctionName\": \"abc\",\n \"Qualifier\": \"abc\"\n },\n \"MongoDBParam\": {\n \"Database\": \"abc\",\n \"Collection\": \"abc\",\n \"CopyExisting\": true,\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"ListeningEvent\": \"abc\",\n \"ReadPreference\": \"abc\",\n \"Pipeline\": \"abc\",\n \"SelfBuilt\": true\n },\n \"EsParam\": {\n \"Resource\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"SelfBuilt\": true,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"DropInvalidMessage\": true,\n \"Index\": \"abc\",\n \"DateFormat\": \"abc\",\n \"ContentKey\": \"abc\",\n \"DropInvalidJsonMessage\": true,\n \"DocumentIdField\": \"abc\",\n \"IndexType\": \"abc\",\n \"DropCls\": {\n \"DropInvalidMessageToCls\": true,\n \"DropClsRegion\": \"abc\",\n \"DropClsOwneruin\": \"abc\",\n \"DropClsTopicId\": \"abc\",\n \"DropClsLogSet\": \"abc\"\n },\n \"DatabasePrimaryKey\": \"abc\",\n \"DropDlq\": {\n \"Type\": \"abc\",\n \"KafkaParam\": {\n \"SelfBuilt\": true,\n \"Resource\": \"abc\",\n \"Topic\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"ResourceName\": \"abc\",\n \"ZoneId\": 0,\n \"TopicId\": \"abc\",\n \"PartitionNum\": 0,\n \"EnableToleration\": true,\n \"QpsLimit\": 1,\n \"TableMappings\": [\n {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Topic\": \"abc\",\n \"TopicId\": \"abc\"\n }\n ],\n \"UseTableMapping\": true,\n \"UseAutoCreateTopic\": true,\n \"CompressionType\": \"abc\",\n \"MsgMultiple\": 0,\n \"ConnectorSyncType\": \"abc\",\n \"KeepPartition\": true\n },\n \"RetryInterval\": 1,\n \"MaxRetryAttempts\": 1,\n \"TopicParam\": {\n \"Resource\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"TopicId\": \"abc\",\n \"CompressionType\": \"abc\",\n \"UseAutoCreateTopic\": true,\n \"MsgMultiple\": 0\n },\n \"DlqType\": \"abc\"\n },\n \"RecordMappingList\": [\n {\n \"ColumnName\": \"abc\",\n \"JsonKey\": \"abc\"\n }\n ],\n \"DateField\": \"abc\",\n \"RecordMappingMode\": \"abc\"\n },\n \"TdwParam\": {\n \"Bid\": \"abc\",\n \"Tid\": \"abc\",\n \"IsDomestic\": true,\n \"TdwHost\": \"abc\",\n \"TdwPort\": 0\n },\n \"DtsParam\": {\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"Topic\": \"abc\",\n \"GroupId\": \"abc\",\n \"GroupUser\": \"abc\",\n \"GroupPassword\": \"abc\",\n \"TranSql\": true\n },\n \"ClickHouseParam\": {\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Cluster\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Schema\": [\n {\n \"ColumnName\": \"abc\",\n \"JsonKey\": \"abc\",\n \"Type\": \"abc\",\n \"AllowNull\": true\n }\n ],\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"Resource\": \"abc\",\n \"SelfBuilt\": true,\n \"DropInvalidMessage\": true,\n \"Type\": \"abc\",\n \"DropCls\": {\n \"DropInvalidMessageToCls\": true,\n \"DropClsRegion\": \"abc\",\n \"DropClsOwneruin\": \"abc\",\n \"DropClsTopicId\": \"abc\",\n \"DropClsLogSet\": \"abc\"\n },\n \"BatchSize\": 0,\n \"ConsumerFetchMinBytes\": 0,\n \"ConsumerFetchMaxWaitMs\": 0\n },\n \"ClsParam\": {\n \"DecodeJson\": true,\n \"Resource\": \"abc\",\n \"LogSet\": \"abc\",\n \"ContentKey\": \"abc\",\n \"TimeField\": \"abc\"\n },\n \"CosParam\": {\n \"BucketName\": \"abc\",\n \"Region\": \"abc\",\n \"ObjectKey\": \"abc\",\n \"AggregateBatchSize\": 1,\n \"AggregateInterval\": 1,\n \"FormatOutputType\": \"abc\",\n \"ObjectKeyPrefix\": \"abc\",\n \"DirectoryTimeFormat\": \"abc\"\n },\n \"MySQLParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"DdlTopic\": \"abc\",\n \"DataSourceMonitorMode\": \"abc\",\n \"DataSourceMonitorResource\": \"abc\",\n \"DataSourceIncrementMode\": \"abc\",\n \"DataSourceIncrementColumn\": \"abc\",\n \"DataSourceStartFrom\": \"abc\",\n \"DataTargetInsertMode\": \"abc\",\n \"DataTargetPrimaryKeyField\": \"abc\",\n \"DataTargetRecordMapping\": [\n {\n \"JsonKey\": \"abc\",\n \"Type\": \"abc\",\n \"AllowNull\": true,\n \"ColumnName\": \"abc\",\n \"ExtraInfo\": \"abc\",\n \"ColumnSize\": \"abc\",\n \"DecimalDigits\": \"abc\",\n \"AutoIncrement\": true,\n \"DefaultValue\": \"abc\"\n }\n ],\n \"TopicRegex\": \"abc\",\n \"TopicReplacement\": \"abc\",\n \"KeyColumns\": \"abc\",\n \"DropInvalidMessage\": true,\n \"DropCls\": {\n \"DropInvalidMessageToCls\": true,\n \"DropClsRegion\": \"abc\",\n \"DropClsOwneruin\": \"abc\",\n \"DropClsTopicId\": \"abc\",\n \"DropClsLogSet\": \"abc\"\n },\n \"OutputFormat\": \"abc\",\n \"IsTablePrefix\": true,\n \"IncludeContentChanges\": \"abc\",\n \"IncludeQuery\": true,\n \"RecordWithSchema\": true,\n \"SignalDatabase\": \"abc\",\n \"IsTableRegular\": true,\n \"SignalTable\": \"abc\",\n \"DateTimeZone\": \"abc\",\n \"SelfBuilt\": true\n },\n \"PostgreSQLParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"PluginName\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"DataFormat\": \"abc\",\n \"DataTargetInsertMode\": \"abc\",\n \"DataTargetPrimaryKeyField\": \"abc\",\n \"DataTargetRecordMapping\": [\n {\n \"JsonKey\": \"abc\",\n \"Type\": \"abc\",\n \"AllowNull\": true,\n \"ColumnName\": \"abc\",\n \"ExtraInfo\": \"abc\",\n \"ColumnSize\": \"abc\",\n \"DecimalDigits\": \"abc\",\n \"AutoIncrement\": true,\n \"DefaultValue\": \"abc\"\n }\n ],\n \"DropInvalidMessage\": true,\n \"IsTableRegular\": true,\n \"KeyColumns\": \"abc\",\n \"RecordWithSchema\": true\n },\n \"TopicParam\": {\n \"Resource\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"TopicId\": \"abc\",\n \"CompressionType\": \"abc\",\n \"UseAutoCreateTopic\": true,\n \"MsgMultiple\": 0\n },\n \"MariaDBParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"KeyColumns\": \"abc\",\n \"IsTablePrefix\": true,\n \"OutputFormat\": \"abc\",\n \"IncludeContentChanges\": \"abc\",\n \"IncludeQuery\": true,\n \"RecordWithSchema\": true\n },\n \"SQLServerParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\"\n },\n \"CtsdbParam\": {\n \"Resource\": \"abc\",\n \"CtsdbMetric\": \"abc\"\n },\n \"ScfParam\": {\n \"FunctionName\": \"abc\",\n \"Namespace\": \"abc\",\n \"Qualifier\": \"abc\",\n \"BatchSize\": 0,\n \"MaxRetries\": 0\n },\n \"MqttParam\": {\n \"Topics\": \"abc\",\n \"CleanSession\": true,\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Qos\": 0,\n \"MaxTasks\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"SelfBuilt\": true\n }\n },\n \"TargetResource\": {\n \"Type\": \"abc\",\n \"KafkaParam\": {\n \"SelfBuilt\": true,\n \"Resource\": \"abc\",\n \"Topic\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"ResourceName\": \"abc\",\n \"ZoneId\": 0,\n \"TopicId\": \"abc\",\n \"PartitionNum\": 0,\n \"EnableToleration\": true,\n \"QpsLimit\": 1,\n \"TableMappings\": [\n {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Topic\": \"abc\",\n \"TopicId\": \"abc\"\n }\n ],\n \"UseTableMapping\": true,\n \"UseAutoCreateTopic\": true,\n \"CompressionType\": \"abc\",\n \"MsgMultiple\": 0,\n \"ConnectorSyncType\": \"abc\",\n \"KeepPartition\": true\n },\n \"EventBusParam\": {\n \"Type\": \"abc\",\n \"SelfBuilt\": true,\n \"Resource\": \"abc\",\n \"Namespace\": \"abc\",\n \"FunctionName\": \"abc\",\n \"Qualifier\": \"abc\"\n },\n \"MongoDBParam\": {\n \"Database\": \"abc\",\n \"Collection\": \"abc\",\n \"CopyExisting\": true,\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"ListeningEvent\": \"abc\",\n \"ReadPreference\": \"abc\",\n \"Pipeline\": \"abc\",\n \"SelfBuilt\": true\n },\n \"EsParam\": {\n \"Resource\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"SelfBuilt\": true,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"DropInvalidMessage\": true,\n \"Index\": \"abc\",\n \"DateFormat\": \"abc\",\n \"ContentKey\": \"abc\",\n \"DropInvalidJsonMessage\": true,\n \"DocumentIdField\": \"abc\",\n \"IndexType\": \"abc\",\n \"DatabasePrimaryKey\": \"abc\",\n \"DropDlq\": {\n \"Type\": \"abc\",\n \"RetryInterval\": 1,\n \"MaxRetryAttempts\": 1,\n \"TopicParam\": {\n \"Resource\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"TopicId\": \"abc\",\n \"CompressionType\": \"abc\",\n \"UseAutoCreateTopic\": true,\n \"MsgMultiple\": 0\n },\n \"DlqType\": \"abc\"\n },\n \"RecordMappingList\": [\n {\n \"ColumnName\": \"abc\",\n \"JsonKey\": \"abc\"\n }\n ],\n \"DateField\": \"abc\",\n \"RecordMappingMode\": \"abc\"\n },\n \"TdwParam\": {\n \"Bid\": \"abc\",\n \"Tid\": \"abc\",\n \"IsDomestic\": true,\n \"TdwHost\": \"abc\",\n \"TdwPort\": 0\n },\n \"DtsParam\": {\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"Topic\": \"abc\",\n \"GroupId\": \"abc\",\n \"GroupUser\": \"abc\",\n \"GroupPassword\": \"abc\",\n \"TranSql\": true\n },\n \"ClickHouseParam\": {\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Cluster\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Schema\": [\n {\n \"ColumnName\": \"abc\",\n \"JsonKey\": \"abc\",\n \"Type\": \"abc\",\n \"AllowNull\": true\n }\n ],\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"Resource\": \"abc\",\n \"SelfBuilt\": true,\n \"DropInvalidMessage\": true,\n \"Type\": \"abc\",\n \"BatchSize\": 0,\n \"ConsumerFetchMinBytes\": 0,\n \"ConsumerFetchMaxWaitMs\": 0\n },\n \"ClsParam\": {\n \"DecodeJson\": true,\n \"Resource\": \"abc\",\n \"LogSet\": \"abc\",\n \"ContentKey\": \"abc\",\n \"TimeField\": \"abc\"\n },\n \"CosParam\": {\n \"BucketName\": \"abc\",\n \"Region\": \"abc\",\n \"ObjectKey\": \"abc\",\n \"AggregateBatchSize\": 1,\n \"AggregateInterval\": 1,\n \"FormatOutputType\": \"abc\",\n \"ObjectKeyPrefix\": \"abc\",\n \"DirectoryTimeFormat\": \"abc\"\n },\n \"MySQLParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"DdlTopic\": \"abc\",\n \"DataSourceMonitorMode\": \"abc\",\n \"DataSourceMonitorResource\": \"abc\",\n \"DataSourceIncrementMode\": \"abc\",\n \"DataSourceIncrementColumn\": \"abc\",\n \"DataSourceStartFrom\": \"abc\",\n \"DataTargetInsertMode\": \"abc\",\n \"DataTargetPrimaryKeyField\": \"abc\",\n \"DataTargetRecordMapping\": [\n {\n \"JsonKey\": \"abc\",\n \"Type\": \"abc\",\n \"AllowNull\": true,\n \"ColumnName\": \"abc\",\n \"ExtraInfo\": \"abc\",\n \"ColumnSize\": \"abc\",\n \"DecimalDigits\": \"abc\",\n \"AutoIncrement\": true,\n \"DefaultValue\": \"abc\"\n }\n ],\n \"TopicRegex\": \"abc\",\n \"TopicReplacement\": \"abc\",\n \"KeyColumns\": \"abc\",\n \"DropInvalidMessage\": true,\n \"OutputFormat\": \"abc\",\n \"IsTablePrefix\": true,\n \"IncludeContentChanges\": \"abc\",\n \"IncludeQuery\": true,\n \"RecordWithSchema\": true,\n \"SignalDatabase\": \"abc\",\n \"IsTableRegular\": true,\n \"SignalTable\": \"abc\",\n \"DateTimeZone\": \"abc\",\n \"SelfBuilt\": true\n },\n \"PostgreSQLParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"PluginName\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"DataFormat\": \"abc\",\n \"DataTargetInsertMode\": \"abc\",\n \"DataTargetPrimaryKeyField\": \"abc\",\n \"DropInvalidMessage\": true,\n \"IsTableRegular\": true,\n \"KeyColumns\": \"abc\",\n \"RecordWithSchema\": true\n },\n \"MariaDBParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"KeyColumns\": \"abc\",\n \"IsTablePrefix\": true,\n \"OutputFormat\": \"abc\",\n \"IncludeContentChanges\": \"abc\",\n \"IncludeQuery\": true,\n \"RecordWithSchema\": true\n },\n \"SQLServerParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\"\n },\n \"CtsdbParam\": {\n \"Resource\": \"abc\",\n \"CtsdbMetric\": \"abc\"\n },\n \"ScfParam\": {\n \"FunctionName\": \"abc\",\n \"Namespace\": \"abc\",\n \"Qualifier\": \"abc\",\n \"BatchSize\": 0,\n \"MaxRetries\": 0\n },\n \"MqttParam\": {\n \"Topics\": \"abc\",\n \"CleanSession\": true,\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Qos\": 0,\n \"MaxTasks\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"SelfBuilt\": true\n }\n },\n \"TransformParam\": {\n \"AnalysisFormat\": \"abc\",\n \"Regex\": \"abc\",\n \"MapParam\": [\n {\n \"Key\": \"abc\",\n \"Type\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"FilterParam\": [\n {\n \"Key\": \"abc\",\n \"Type\": \"abc\",\n \"MatchMode\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"OutputFormat\": \"abc\",\n \"FailureParam\": {\n \"Type\": \"abc\",\n \"RetryInterval\": 1,\n \"MaxRetryAttempts\": 1,\n \"DlqType\": \"abc\"\n },\n \"Content\": \"abc\",\n \"SourceType\": \"abc\",\n \"Result\": \"abc\",\n \"AnalyseResult\": [\n {\n \"Key\": \"abc\",\n \"Type\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"UseEventBus\": true\n },\n \"PrivateLinkParam\": {\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\"\n },\n \"SchemaId\": \"abc\",\n \"TransformsParam\": {\n \"Content\": \"abc\",\n \"FieldChain\": [\n {\n \"Analyse\": {\n \"Format\": \"abc\",\n \"Regex\": \"abc\",\n \"InputValueType\": \"abc\",\n \"InputValue\": \"abc\"\n },\n \"SecondaryAnalyse\": {\n \"Regex\": \"abc\"\n },\n \"SMT\": [\n {\n \"Key\": \"abc\",\n \"Operate\": \"abc\",\n \"SchemeType\": \"abc\",\n \"Value\": \"abc\",\n \"ValueOperate\": {\n \"Type\": \"abc\",\n \"Replace\": {\n \"OldValue\": \"abc\",\n \"NewValue\": \"abc\"\n },\n \"Substr\": {\n \"Start\": 0,\n \"End\": 0\n },\n \"Date\": {\n \"Format\": \"abc\",\n \"TargetType\": \"abc\",\n \"TimeZone\": \"abc\"\n },\n \"RegexReplace\": {\n \"Regex\": \"abc\",\n \"NewValue\": \"abc\"\n },\n \"Split\": {\n \"Regex\": \"abc\"\n },\n \"KV\": {\n \"Delimiter\": \"abc\",\n \"Regex\": \"abc\",\n \"KeepOriginalKey\": \"abc\"\n },\n \"Result\": \"abc\",\n \"JsonPathReplace\": {\n \"OldValue\": \"abc\",\n \"NewValue\": \"abc\"\n },\n \"UrlDecode\": {\n \"CharsetName\": \"abc\"\n },\n \"Lowercase\": {}\n },\n \"OriginalValue\": \"abc\",\n \"ValueOperates\": [\n {\n \"Type\": \"abc\",\n \"Replace\": {\n \"OldValue\": \"abc\",\n \"NewValue\": \"abc\"\n },\n \"Substr\": {\n \"Start\": 0,\n \"End\": 0\n },\n \"Date\": {\n \"Format\": \"abc\",\n \"TargetType\": \"abc\",\n \"TimeZone\": \"abc\"\n },\n \"RegexReplace\": {\n \"Regex\": \"abc\",\n \"NewValue\": \"abc\"\n },\n \"Split\": {\n \"Regex\": \"abc\"\n },\n \"KV\": {\n \"Delimiter\": \"abc\",\n \"Regex\": \"abc\",\n \"KeepOriginalKey\": \"abc\"\n },\n \"Result\": \"abc\",\n \"JsonPathReplace\": {\n \"OldValue\": \"abc\",\n \"NewValue\": \"abc\"\n },\n \"UrlDecode\": {\n \"CharsetName\": \"abc\"\n },\n \"Lowercase\": {}\n }\n ]\n }\n ],\n \"Result\": \"abc\",\n \"AnalyseResult\": [\n {\n \"Key\": \"abc\",\n \"Operate\": \"abc\",\n \"SchemeType\": \"abc\",\n \"Value\": \"abc\",\n \"ValueOperate\": {\n \"Type\": \"abc\",\n \"Replace\": {\n \"OldValue\": \"abc\",\n \"NewValue\": \"abc\"\n },\n \"Substr\": {\n \"Start\": 0,\n \"End\": 0\n },\n \"Date\": {\n \"Format\": \"abc\",\n \"TargetType\": \"abc\",\n \"TimeZone\": \"abc\"\n },\n \"RegexReplace\": {\n \"Regex\": \"abc\",\n \"NewValue\": \"abc\"\n },\n \"Split\": {\n \"Regex\": \"abc\"\n },\n \"KV\": {\n \"Delimiter\": \"abc\",\n \"Regex\": \"abc\",\n \"KeepOriginalKey\": \"abc\"\n },\n \"Result\": \"abc\",\n \"JsonPathReplace\": {\n \"OldValue\": \"abc\",\n \"NewValue\": \"abc\"\n },\n \"UrlDecode\": {\n \"CharsetName\": \"abc\"\n },\n \"Lowercase\": {}\n },\n \"OriginalValue\": \"abc\"\n }\n ],\n \"SecondaryAnalyseResult\": [\n {\n \"Key\": \"abc\",\n \"Operate\": \"abc\",\n \"SchemeType\": \"abc\",\n \"Value\": \"abc\",\n \"OriginalValue\": \"abc\"\n }\n ],\n \"AnalyseJsonResult\": \"abc\",\n \"SecondaryAnalyseJsonResult\": \"abc\"\n }\n ],\n \"FilterParam\": [\n {\n \"Key\": \"abc\",\n \"Type\": \"abc\",\n \"MatchMode\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"Result\": \"abc\",\n \"SourceType\": \"abc\",\n \"OutputFormat\": \"abc\",\n \"RowParam\": {\n \"RowContent\": \"abc\",\n \"KeyValueDelimiter\": \"abc\",\n \"EntryDelimiter\": \"abc\"\n },\n \"KeepMetadata\": true,\n \"BatchAnalyse\": {\n \"Format\": \"abc\"\n }\n },\n \"TaskId\": \"abc\",\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n}",
|
113
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TaskId\": \"abc\",\n \"DatahubId\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
114
114
|
"title": "创建TRANSFORM任务"
|
115
115
|
},
|
116
116
|
{
|
117
117
|
"document": "",
|
118
118
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDatahubTask\n<公共请求参数>\n\n{\n \"TaskName\": \"MyTaskName\",\n \"TaskType\": \"SINK\",\n \"SourceResource\": {\n \"Type\": \"TOPIC\",\n \"TopicParam\": {\n \"Resource\": \"12345-xxx\",\n \"OffsetType\": \"earliest\"\n }\n },\n \"TargetResource\": {\n \"Type\": \"ES\",\n \"EsParam\": {\n \"Resource\": \"resource-xxx\",\n \"DropInvalidMessage\": true,\n \"Index\": \"xxx\",\n \"DropInvalidJsonMessage\": false\n }\n }\n}",
|
119
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TaskId\": \"
|
119
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TaskId\": \"abc\",\n \"DatahubId\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
120
120
|
"title": "创建SINK任务(DIP Topic to ES)"
|
121
121
|
}
|
122
122
|
],
|
@@ -214,7 +214,7 @@
|
|
214
214
|
{
|
215
215
|
"document": "",
|
216
216
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTopicIpWhiteList\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"TopicName\": \"abc\",\n \"IpWhiteList\": [\n \"abc\"\n ]\n}",
|
217
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"ok[apply success]\"\n },\n \"RequestId\": \"
|
217
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"ok[apply success]\",\n \"Data\": {\n \"FlowId\": 0\n }\n },\n \"RequestId\": \"b800c966-083a-40f5-8d54-44f40c6b364f\"\n }\n}",
|
218
218
|
"title": "创建主题IP白名单"
|
219
219
|
}
|
220
220
|
],
|
@@ -262,7 +262,7 @@
|
|
262
262
|
{
|
263
263
|
"document": "",
|
264
264
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteDatahubTopic\n<公共请求参数>\n\n{\n \"Name\": \"12345-test\"\n}",
|
265
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"
|
265
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"abc\",\n \"ReturnMessage\": \"abc\",\n \"Data\": {\n \"FlowId\": 0,\n \"RouteDTO\": {\n \"RouteId\": 0\n }\n }\n },\n \"RequestId\": \"abc\"\n }\n}",
|
266
266
|
"title": "删除主题"
|
267
267
|
}
|
268
268
|
],
|
@@ -318,7 +318,7 @@
|
|
318
318
|
{
|
319
319
|
"document": "",
|
320
320
|
"input": "POST / HTTP/1.1\nHost: xxx.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteTopicIpWhiteList\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"TopicName\": \"abc\",\n \"IpWhiteList\": [\n \"abc\"\n ]\n}",
|
321
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"ok[apply success]\"\n },\n \"RequestId\": \"b800c966-083a-40f5-8d54-44f40c6b364f\"\n }\n}",
|
321
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"ok[apply success]\",\n \"Data\": {\n \"FlowId\": 0\n }\n },\n \"RequestId\": \"b800c966-083a-40f5-8d54-44f40c6b364f\"\n }\n}",
|
322
322
|
"title": "删除主题IP白名单"
|
323
323
|
}
|
324
324
|
],
|
@@ -406,7 +406,7 @@
|
|
406
406
|
{
|
407
407
|
"document": "",
|
408
408
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDatahubTasks\n<公共请求参数>\n\n{\n \"TaskType\": \"SINK\",\n \"Limit\": \"20\",\n \"Offset\": \"0\"\n}",
|
409
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 0,\n \"TaskList\": [\n {\n \"Status\": 0,\n \"TaskId\": \"xx\",\n \"TaskName\": \"MyTaskName\",\n \"TaskType\": \"SINK\",\n \"SourceResource\": {\n \"Type\": \"KAFKA\",\n \"KafkaParam\": {\n \"SelfBuilt\": false,\n \"Resource\": \"ckafka-7kd5rzza\",\n \"Topic\": \"topic-test\",\n \"OffsetType\": \"timestamp\",\n \"StartTime\": 1635339533,\n \"ResourceName\": \"MyCkafkaName\",\n \"ZoneId\": 200005\n }\n },\n \"TargetResource\": {\n \"Type\": \"EB\",\n \"EventBusParam\": {\n \"Type\": \"COS\",\n \"SelfBuilt\": false,\n \"Resource\": \"target-resource\",\n \"Namespace\": \"default\",\n \"FunctionName\": \"ckafka-7kd5rzza_topic-0cus2p9z_task_1633501781881_schedule\",\n \"Qualifier\": \"$LATEST\"\n }\n }\n }\n ]\n },\n \"RequestId\": \"xx\"\n }\n}",
|
409
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 0,\n \"TaskList\": [\n {\n \"TaskId\": \"abc\",\n \"TaskName\": \"abc\",\n \"TaskType\": \"abc\",\n \"Status\": 0,\n \"SourceResource\": {\n \"Type\": \"abc\",\n \"KafkaParam\": {\n \"SelfBuilt\": true,\n \"Resource\": \"abc\",\n \"Topic\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"ResourceName\": \"abc\",\n \"ZoneId\": 0,\n \"TopicId\": \"abc\",\n \"PartitionNum\": 0,\n \"EnableToleration\": true,\n \"QpsLimit\": 1,\n \"TableMappings\": [\n {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Topic\": \"abc\",\n \"TopicId\": \"abc\"\n }\n ],\n \"UseTableMapping\": true,\n \"UseAutoCreateTopic\": true,\n \"CompressionType\": \"abc\",\n \"MsgMultiple\": 0,\n \"ConnectorSyncType\": \"abc\",\n \"KeepPartition\": true\n },\n \"EventBusParam\": {\n \"Type\": \"abc\",\n \"SelfBuilt\": true,\n \"Resource\": \"abc\",\n \"Namespace\": \"abc\",\n \"FunctionName\": \"abc\",\n \"Qualifier\": \"abc\"\n },\n \"MongoDBParam\": {\n \"Database\": \"abc\",\n \"Collection\": \"abc\",\n \"CopyExisting\": true,\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"ListeningEvent\": \"abc\",\n \"ReadPreference\": \"abc\",\n \"Pipeline\": \"abc\",\n \"SelfBuilt\": true\n },\n \"EsParam\": {\n \"Resource\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"SelfBuilt\": true,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"DropInvalidMessage\": true,\n \"Index\": \"abc\",\n \"DateFormat\": \"abc\",\n \"ContentKey\": \"abc\",\n \"DropInvalidJsonMessage\": true,\n \"DocumentIdField\": \"abc\",\n \"IndexType\": \"abc\",\n \"DropCls\": {\n \"DropInvalidMessageToCls\": true,\n \"DropClsRegion\": \"abc\",\n \"DropClsOwneruin\": \"abc\",\n \"DropClsTopicId\": \"abc\",\n \"DropClsLogSet\": \"abc\"\n },\n \"DatabasePrimaryKey\": \"abc\",\n \"DropDlq\": {\n \"Type\": \"abc\",\n \"KafkaParam\": {\n \"SelfBuilt\": true,\n \"Resource\": \"abc\",\n \"Topic\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"ResourceName\": \"abc\",\n \"ZoneId\": 0,\n \"TopicId\": \"abc\",\n \"PartitionNum\": 0,\n \"EnableToleration\": true,\n \"QpsLimit\": 1,\n \"TableMappings\": [\n {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Topic\": \"abc\",\n \"TopicId\": \"abc\"\n }\n ],\n \"UseTableMapping\": true,\n \"UseAutoCreateTopic\": true,\n \"CompressionType\": \"abc\",\n \"MsgMultiple\": 0,\n \"ConnectorSyncType\": \"abc\",\n \"KeepPartition\": true\n },\n \"RetryInterval\": 1,\n \"MaxRetryAttempts\": 1,\n \"TopicParam\": {\n \"Resource\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"TopicId\": \"abc\",\n \"CompressionType\": \"abc\",\n \"UseAutoCreateTopic\": true,\n \"MsgMultiple\": 0\n },\n \"DlqType\": \"abc\"\n },\n \"RecordMappingList\": [\n {\n \"ColumnName\": \"abc\",\n \"JsonKey\": \"abc\"\n }\n ],\n \"DateField\": \"abc\",\n \"RecordMappingMode\": \"abc\"\n },\n \"TdwParam\": {\n \"Bid\": \"abc\",\n \"Tid\": \"abc\",\n \"IsDomestic\": true,\n \"TdwHost\": \"abc\",\n \"TdwPort\": 0\n },\n \"DtsParam\": {\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"Topic\": \"abc\",\n \"GroupId\": \"abc\",\n \"GroupUser\": \"abc\",\n \"GroupPassword\": \"abc\",\n \"TranSql\": true\n },\n \"ClickHouseParam\": {\n \"Cluster\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Schema\": [\n {\n \"ColumnName\": \"abc\",\n \"JsonKey\": \"abc\",\n \"Type\": \"abc\",\n \"AllowNull\": true\n }\n ],\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"SelfBuilt\": true,\n \"DropInvalidMessage\": true,\n \"Type\": \"abc\",\n \"DropCls\": {\n \"DropInvalidMessageToCls\": true,\n \"DropClsRegion\": \"abc\",\n \"DropClsOwneruin\": \"abc\",\n \"DropClsTopicId\": \"abc\",\n \"DropClsLogSet\": \"abc\"\n },\n \"BatchSize\": 0,\n \"ConsumerFetchMinBytes\": 0,\n \"ConsumerFetchMaxWaitMs\": 0\n },\n \"ClsParam\": {\n \"DecodeJson\": true,\n \"Resource\": \"abc\",\n \"LogSet\": \"abc\",\n \"ContentKey\": \"abc\",\n \"TimeField\": \"abc\"\n },\n \"CosParam\": {\n \"BucketName\": \"abc\",\n \"Region\": \"abc\",\n \"ObjectKey\": \"abc\",\n \"AggregateBatchSize\": 1,\n \"AggregateInterval\": 1,\n \"FormatOutputType\": \"abc\",\n \"ObjectKeyPrefix\": \"abc\",\n \"DirectoryTimeFormat\": \"abc\"\n },\n \"MySQLParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"DdlTopic\": \"abc\",\n \"DataSourceMonitorMode\": \"abc\",\n \"DataSourceMonitorResource\": \"abc\",\n \"DataSourceIncrementMode\": \"abc\",\n \"DataSourceIncrementColumn\": \"abc\",\n \"DataSourceStartFrom\": \"abc\",\n \"DataTargetInsertMode\": \"abc\",\n \"DataTargetPrimaryKeyField\": \"abc\",\n \"DataTargetRecordMapping\": [\n {\n \"JsonKey\": \"abc\",\n \"Type\": \"abc\",\n \"AllowNull\": true,\n \"ColumnName\": \"abc\",\n \"ExtraInfo\": \"abc\",\n \"ColumnSize\": \"abc\",\n \"DecimalDigits\": \"abc\",\n \"AutoIncrement\": true,\n \"DefaultValue\": \"abc\"\n }\n ],\n \"TopicRegex\": \"abc\",\n \"TopicReplacement\": \"abc\",\n \"KeyColumns\": \"abc\",\n \"DropInvalidMessage\": true,\n \"DropCls\": {\n \"DropInvalidMessageToCls\": true,\n \"DropClsRegion\": \"abc\",\n \"DropClsOwneruin\": \"abc\",\n \"DropClsTopicId\": \"abc\",\n \"DropClsLogSet\": \"abc\"\n },\n \"OutputFormat\": \"abc\",\n \"IsTablePrefix\": true,\n \"IncludeContentChanges\": \"abc\",\n \"IncludeQuery\": true,\n \"RecordWithSchema\": true,\n \"SignalDatabase\": \"abc\",\n \"IsTableRegular\": true,\n \"SignalTable\": \"abc\",\n \"DateTimeZone\": \"abc\",\n \"SelfBuilt\": true\n },\n \"PostgreSQLParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"PluginName\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"DataFormat\": \"abc\",\n \"DataTargetInsertMode\": \"abc\",\n \"DataTargetPrimaryKeyField\": \"abc\",\n \"DataTargetRecordMapping\": [\n {\n \"JsonKey\": \"abc\",\n \"Type\": \"abc\",\n \"AllowNull\": true,\n \"ColumnName\": \"abc\",\n \"ExtraInfo\": \"abc\",\n \"ColumnSize\": \"abc\",\n \"DecimalDigits\": \"abc\",\n \"AutoIncrement\": true,\n \"DefaultValue\": \"abc\"\n }\n ],\n \"DropInvalidMessage\": true,\n \"IsTableRegular\": true,\n \"KeyColumns\": \"abc\",\n \"RecordWithSchema\": true\n },\n \"TopicParam\": {\n \"Resource\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"TopicId\": \"abc\",\n \"CompressionType\": \"abc\",\n \"UseAutoCreateTopic\": true,\n \"MsgMultiple\": 0\n },\n \"MariaDBParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"KeyColumns\": \"abc\",\n \"IsTablePrefix\": true,\n \"OutputFormat\": \"abc\",\n \"IncludeContentChanges\": \"abc\",\n \"IncludeQuery\": true,\n \"RecordWithSchema\": true\n },\n \"SQLServerParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\"\n },\n \"CtsdbParam\": {\n \"Resource\": \"abc\",\n \"CtsdbMetric\": \"abc\"\n },\n \"ScfParam\": {\n \"FunctionName\": \"abc\",\n \"Namespace\": \"abc\",\n \"Qualifier\": \"abc\",\n \"BatchSize\": 0,\n \"MaxRetries\": 0\n },\n \"MqttParam\": {\n \"Topics\": \"abc\",\n \"CleanSession\": true,\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Qos\": 0,\n \"MaxTasks\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"SelfBuilt\": true\n }\n },\n \"TargetResource\": {\n \"Type\": \"abc\",\n \"KafkaParam\": {\n \"SelfBuilt\": true,\n \"Resource\": \"abc\",\n \"Topic\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"ResourceName\": \"abc\",\n \"ZoneId\": 0,\n \"TopicId\": \"abc\",\n \"PartitionNum\": 0,\n \"EnableToleration\": true,\n \"QpsLimit\": 1,\n \"TableMappings\": [\n {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Topic\": \"abc\",\n \"TopicId\": \"abc\"\n }\n ],\n \"UseTableMapping\": true,\n \"UseAutoCreateTopic\": true,\n \"CompressionType\": \"abc\",\n \"MsgMultiple\": 0,\n \"ConnectorSyncType\": \"abc\",\n \"KeepPartition\": true\n },\n \"EventBusParam\": {\n \"Type\": \"abc\",\n \"SelfBuilt\": true,\n \"Resource\": \"abc\",\n \"Namespace\": \"abc\",\n \"FunctionName\": \"abc\",\n \"Qualifier\": \"abc\"\n },\n \"MongoDBParam\": {\n \"Database\": \"abc\",\n \"Collection\": \"abc\",\n \"CopyExisting\": true,\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"ListeningEvent\": \"abc\",\n \"ReadPreference\": \"abc\",\n \"Pipeline\": \"abc\",\n \"SelfBuilt\": true\n },\n \"EsParam\": {\n \"Resource\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"SelfBuilt\": true,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"DropInvalidMessage\": true,\n \"Index\": \"abc\",\n \"DateFormat\": \"abc\",\n \"ContentKey\": \"abc\",\n \"DropInvalidJsonMessage\": true,\n \"DocumentIdField\": \"abc\",\n \"IndexType\": \"abc\",\n \"DatabasePrimaryKey\": \"abc\",\n \"DropDlq\": {\n \"Type\": \"abc\",\n \"RetryInterval\": 1,\n \"MaxRetryAttempts\": 1,\n \"TopicParam\": {\n \"Resource\": \"abc\",\n \"OffsetType\": \"abc\",\n \"StartTime\": 1,\n \"TopicId\": \"abc\",\n \"CompressionType\": \"abc\",\n \"UseAutoCreateTopic\": true,\n \"MsgMultiple\": 0\n },\n \"DlqType\": \"abc\"\n },\n \"RecordMappingList\": [\n {\n \"ColumnName\": \"abc\",\n \"JsonKey\": \"abc\"\n }\n ],\n \"DateField\": \"abc\",\n \"RecordMappingMode\": \"abc\"\n },\n \"TdwParam\": {\n \"Bid\": \"abc\",\n \"Tid\": \"abc\",\n \"IsDomestic\": true,\n \"TdwHost\": \"abc\",\n \"TdwPort\": 0\n },\n \"DtsParam\": {\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"Topic\": \"abc\",\n \"GroupId\": \"abc\",\n \"GroupUser\": \"abc\",\n \"GroupPassword\": \"abc\",\n \"TranSql\": true\n },\n \"ClickHouseParam\": {\n \"Cluster\": \"abc\",\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Schema\": [\n {\n \"ColumnName\": \"abc\",\n \"JsonKey\": \"abc\",\n \"Type\": \"abc\",\n \"AllowNull\": true\n }\n ],\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"SelfBuilt\": true,\n \"DropInvalidMessage\": true,\n \"Type\": \"abc\",\n \"BatchSize\": 0,\n \"ConsumerFetchMinBytes\": 0,\n \"ConsumerFetchMaxWaitMs\": 0\n },\n \"ClsParam\": {\n \"DecodeJson\": true,\n \"Resource\": \"abc\",\n \"LogSet\": \"abc\",\n \"ContentKey\": \"abc\",\n \"TimeField\": \"abc\"\n },\n \"CosParam\": {\n \"BucketName\": \"abc\",\n \"Region\": \"abc\",\n \"ObjectKey\": \"abc\",\n \"AggregateBatchSize\": 1,\n \"AggregateInterval\": 1,\n \"FormatOutputType\": \"abc\",\n \"ObjectKeyPrefix\": \"abc\",\n \"DirectoryTimeFormat\": \"abc\"\n },\n \"MySQLParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"DdlTopic\": \"abc\",\n \"DataSourceMonitorMode\": \"abc\",\n \"DataSourceMonitorResource\": \"abc\",\n \"DataSourceIncrementMode\": \"abc\",\n \"DataSourceIncrementColumn\": \"abc\",\n \"DataSourceStartFrom\": \"abc\",\n \"DataTargetInsertMode\": \"abc\",\n \"DataTargetPrimaryKeyField\": \"abc\",\n \"DataTargetRecordMapping\": [\n {\n \"JsonKey\": \"abc\",\n \"Type\": \"abc\",\n \"AllowNull\": true,\n \"ColumnName\": \"abc\",\n \"ExtraInfo\": \"abc\",\n \"ColumnSize\": \"abc\",\n \"DecimalDigits\": \"abc\",\n \"AutoIncrement\": true,\n \"DefaultValue\": \"abc\"\n }\n ],\n \"TopicRegex\": \"abc\",\n \"TopicReplacement\": \"abc\",\n \"KeyColumns\": \"abc\",\n \"DropInvalidMessage\": true,\n \"OutputFormat\": \"abc\",\n \"IsTablePrefix\": true,\n \"IncludeContentChanges\": \"abc\",\n \"IncludeQuery\": true,\n \"RecordWithSchema\": true,\n \"SignalDatabase\": \"abc\",\n \"IsTableRegular\": true,\n \"SignalTable\": \"abc\",\n \"DateTimeZone\": \"abc\",\n \"SelfBuilt\": true\n },\n \"PostgreSQLParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"PluginName\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"DataFormat\": \"abc\",\n \"DataTargetInsertMode\": \"abc\",\n \"DataTargetPrimaryKeyField\": \"abc\",\n \"DropInvalidMessage\": true,\n \"IsTableRegular\": true,\n \"KeyColumns\": \"abc\",\n \"RecordWithSchema\": true\n },\n \"MariaDBParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\",\n \"KeyColumns\": \"abc\",\n \"IsTablePrefix\": true,\n \"OutputFormat\": \"abc\",\n \"IncludeContentChanges\": \"abc\",\n \"IncludeQuery\": true,\n \"RecordWithSchema\": true\n },\n \"SQLServerParam\": {\n \"Database\": \"abc\",\n \"Table\": \"abc\",\n \"Resource\": \"abc\",\n \"SnapshotMode\": \"abc\"\n },\n \"CtsdbParam\": {\n \"Resource\": \"abc\",\n \"CtsdbMetric\": \"abc\"\n },\n \"ScfParam\": {\n \"FunctionName\": \"abc\",\n \"Namespace\": \"abc\",\n \"Qualifier\": \"abc\",\n \"BatchSize\": 0,\n \"MaxRetries\": 0\n },\n \"MqttParam\": {\n \"Topics\": \"abc\",\n \"CleanSession\": true,\n \"Resource\": \"abc\",\n \"Ip\": \"abc\",\n \"Port\": 0,\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Qos\": 0,\n \"MaxTasks\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"SelfBuilt\": true\n }\n },\n \"CreateTime\": \"abc\",\n \"ErrorMessage\": \"abc\",\n \"TaskProgress\": 0,\n \"TaskCurrentStep\": \"abc\",\n \"DatahubId\": \"abc\",\n \"StepList\": [\n \"abc\"\n ]\n }\n ]\n },\n \"RequestId\": \"abc\"\n }\n}",
|
410
410
|
"title": "查询Datahub任务列表"
|
411
411
|
}
|
412
412
|
],
|
@@ -574,7 +574,7 @@
|
|
574
574
|
{
|
575
575
|
"document": "",
|
576
576
|
"input": "https://ckafka.tencentcloudapi.com/?Action=FetchDatahubMessageByOffset\n&Name=xxx\n&Partition=1\n&Offset=1\n&<公共请求参数>",
|
577
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"
|
577
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"Topic\": \"abc\",\n \"Partition\": 0,\n \"Offset\": 0,\n \"Key\": \"abc\",\n \"Value\": \"abc\",\n \"Timestamp\": 0,\n \"Headers\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
578
578
|
"title": "消息查询"
|
579
579
|
}
|
580
580
|
],
|
@@ -40,7 +40,7 @@
|
|
40
40
|
},
|
41
41
|
{
|
42
42
|
"disabled": false,
|
43
|
-
"document": "软件的授权状态。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>Issued</td><td>已颁发,等待激活。一般来说,如果软件已经在运行,不会出现该状态。</td></tr><tr><td>Active</td><td>授权在有效期内,这是软件运行期间最常见的状态。</td></tr><tr><td>Expired</td><td>授权已过期。订阅类的软件授权有有效期,如果服务器时间已晚于有效期,则会进入过期状态。</td></tr><tr><td>
|
43
|
+
"document": "软件的授权状态。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>Issued</td><td>已颁发,等待激活。一般来说,如果软件已经在运行,不会出现该状态。</td></tr><tr><td>Active</td><td>授权在有效期内,这是软件运行期间最常见的状态。</td></tr><tr><td>Expired</td><td>授权已过期。订阅类的软件授权有有效期,如果服务器时间已晚于有效期,则会进入过期状态。</td></tr><tr><td>Isolated</td><td>授权已隔离。有截止日期的授权,当用户授权到期时,先进入此状态,用户可以去续费,超过7天不续费则授权进入Destroyed状态。</td></tr><tr><td>Destroyed</td><td>授权已失效/销毁。用户如果退货软件,则授权会自动失效。</td></tr></tbody></table>",
|
44
44
|
"example": "Active",
|
45
45
|
"member": "string",
|
46
46
|
"name": "LicenseStatus",
|
@@ -160,7 +160,7 @@
|
|
160
160
|
},
|
161
161
|
{
|
162
162
|
"disabled": false,
|
163
|
-
"document": "
|
163
|
+
"document": "授权过期时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
164
164
|
"example": "2025-06-30T00:00:00+08:00",
|
165
165
|
"member": "datetime_iso",
|
166
166
|
"name": "ExpirationDate",
|
@@ -4,7 +4,7 @@
|
|
4
4
|
{
|
5
5
|
"document": "",
|
6
6
|
"input": "POST / HTTP/1.1\nHost: cloudapp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VerifyLicense\n<公共请求参数>\n\n{}",
|
7
|
-
"output": "{\n \"Response\": {\n \"License\": {\n \"LicenseId\": \"
|
7
|
+
"output": "{\n \"Response\": {\n \"License\": {\n \"LicenseId\": \"LICENSE_CLOUDAPP_A95275D8\",\n \"LicenseMode\": \"Subscription\",\n \"LicenseStatus\": \"Active\",\n \"ProviderId\": 1,\n \"SoftwarePackageId\": \"pkg-kby01bv4\",\n \"SoftwarePackageVersion\": \"1.0.0\",\n \"AuthorizedUserUin\": \"100008888888\",\n \"AuthorizedCloudappId\": \"cloudapp\",\n \"AuthorizedCloudappRoleId\": \"4000008000060000\",\n \"AuthorizedSpecification\": [\n {\n \"ParamKey\": \"user_scale\",\n \"ParamValue\": \"100\",\n \"ParamKeyName\": \"用户规模\",\n \"ParamValueName\": \"100人\"\n }\n ],\n \"BillingMode\": 1,\n \"LifeSpan\": 1,\n \"IssueDate\": \"2020-09-22T00:00:00+00:00\",\n \"ActivationDate\": \"2020-09-22T00:00:00+00:00\",\n \"ExpirationDate\": \"2020-09-23T00:00:00+00:00\",\n \"LifeSpanUnit\": \"D\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
8
8
|
"title": "通过运行时roleId查询对应的软件 LICENSE"
|
9
9
|
}
|
10
10
|
]
|
@@ -9352,7 +9352,27 @@
|
|
9352
9352
|
"example": "invalid connection",
|
9353
9353
|
"member": "string",
|
9354
9354
|
"name": "Message",
|
9355
|
-
"
|
9355
|
+
"output_required": true,
|
9356
|
+
"type": "string",
|
9357
|
+
"value_allowed_null": false
|
9358
|
+
},
|
9359
|
+
{
|
9360
|
+
"disabled": false,
|
9361
|
+
"document": "报错原因",
|
9362
|
+
"example": "无",
|
9363
|
+
"member": "string",
|
9364
|
+
"name": "Reason",
|
9365
|
+
"output_required": false,
|
9366
|
+
"type": "string",
|
9367
|
+
"value_allowed_null": false
|
9368
|
+
},
|
9369
|
+
{
|
9370
|
+
"disabled": false,
|
9371
|
+
"document": "建议的修复方案",
|
9372
|
+
"example": "无",
|
9373
|
+
"member": "string",
|
9374
|
+
"name": "Solution",
|
9375
|
+
"output_required": false,
|
9356
9376
|
"type": "string",
|
9357
9377
|
"value_allowed_null": false
|
9358
9378
|
}
|
@@ -4445,7 +4445,7 @@
|
|
4445
4445
|
},
|
4446
4446
|
{
|
4447
4447
|
"disabled": false,
|
4448
|
-
"document": "状态码。\n- 取值范围:\n0:正常。\n1:停机。\n2:销号。\
|
4448
|
+
"document": "状态码。\n- 取值范围:\n0:正常。\n1:停机。\n2:销号。\n4:不在网。\n99:未知状态。",
|
4449
4449
|
"example": "1",
|
4450
4450
|
"member": "int64",
|
4451
4451
|
"name": "StatusCode",
|
@@ -693,6 +693,58 @@ def doQueryHunyuanImageChatJob(args, parsed_globals):
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
694
|
|
695
695
|
|
696
|
+
def doChatTranslations(args, parsed_globals):
|
697
|
+
g_param = parse_global_arg(parsed_globals)
|
698
|
+
|
699
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
700
|
+
cred = credential.CVMRoleCredential()
|
701
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
702
|
+
cred = credential.STSAssumeRoleCredential(
|
703
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
704
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
705
|
+
)
|
706
|
+
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):
|
707
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
708
|
+
else:
|
709
|
+
cred = credential.Credential(
|
710
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
711
|
+
)
|
712
|
+
http_profile = HttpProfile(
|
713
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
714
|
+
reqMethod="POST",
|
715
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
716
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
717
|
+
)
|
718
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
719
|
+
if g_param[OptionsDefine.Language]:
|
720
|
+
profile.language = g_param[OptionsDefine.Language]
|
721
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
722
|
+
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
723
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
724
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
725
|
+
model = models.ChatTranslationsRequest()
|
726
|
+
model.from_json_string(json.dumps(args))
|
727
|
+
start_time = time.time()
|
728
|
+
while True:
|
729
|
+
rsp = client.ChatTranslations(model)
|
730
|
+
result = rsp.to_json_string()
|
731
|
+
try:
|
732
|
+
json_obj = json.loads(result)
|
733
|
+
except TypeError as e:
|
734
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
735
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
736
|
+
break
|
737
|
+
cur_time = time.time()
|
738
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
739
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
740
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
741
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
742
|
+
else:
|
743
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
744
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
745
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
|
+
|
747
|
+
|
696
748
|
def doActivateService(args, parsed_globals):
|
697
749
|
g_param = parse_global_arg(parsed_globals)
|
698
750
|
|
@@ -977,6 +1029,7 @@ ACTION_MAP = {
|
|
977
1029
|
"GetThreadMessage": doGetThreadMessage,
|
978
1030
|
"ChatCompletions": doChatCompletions,
|
979
1031
|
"QueryHunyuanImageChatJob": doQueryHunyuanImageChatJob,
|
1032
|
+
"ChatTranslations": doChatTranslations,
|
980
1033
|
"ActivateService": doActivateService,
|
981
1034
|
"GetThreadMessageList": doGetThreadMessageList,
|
982
1035
|
"SetPayMode": doSetPayMode,
|