Querying the Asynchronous Pre-check Result of Shard Configuration (a V3 API)
Function
This API is used to query the asynchronous pre-check result of shard configuration.
URI
GET /v3/{project_id}/instances/{instance_id}/databases/{db_name}/migration/precheck/{job_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID of a tenant in a region |
| instance_id | Yes | String | DDM instance ID |
| db_name | Yes | String | Schema name |
| job_id | Yes | String | Workflow ID. For details about how to obtain the value of this parameter, see Pre-checking Shard Configuration (a V3 API). |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| pre_check_results | Array of PreCheckResult objects | Pre-verification results |
| job_id | String | Pre-verification task ID, |
| Parameter | Type | Description |
|---|---|---|
| name | String | Check item |
| status | String | Check result, which can be: SUCCESS: successful FAILED: failed WARN: Warning |
| note | String | Prompt information |
| handling_suggestion | String | Modification suggestions |
| error_message | String | Error message |
| error_detail_message | String | Error details |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code |
| error_msg | String | Error message |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code |
| error_msg | String | Error message |
Example Request
None
Example Response
Status code: 200
{
"job_id": "65c77858-e6a2-4694-8810-ab0b501b0003",
"pre_check_results": [
{
"name": "Expire time of binlog in associated DN instances",
"status": "SUCCESS",
"note": "",
"handling_suggestion": "Configuring shards require expiration of binlog more than 7 days(604800 seconds), please change binlog_expire_logs_seconds",
"error_message": "",
"error_detail_message": ""
},
{
"name": "Tables with overwhelming table partitions",
"status": "SUCCESS",
"note": "",
"handling_suggestion": "Every single row from source table will be recalculated and routed to all new partition table when shard number is changed. Because your partition table number will be overwhelming after configuring shard, shard configuring will take too long to finish. Please contact customer service.",
"error_message": "",
"error_detail_message": ""
}
]
} Status code: 400
Bad request
{
"error_msg" : "Parameter error.",
"error_code" : "DBS.280001"
} Status code: 500
Server error
{
"error_msg" : "Parameter error.",
"error_code" : "DBS.280001"
} Status Codes
| Status Codes | Description |
|---|---|
| 200 | OK |
| 400 | Bad request |
| 500 | Server error |
Error Codes
For details, see Error Codes.
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