Querying the Status of a Task
Function
This API is used to query the execution status of the SFS Turbo asynchronous API. For example, you can query the task execution status using the jobId returned after you call the API for binding to an LDAP server.
URI
GET /v1/{project_id}/sfs-turbo/jobs/{job_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
The project ID. |
job_id |
Yes |
String |
job ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
The account token. |
Content-Type |
Yes |
String |
The MIME type. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
X-request-id |
String |
The request ID. |
Parameter |
Type |
Description |
---|---|---|
status |
String |
The task status, which can be success, running, failed, or waiting. Enumeration values:
|
job_id |
String |
The task ID. |
job_type |
String |
The task type. |
begin_time |
String |
The task start time in UTC format, for example, 2016-01-02 15:04:05. |
end_time |
String |
The task end time in UTC format, for example, 2016-01-02 15:04:05. |
error_code |
String |
The error code returned if the task execution fails. |
fail_reason |
String |
The cause of the task execution failure. |
sub_jobs |
Array of GetSubJobDetail objects |
The subtask list. |
Parameter |
Type |
Description |
---|---|---|
status |
String |
The subtask status. The value can be success, running, failed, or waiting. |
job_id |
String |
The subtask ID. |
job_type |
String |
The subtask type. |
begin_time |
String |
The subtask start time in UTC format, for example, 2016-01-02 15:04:05. |
end_time |
String |
The subtask end time in UTC format, for example, 2016-01-02 15:04:05. |
error_code |
String |
The error code returned if the subtask execution fails. |
fail_reason |
String |
The cause of the subtask execution failure. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
X-request-id |
String |
The request ID. |
Parameter |
Type |
Description |
---|---|---|
errCode |
String |
The error code. |
errMsg |
String |
The error message. |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
X-request-id |
String |
The request ID. |
Parameter |
Type |
Description |
---|---|---|
errCode |
String |
The error code. |
errMsg |
String |
The error message. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
X-request-id |
String |
The request ID. |
Parameter |
Type |
Description |
---|---|---|
errCode |
String |
The error code. |
errMsg |
String |
The error message. |
Example Requests
None
Example Responses
Status code: 200
Response body parameter
{ "job_id" : "26f6b565-xxxx-XXXX-xxxx-03f0bd975433", "status" : "success", "job_type" : "bind_ldap", "begin_time" : "2023-07-26 09:33:58", "end_time" : "2023-07-26 09:33:58" }
Status code: 400
Client error
{ "errCode" : "SFS.TURBO.0001", "errMsg" : "parameter error" }
Status code: 404
Resource not found
{ "errCode" : "SFS.TURBO.0001", "errMsg" : "parameter error" }
Status code: 500
Internal error
{ "errCode" : "SFS.TURBO.0005", "errMsg" : "Internal server error" }
Status Codes
Status Code |
Description |
---|---|
200 |
Response body parameter |
400 |
Client error |
404 |
Resource not found |
500 |
Internal error |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot