Querying Job Status on the Management Plane (1.0.0)
Function
This API is used to query the execution status of a job. Asynchronous APIs that are used to create, stop, start, delete, and import graphs will return job IDs after commands are sent. You can query the job execution status according to the job IDs.
URI
GET /v1.0/{project_id}/graphs/{graph_id}/jobs/{job_id}/status
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
graph_id |
Yes |
String |
Graph ID |
job_id |
Yes |
String |
ID of the asynchronous job |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It is used to obtain the permission to call APIs. For details about how to obtain the token, see Authentication. The value of X-Subject-Token in the response header is the token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
errorMessage |
String |
System prompt.
|
errorCode |
String |
System prompt.
|
jobId |
String |
Job ID |
status |
String |
Job status. The options are:
|
jobType |
String |
Job type |
jobName |
String |
Job name |
relatedGraph |
String |
Associated graph name |
beginTime |
String |
Job start time (UTC). The format is (yyyy-MM-dd HH:mm:ss). |
endTime |
String |
Job end time (UTC). The format is (yyyy-MM-dd HH:mm:ss). |
jobDetail |
JobDetail object |
This parameter is returned only when jobName is set to ImportGraph and is used to display graph import details. |
failReason |
String |
Job failure cause |
jobProgress |
Double |
Job execution progress. It is a reserved field, and not used currently. |
Parameter |
Type |
Description |
---|---|---|
schemaPath |
Array of schemaPath objects |
Path for storing metadata |
edgesetPath |
Array of edgesetPath objects |
Path for storing the edge data set |
vertexsetPath |
Array of vertexsetPath objects |
Path for storing the vertex data set |
Parameter |
Type |
Description |
---|---|---|
path |
String |
OBS storage path |
log |
String |
Import log |
status |
String |
OBS file status:
|
cause |
String |
Import failure cause |
Parameter |
Type |
Description |
---|---|---|
path |
String |
OBS storage path |
log |
String |
Import log |
status |
String |
OBS file status:
|
cause |
String |
Import failure cause |
totalLines |
Long |
The total number of imported lines, which is subject to your quota and the specifications of the created graph. The value -1 indicates that this field is not returned in the current version. |
failedLines |
Long |
Lines failed to be imported. The value -1 indicates that this field is not returned in the current version. |
successfulLines |
Long |
Lines imported successfully. The value -1 indicates that this field is not returned in the current version. |
Parameter |
Type |
Description |
---|---|---|
path |
String |
OBS storage path |
log |
String |
Import log |
status |
String |
OBS file status:
|
cause |
String |
Import failure cause |
totalLines |
Long |
Total number of imported lines. The value is subject to your quota and specifications of the created graph. If the value is -1, this parameter is not supported by the current version. |
failedLines |
Long |
Lines failed to be imported. The value -1 indicates that this field is not returned in the current version. |
successfulLines |
Long |
Lines imported successfully. The value -1 indicates that this field is not returned in the current version. |
Example Request
GET https://Endpoint/v1.0/{project_id}/graphs/{graph_id}/jobs/{job_id}/status
Example Response
Status code: 200
OK
Http Status Code: 200 { "jobId": "ff80808167f09aaa0167f19b35ec0305", "status": "success", "jobType": "GraphManagement", "jobName": "ImportGraph", "relatedGraph": "GES_UI_AUTO", "beginTime": "2018-11-27T21:39:00", "endTime": "2018-11-27T21:39:56", "jobDetail": { "vertexsetPath": [ { "path": "ges-ui/auDatas/list_set_vertex.csv", "log": null, "cause": null, "status": "success" } ], "edgesetPath": [ { "path": "ges-ui/auDatas/list_set_edge.csv", "log": null, "cause": null, "status": "success" } ], "schemaPath": [ { "path": "ges-ui/auDatas/list_set_schema.xml", "log": null, "cause": null, "status": "success" } ] }, "jobProgress": 0 }
Status code: 400
Bad Request
{ "errorMessage" : "can not find job, jobId is ff808081646e81d40164c5fb414b2b1a1", "errorCode" : "GES.8301" }
Status Codes
Status Code |
Description |
---|---|
200 |
Request sent. |
400 |
Request error. |
401 |
Authentication failed. |
403 |
No operation permissions. |
404 |
No resources found. |
500 |
Internal server error. |
503 |
Service unavailable. |
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