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

  1. Call an IAM API to obtain a user token by referring to Authentication.
  2. Obtain the ID of the task to be queried by referring to Obtaining a Task ID.
  3. 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"
        } ]
      }