You are not logged in.
BatchCheckJobs
This document is sourced from Support Center
This API is used to perform batch pre-check to check whether the migration, synchronization, DR can be performed.
You can debug the API in API Explorer to support automatic authentication. API Explorer can automatically generate and debug example SDK code.
POST /v3/{project_id}/jobs/batch-precheck
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. |
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 |
The list of batch pre-check requests. For details, see Table 4. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
job_id |
Yes |
String |
Task ID. |
precheck_mode |
Yes |
String |
Pre-check mode. Values:
|
Status code: 200
Parameter |
Type |
Description |
---|---|---|
results |
Array of objects |
Pre-check response body. For details, see Table 6. |
count |
Integer |
Total number. |
Performing a pre-check for a MySQL real-time migration task
https://{endpoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/batch-precheck { "jobs" : [ { "job_id" : "140b5236-88ad-43c8-811c-1268453jb101", "precheck_mode" : "forStartJob" } ] }
Status code: 200
OK
{ "results" : [ { "id" : "140b5236-88ad-43c8-811c-1268453jb101", "status" : "success", "precheck_id" : "140b5236-88ad-43c8-811c-1268453jb101" } ], "count" : 1 }
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
For details, see Error Code.