This is an extension API. It is used to query for the execution status of an asynchronous job, for example, querying for the execution status of an image exporting job.
Parameter |
Type |
Description |
---|---|---|
status |
String |
Specifies the job status. The value can be:
|
job_id |
String |
Specifies the job 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 failure cause. |
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. |
Parameter |
Type |
Description |
---|---|---|
image_id |
String |
Specifies the image ID. |
current_task |
String |
Specifies the job name. |
image_name |
String |
Specifies the image name. |
process_percent |
Double |
Specifies the job progress. |
results |
Array of result objects |
Specifies job execution results. For details, see Table 3. |
sub_jobs_result |
Array of SubJobResult objects |
Specifies sub-job execution results. For details, see Table 4. |
sub_jobs_list |
Array of string |
Specifies the sub-job IDs. |
Parameter |
Type |
Description |
---|---|---|
image_id |
String |
Specifies the image ID. |
project_id |
String |
Specifies the project ID. |
status |
String |
Specifies the job status. |
Parameter |
Type |
Description |
---|---|---|
status |
String |
Specifies the sub-job status. The value can be:
|
job_id |
String |
Specifies a sub-job ID. |
job_type |
String |
Specifies the sub-job type. |
begin_time |
String |
Specifies the start time of the sub-job. The value is in UTC format. |
end_time |
String |
Specifies the end time of the sub-job. The value is in UTC format. |
error_code |
String |
Specifies the error code. |
fail_reason |
String |
Specifies the failure cause. |
entities |
Object SubJobEntities |
Specifies the custom attributes of the sub-job. For details, see Table 5.
|
STATUS CODE 200
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | { "status": "SUCCESS", "entities": { "image_id": "e9e91bff-14b6-4a0b-8377-4ed0813e3360", "image_name": "asdfasdfasdfas", "process_percent": 0.20, "current_task": "CreateImageByInstanceTask", "results": [{ "image_id": "49e9447f-7dff-41e0-8036-f66fe5488c8b", "project_id": "089b2f9a3d80d3062f24c00ca4ed5cbd", "status": "success" } ] }, "job_id": "ff8080814dbd65d7014dbe0d84db0013", "job_type": "createImageByInstance", "begin_time": "04-Jun-2015 18:11:06:586", "end_time": "", "error_code": null, "fail_reason": null } |