Enable ADB
Enable cloud phone ADB.
Interface Address:
text
/papi/container/updateOpenAdbRequest 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 details |
| 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 characters of lowercase letters and digits |
Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| expireDays | integer | Yes | Expiry time (unit: days, >= 1 and <= 7) |
| ctrIdList | array[string] | Yes | Container ctrId list |
Request Example:
json
{
"ctrIdList": [
"c5c7b07331144070bb92661ba049637cd71fecda5b4c74a84b1952e0524eba3c",
"b3227a39bdae4a63b937a2aab14e5dd2987ff67cab233e36430cd349c1d401c7"
],
"expireDays": 3
}Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | integer | Error code. See Error Codes |
| data | object | Response data |
| ├─ success | array[object] | Success list |
| ├─├─ ctrId | string | Cloud phone ctrId |
| ├─├─ ctrAlias | string | Cloud phone alias |
| ├─├─ ctrIp | string | Cloud phone IP |
| ├─├─ ctrPort | integer | Cloud phone ADB port |
| ├─├─ serviceUrl | string | ADB service URL |
| ├─├─ servicePort | integer | ADB service port |
| ├─├─ adbAccount | string | ADB account |
| ├─├─ adbPassword | string | ADB password |
| ├─├─ expire | integer | Account expiry time (millisecond timestamp) |
| ├─├─ example | string | ADB connection example |
| ├─├─ openAdb | boolean | ADB enabled status |
| ├─├─ remainExpire | string | Account remaining expiry time |
| ├─ fail | array[object] | Failure list |
| ├─├─ ctrId | string | Cloud phone ctrId |
| ├─├─ msg | string | Failure reason |
| msg | string | Error message |
Response Example:
json
{
"code": 0,
"data": {
"success": [
{
"ctrId": "",
"ctrAlias": "",
"ctrIp": "",
"ctrPort": 0,
"serviceUrl": "",
"servicePort": 0,
"adbAccount": "",
"adbPassword": "",
"expire": 0,
"example": "",
"openAdb": true,
"remainExpire": ""
}
],
"fail": [
{
"ctrId": "",
"msg": ""
}
]
},
"msg": ""
}