Querying the Job Execution Result of a Tenant
Function
This API is used to query the task execution result.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/jobs/{job_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details, see Obtaining a Project ID. |
| job_id | Yes | String | Task ID. |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| job_id | String | Task ID. |
| job_type | String | Job type. Options:
|
| status | String | Job status. Values:
|
| begin_time | String | Job start timestamp, in ms. The format is 1684191545379. |
| end_time | String | Job start timestamp, in ms. The format is 1684191548248. |
| fail_reason | String | Failure cause. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error message. |
| error_code | String | Error code. |
| error_ext_msg | String | Extended error information. This parameter is not used currently and is set to null. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error message. |
| error_code | String | Error code. |
| error_ext_msg | String | Extended error information. This parameter is not used currently and is set to null. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error message. |
| error_code | String | Error code. |
| error_ext_msg | String | Extended error information. This parameter is not used currently and is set to null. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error message. |
| error_code | String | Error code. |
| error_ext_msg | String | Extended error information. This parameter is not used currently and is set to null. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error message. |
| error_code | String | Error code. |
| error_ext_msg | String | Extended error information. This parameter is not used currently and is set to null. |
Example Requests
GET https://{dcs_endpoint}/v2/{project_id}/jobs/{job_id} Example Responses
Status code: 200
Details of the background task queried successfully.
{
"job_id" : "ff8080818822bbf70188235afc24141a",
"job_type" : "masterStandbySwapJob",
"status" : "SUCCESS",
"begin_time" : "1684191545379",
"end_time" : "1684191548248",
"fail_reason" : null
} Status code: 400
Invalid request.
{
"error_code" : "111400063",
"error_msg" : "Invalid {0} parameter in the request."
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Details of the background task queried successfully. |
| 400 | Invalid request. |
| 401 | Invalid authentication information. |
| 403 | Request rejected. |
| 404 | The requested resource could not be found. |
| 500 | Internal service error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.