Obtaining Job Progress
Function
This API is used to query the job progress.
URI
GET /v2/{project_id}/instances/{instance_id}/assets/jobs/{job_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
instance_id |
Yes |
String |
Instance ID. |
|
project_id |
Yes |
String |
Project ID. For details about how to obtain a project ID, see "Appendix" > "Obtaining a Project ID" in this document. |
|
job_id |
Yes |
String |
Job ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token, which can be obtained by calling the IAM API (value of X-Subject-Token in the response header). |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Job ID. |
|
type |
String |
Job type. |
|
status |
String |
Job status. |
|
reason |
Array of AssetJobReason objects |
Cause of a job failure. |
|
progress_percent |
Float |
Job progress percentage. |
|
archive_id |
String |
ID of the asset package to download when the job is exported. |
|
begin_time |
String |
Start time of the job. |
|
end_time |
String |
End time of the job. |
|
Parameter |
Type |
Description |
|---|---|---|
|
resource_type |
String |
Resource type. |
|
resource_name |
String |
Resource name. |
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
error_details |
String |
Error information. |
|
request_id |
String |
Request ID. |
Example Requests
None
Example Responses
Status code: 200
OK
{
"id" : "ff8080814dbd65d7014dbe0d84db0013",
"type" : "exportAsset",
"status" : "Running",
"reason" : [ {
"resource_type" : "application",
"resource_name" : "myApp",
"error_code" : "ROMA.00000101",
"error_msg" : "some error details here"
} ],
"progress_percent" : 0.35,
"archive_id" : "string",
"begin_time" : "2019-12-06T06:49:04Z",
"end_time" : "2019-12-06T06:50:04Z"
}
Status code: 403
Forbidden
{
"error_code" : "ROMA.00000101",
"error_msg" : "error summary",
"error_details" : "some error details here",
"request_id" : "13760c1fe8655e61209b75665e9bef43"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
403 |
Forbidden |
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.