Restarting a Migration Task Group
Function
This API is used to restart a failed migration task group.
Calling Method
For details, see Calling APIs.
URI
PUT /v2/{project_id}/taskgroups/{group_id}/retry
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
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
The token used for IAM authentication. Minimum length: 1 character Maximum length: 16,384 characters |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
src_ak |
No |
String |
The AK for accessing the source. Enter a maximum of 100 characters. Minimum length: 0 characters Maximum length: 100 characters |
src_sk |
No |
String |
The SK for accessing the source. Enter a maximum of 100 characters. Minimum length: 0 characters 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 |
No |
String |
The AK for accessing the destination. Enter a maximum of 100 characters. Minimum length: 0 characters Maximum length: 100 characters |
dst_sk |
No |
String |
The SK for accessing the destination. Enter a maximum of 100 characters. Minimum length: 0 characters Maximum length: 100 characters |
source_cdn_authentication_key |
No |
String |
The CDN authentication key. Minimum length: 0 characters Maximum length: 255 characters |
migrate_failed_object |
No |
Boolean |
The retry mode of failed tasks. It specifies whether to migrate all objects in the failed tasks again. If the value is true, only failed objects will be migrated again. If the value is false or not specified, all objects will be migrated again. By default, the objects that have been migrated to the destination are skipped. Default value: false |
Response
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
The error message. |
error_code |
String |
The error code. |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
The error message. |
error_code |
String |
The error code. |
Example Request
This example retries 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/2c11d99a-9596-4bc6-a6ad-2336455b149c/retry { "src_ak" : "src_AK", "src_sk" : "src_SK", "dst_ak" : "dst_AK", "dst_sk" : "dst_SK", "migrate_failed_object" : false }
Example Response
None
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
403 |
Forbidden |
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.