1
0
forked from docs/doc-exports
doc-exports/docs/dis/api-ref/BatchStartTransferTask.html
Xiong, Chen Xiao 83fa2f6615 DIS API 20230116 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
2023-06-27 15:26:05 +00:00

6.6 KiB

Starting Dump Tasks in Batches

Function

This API is used to start dump tasks in batches.

URI

POST /v2/{project_id}/streams/{stream_name}/transfer-tasks/action

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

stream_name

Yes

String

Name of the stream to be queried.

Maximum: 60

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

action

Yes

String

Dump task operation. The value can only be start, which indicates starting a dump task.

Enumeration values:

  • start

tasks

Yes

Array of BatchTransferTask objects

List of dump tasks to be operated.

Table 3 BatchTransferTask

Parameter

Mandatory

Type

Description

id

Yes

String

Dump task ID.

Response Parameters

None

Example Requests

Starting Dump Tasks in Batches

POST https://{Endpoint}/v2/{project_id}/streams/{stream_name}/transfer-tasks/action

{
  "action" : "start",
  "tasks" : [ {
    "id" : "9dSu1wfCytSk1aOLxvF"
  } ]
}

Example Responses

None

Status Codes

Status Code

Description

200

Normal response.

Error Codes

See Error Codes.