Querying the Job Execution Result of a Tenant
Function
This API is used to query the task execution result.
URI
GET /v2/{project_id}/jobs/{job_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition Project ID. For details, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
|
job_id |
Yes |
String |
Definition Task ID. Constraints N/A Range N/A Default Value N/A |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
job_id |
String |
Definition Task ID. Range N/A |
|
job_type |
String |
Definition Job type. Range
|
|
status |
String |
Definition Job status. Range
|
|
begin_time |
String |
Definition Job start timestamp, in ms. The format is 1684191545379. Range N/A |
|
end_time |
String |
Definition Job start timestamp, in ms. The format is 1684191548248. Range N/A |
|
fail_reason |
String |
Definition Failure cause. Range N/A |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition Error information. Range N/A |
|
error_code |
String |
Definition Error code. Range For details, see Error Codes. |
|
error_ext_msg |
String |
Definition Extended error information. This parameter is not used currently and is set to null. Range N/A |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition Error information. Range N/A |
|
error_code |
String |
Definition Error code. Range For details, see Error Codes. |
|
error_ext_msg |
String |
Definition Extended error information. This parameter is not used currently and is set to null. Range N/A |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition Error information. Range N/A |
|
error_code |
String |
Definition Error code. Range For details, see Error Codes. |
|
error_ext_msg |
String |
Definition Extended error information. This parameter is not used currently and is set to null. Range N/A |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition Error information. Range N/A |
|
error_code |
String |
Definition Error code. Range For details, see Error Codes. |
|
error_ext_msg |
String |
Definition Extended error information. This parameter is not used currently and is set to null. Range N/A |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition Error information. Range N/A |
|
error_code |
String |
Definition Error code. Range For details, see Error Codes. |
|
error_ext_msg |
String |
Definition Extended error information. This parameter is not used currently and is set to null. Range N/A |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot