Help Center/
Data Replication Service/
API Reference/
Application Examples/
Scenario 3: Starting Tasks in Batches
Updated on 2023-09-13 GMT+08:00
Scenario 3: Starting Tasks in Batches
Scenarios
This section describes how to start multiple configuration tasks by calling an API.
Procedure
- Call an IAM API to obtain a user token by referring to Authentication.
- Obtain the ID of the task to be queried by referring to Obtaining a Task ID.
- URI format: /v3/{project_id}/jobs/batch-starting
- Example request:
POST: https://{endpoint}/ /v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/batch-starting
Obtain the endpoint from Regions and Endpoints.
- Request example:
https://{endpoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/batch-starting { "jobs" : [ { "job_id" : "140b5236-88ad-43c8-811c-1268453jb101" } ] }
- Example Response:
{ "count" : 1, "results" : [ { "id" : "140b5236-88ad-43c8-811c-1268453jb101", "status" : "success" } ] }
- Example request:
Parent topic: Application Examples
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot