Resuming or Retrying Tasks in Batches
Function
- This API is used to retry failed tasks.
- You can resume a suspended task.
- In the dual-active DR scenario, the parent task cannot call the API.
Debugging
You can debug the API in API Explorer to support automatic authentication. API Explorer can automatically generate and debug example SDK code.
URI
POST /v3/{project_id}/jobs/batch-retry-task
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region For details about how to obtain the project ID, see Obtaining a Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
The content type. The default value is application/json. |
X-Auth-Token |
Yes |
String |
User token obtained from IAM. |
X-Language |
No |
String |
Request language type Default value: en-us Values:
|
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
jobs |
Yes |
Array of objects |
List of requests for resuming upload tasks in batches. For details, see Table 4. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
results |
Array of objects |
List of tasks that can be resumed in batches. For details, see Table 6. |
count |
Integer |
Total number. |
Example Request
Resuming specified tasks in batches
https://{endpoint}/v3/054babbbde80d4602f5cc0043a40ed8c/jobs/batch-retry-task { "jobs" : [ { "job_id" : "140b5236-88ad-43c8-811c-1268453jb101" } ] }
Example Response
Status code: 200
OK
{ "results" : [ { "id" : "140b5236-88ad-43c8-811c-1268453jb101", "status" : "success" } ], "count" : 1 }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot