Get Instance Status
Get single cloud phone running status.
Interface Address:
text
/papi/container/operate/getInstanceStatusRequest Method:
text
POSTContent-Type:
text
application/jsonHeader Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-Access-Key | string | Yes | API access key ID, see API Rules |
| X-Signature | string | Yes | Signature value, Base64-encoded HMAC-SHA256 result |
| X-Timestamp | string | Yes | Millisecond-level Unix timestamp (13 digits) |
| X-Nonce | string | Yes | Random string, 10~32 lowercase letters + digits |
Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| ctrId | string | Yes | Container ID |
Request Example:
json
{
"ctrId": "cf5eaa177d75de7f43a0d95c84832560b70118e462dc2eb8da529a936d8c3c6f"
}Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | integer | Error code. See Error Codes |
| data | ContainerApiResult | Response data |
| ├─ success | boolean | Whether the operation succeeded |
| ├─ taskId | string | Task ID of the operation |
| ├─ data | object | Data |
| ├─├─ life_cycle | string | Container lifecycle: 1-Powered off, 2-Starting, 3-Restarting, 4-Shutting down, 5-Resetting, 6-Deleting, 7-Running |
| ├─ msg | string | Message of the current operation |
| ├─ ctrId | string | Container CtrId |
| ├─ ctrAlias | string | Container alias |
| ├─ ctrSlot | integer | Cloud phone slot |
| msg | string | Error message |
Response Example:
json
{
"code": 0,
"data": {
"success": true,
"taskId": "",
"data": {
"life_cycle": "7"
},
"msg": "",
"ctrId": "cf5eaa177d75de7f43a0d95c84832560b70118e462dc2eb8da529a936d8c3c6f",
"ctrAlias": "",
"ctrSlot": 0
},
"msg": ""
}