Creating an Object-level Comparison Task
Function
This API is used to create an object-level comparison task.
URI
POST /v3/{project_id}/jobs/{job_id}/object/compare
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region. For details, see Obtaining a Project ID. |
job_id |
Yes |
String |
Task 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 Enumerated values:
|
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
compare_task_num |
No |
Integer |
Number of comparison task threads. This parameter is available only for tasks of cloudDataGuard-cassandra and cloudDataGuard-gausscassandra-to-gausscassandra. |
Response Parameters
None
Example Request
Creating an object-level comparison task
https://{endpoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/a2b4999c-0acf-45eb-843d-5c1cdb2jb201/object/compare { "compare_task_num" : 2 }
Example Response
Status code: 202
OK
{ }
Status code: 400
Bad Request
{ "error_code" : "DRS.10000024", "error_msg" : "Another operation is being performed on the migration task or the migration task is abnormal." }
Status Code
Status Code |
Description |
---|---|
202 |
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