Batch Install App on Cloud Phones
Batch install app on cloud phones, supports callback.
Interface Address:
text
/papi/container/operate/install-pkgRequest Method:
text
POSTContent-Type:
text
application/jsonHeader Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-Access-Key | string | Yes | API access key ID. See API Rules for authentication |
| 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 and digits |
Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| ctrIdList | array[string] | Yes | List of container IDs |
| md5 | string | Yes | MD5 value of the file to install |
Request Example:
json
{
"ctrIdList": [
"cf5eaa177d75de7f43a0d95c84832560b70118e462dc2eb8da529a936d8c3c6f"
],
"md5": "bb140e9e89c4513826bc400e8bff3740"
}Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | integer | Error code. See Error Codes |
| data | array[object] | Response data, operation result for each container |
| ├─ success | boolean | Whether the operation succeeded |
| ├─ taskId | string | Task ID of the operation |
| ├─ data | object | Data |
| ├─ msg | string | Operation message |
| ├─ 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": {},
"msg": "",
"ctrId": "",
"ctrAlias": "",
"ctrSlot": 0
}
],
"msg": ""
}