Batch Status Query
Function
This API is used to query status of instances in batches. Before calling this API, ensure that the tenant has purchased a KooPhone cloud phone instance. The current instance status is returned. 0: Unknown. 1: Stopped. 2: Running. 3: Offline. 4: Starting. 5: Shut down.
URI
POST /v1/instances/batch-query-status
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
x-request-id |
Yes |
String |
Unique ID of a request. |
X-Auth-Token |
Yes |
String |
Tenant-level token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
instance_ids |
Yes |
Array of strings |
Instance ID list. Maximum: 32 |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Response code. The error code specification is KooPhone.API.1001, and the number increases in ascending order. |
error_msg |
String |
Response description. |
data |
StatusResultWrapper object |
Status query result. |
Parameter |
Type |
Description |
---|---|---|
status_results |
Array of StatusResult objects |
Status query result. |
Parameter |
Type |
Description |
---|---|---|
instance_id |
String |
Instance ID. Maximum: 32 |
status |
Integer |
Cloud phone status. 0: Unknown. 1: Stopped. 2: Running. 3: Offline. 4: Starting. 5: Shut down. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Response code. The error code specification is KOOPHONE.API.0001, and the number increases in ascending order. If error_code is 0, the operation is successful. |
error_msg |
String |
Response description. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Response code. The error code specification is KOOPHONE.API.0001, and the number increases in ascending order. If error_code is 0, the operation is successful. |
error_msg |
String |
Response description. |
Example Requests
/v1/instances/batch-query-status { "instance_ids" : [ "a44uhlf7", "efjy72gs" ] }
Example Responses
Status code: 200
OK
{ "status_results" : [ { "instance_id" : "a44uhlf7", "status" : 0 } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
500 |
Internal Server 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