Updated on 2024-12-30 GMT+08:00

Resuming a Migration Task Group

Function

This API is used to resume a paused migration task group with the specified ID.

Calling Method

For details, see Calling APIs.

URI

PUT /v2/{project_id}/taskgroups/{group_id}/start

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

The project ID.

Minimum length: 1 character

Maximum length: 1,024 characters

group_id

Yes

String

The task group ID.

Minimum length: 1 character

Maximum length: 1,024 characters

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

The token used for IAM authentication.

Minimum length: 1 character

Maximum length: 16,384 characters

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

src_ak

No

String

The AK for accessing the source node. Enter a maximum of 100 characters. This parameter is not required for URL list-based migration task groups.

Minimum length: 1 character

Maximum length: 100 characters

src_sk

No

String

The SK for accessing the source node. Enter a maximum of 100 characters. This parameter is not required for URL list-based migration task groups.

Minimum length: 1 character

Maximum length: 100 characters

json_auth_file

No

String

The file used for Google Cloud Storage authentication.

Minimum length: 0 characters

Maximum length: 65,535 characters

dst_ak

Yes

String

The AK for accessing the destination node. Enter a maximum of 100 characters.

Minimum length: 1 character

Maximum length: 100 characters

dst_sk

Yes

String

The SK for accessing the destination node. Enter a maximum of 100 characters.

Minimum length: 1 character

Maximum length: 100 characters

source_cdn_authentication_key

No

String

The CDN authentication key.

Minimum length: 0 characters

Maximum length: 255 characters

Response

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_msg

String

The error message.

error_code

String

The error code.

Status code: 403

Table 5 Response body parameters

Parameter

Type

Description

error_msg

String

The error message.

error_code

String

The error code.

Example Request

This example resumes the migration task group whose ID is 2c11d99a-9596-4bc6-a6ad-2336455b149c using the AK/SK pairs of the source and destination accounts.

PUT https://{endpoint}/v2/{project_id}/taskgroups/00878453-3402-4a86-9e2a-5d5217cd35b2/start

{
  "src_ak" : "src_AK",
  "src_sk" : "src_SK",
  "dst_ak" : "dst_AK",
  "dst_sk" : "dst_AK"
}

Example Response

None

Status Codes

Status Code

Description

200

OK

400

Bad Request

403

Forbidden

Error Codes

For details, see Error Codes.