调用 DescribeTransmissionTasks 接口查看传输任务列表。
同步请求。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
TaskType | String | 是 | DataMigration | 任务类型。取值如下:
|
PageNumber | Integer | 否 | 1 | 页码。取值范围 1~1000,默认值为 1。 |
PageSize | Integer | 否 | 10 | 每页记录数。取值范围 1~1000,默认值为 10。 |
StartTime | Integer | 否 | 1679279179688 | 任务开始时间,使用毫秒时间戳格式。 说明
|
EndTime | Integer | 否 | 1679279179699 | 任务结束时间,使用毫秒时间戳格式。 说明
|
TaskStatus | String | 否 | Terminating | 任务状态,取值如下:
|
Name | String | 否 | test**** | 任务名称。命名规则:
|
Ids | Array of String | 否 | 78b65776a25d4970a1c82bd2f35**** | 任务 ID 的列表。 |
ChargeType | String | 否 | PostPaid | 计费类型,取值如下:
|
ProjectName | String | 否 | default | 项目名称。 说明 您可以调用 CreateProject 接口创建项目。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Total | Integer | 1 | 任务总数量。 |
Tasks | Array of TaskInfo |
| 任务列表。详细信息,请参见 TaskInfo。 |
POST /?Action=DescribeTransmissionTasks&Version=2022-10-01 HTTP/1.1 Content-Type: application/json Host:dts.volcengineapi.com X-Date: 20221001T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20221001/cn-beijing/dts/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645**** { "TaskType": "DataSubscription", "PageNumber": 1, "PageSize":10 }
{ "ResponseMetadata": { "RequestId": "202303201012545D1AD5D48733EB0D3AE8", "Action": "DescribeTransmissionTasks", "Version": "2022-10-01", "Service": "dts", "Region": "cn-beijing" }, "Result": { "Tasks": [ { "AddSyncObjectAllowed": true, "ChargeDetail": { "ChargeStatus": "Init", "ChargeType": "PostPaid", "OrderNo": "" }, "DestConfig": { "DataSourceId": "322", "EndpointType": "Volc_Kafka", "VolcKafkaSettings": { "AuthType": "PLAIN", "InstanceId": "kafka-cnngfsm7gl******", "InstanceName": "", "Password": "******", "RegionSettings": { "Region": "" }, "Topic": "hua", "Username": "kakatest****" } }, "EnableCloudMonitor": true, "EnableDataValidation": false, "EndTime": 0, "ProgressSummary": { "Infos": [ { "ErrorInfo": "", "NameCN": "增量订阅", "ProgressType": "Incr", "Status": "Todo" } ] }, "ProjectName": "default", "SrcConfig": { "DataSourceId": "321", "EndpointType": "Volc_PostgreSQL", "VolcPostgreSQLSettings": { "DBInstanceId": "postgres-338f4f******", "DBInstanceName": "", "DBName": "test****zaizai", "Password": "******", "RegionSettings": { "Region": "cn-beijing" }, "Username": "test****zaizai" } }, "StartTime": 1661242976288, "TaskId": "c37008625ddd44019ee85b84fb8*****", "TaskName": "test****zaizai", "TaskStatus": "Init", "TaskSubType": "Default", "TaskType": "DataSubscription", "TenantId": "2100157781", "TrafficSpec": "Compact" } ], "Total": 1 } }
更多详情,请参见错误码。