Querying the Task Execution Status List
URI
GET /v1/{project_id}/cloud-phone/jobs?request_id={request_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
|
request_id |
Yes |
String |
Specifies the request ID in the response after the task request is issued. |
Request
Response
- Response parameters
Parameter
Type
Description
request_id
String
Specifies the request ID, which is unique.
jobs
Array of objects
Specifies the task information. For details, see Table 2.
Table 2 job field description Parameter
Type
Description
phone_id
String
Specifies the unique ID of a cloud phone. This parameter is contained in tasks related to cloud phones.
server_id
String
Specifies the unique ID of a Cloud Phone server. This parameter is contained in tasks related to cloud phone servers.
encode_server_id
String
Specifies the unique ID of the encoding server. This parameter is contained in tasks related to the encoding server.
job_id
String
Specifies the unique ID of a task.
begin_time
String
Specifies the task start time.
The time format is UTC, YYYY-MM-DDTHH:MM:SSZ.
end_time
String
Specifies the task end time.
The time format is UTC, YYYY-MM-DDTHH:MM:SSZ.
status
Integer
Specifies the task status. The value can be any of the following:
- 1: The task is running.
- 2: The task succeeds.
- -1: The task fails.
error_code
String
Specifies the task error code.
error_msg
String
Specifies the task error code description.
execute_msg
String
Specifies the content returned after a task is executed. The value can contain a maximum of 1024 bytes.
- Example response
{ "request_id": "6a63a18b8bab40ffb71ebd9cb80d0085", "jobs": [ { "phone_id": "1234567b8bab40ffb711234cb80d0234", "server_id": "1e223c8e-3ad0-4bf0-a837-bc90d4f91d01", "node_id": "1e223c8e-3ad0-4bf0-a837-bc90d4f91d01", "job_id": "1564567b8bab40f34711234cb80d0123", "begin_time": "2017-10-25T00:00:00Z", "end_time": "2017-10-25T00:00:30Z", "status": -1, "error_code": "CPS0005", "error_msg": "Phone not found." }, { "phone_id": "abc4567b8bab40ffb711234cb80d0abc", "server_id": "1e223c8e-3ad0-4bf0-a837-bc90d4f91d01", "node_id": "1e223c8e-3ad0-4bf0-a837-bc90d4f91d01", "job_id": "1564567b8bab40f34711234cb80d0456", "begin_time": "2017-10-25T00:00:00Z", "end_time": "2017-10-25T00:00:32Z", "status": 2, "error_code": "", "error_msg": "" } ] }
Returned Values
See Returned Values.
Error Codes
See Error Codes.
Last Article: Querying the Task Execution Status
Next Article: Key Management
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.