Asynchronous Job Query
Function
This API is used to query the execution status of an asynchronous job.
URI
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Specifies the project ID of the operator. |
|
job_id |
Yes |
String |
Specifies the unique ID assigned to the job for querying the execution status in Combined API. |
Request
None
Response
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
String |
Specifies the job execution status. SUCCESS: indicates that the job was successfully executed. FAIL: indicates that the job failed. RUNNIGN: indicates that the job is in progress. INIT: indicates that the job is being initialized. |
|
entities |
Dictionary data structure |
Specifies the resource information or error information. The ELB resource ID is used as an example in the response example. |
|
job_id |
String |
Specifies the unique ID assigned to the job for querying the execution status in Combined API. |
|
job_type |
String |
Specifies the task type. |
|
error_code |
String |
Specifies the error code. |
|
fail_reason |
String |
Specifies the cause of an error. |
- Example response
{ "status":"RUNNING", "entities": {"elb_id":"ea3e5715b68850a747ec41f335625c08"}, "job_id":"4010b39b4fd3d5ff014fd943bac41619", "job_type":"deleteELB", "begin_time":"2015-09-17T03:05:38.756Z", "end_time":"", "error_code":null, "fail_reason":null }
Returned Values
- Normal
- Abnormal
Returned Value
Description
400 badRequest
Request error
401 unauthorized
Authentication failed.
403 userDisabled
You do not have the rights to perform the operation.
404 Not Found
The requested page does not exist.
500 authFault
Internal service error.
503 serviceUnavailable
The service is unavailable.
Last Article: HTTP Status Codes of Shared Load Balancers
Next Article: Monitoring Metrics
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.