forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
17 KiB
17 KiB
Asynchronous Job Query
Function
This API is an extension one. It is used to query the execution status of an asynchronous job, for example, an image exporting job.
Request
Response
- Response parameters
Parameter
Type
Description
status
String
Specifies the job status. The value can be:
- SUCCESS: The job is successfully executed.
- FAIL: The job failed to be executed.
- RUNNING: The job is in progress.
- INIT: The job is being initialized.
job_id
String
Specifies the task ID.
job_type
String
Specifies the job type.
begin_time
String
Specifies the start time of the job. The value is in UTC format.
end_time
String
Specifies the end time of the job. The value is in UTC format.
error_code
String
Specifies the error code.
fail_reason
String
Specifies the cause of the failure.
entities
Object
Specifies the custom attributes of the job.
If the job status is normal, the image ID will be returned. If the status is abnormal, an error code and details will be returned.
For details, see Table 2.
- Example response
STATUS CODE 200
1 2 3 4 5 6 7 8 9 10 11 12
{ "status": "SUCCESS", "entities": { "image_id": "e9e91bff-14b6-4a0b-8377-4ed0813e3360" }, "job_id": "ff8080814dbd65d7014dbe0d84db0013", "job_type": "createImageByInstance", "begin_time": "04-Jun-2015 18:11:06:586", "end_time": "", "error_code": null, "fail_reason": null }
Returned Values
Parent topic: IMS APIs