Get ADB Account
Get the ADB account information of the cloud machine. Note that you need to enable the cloud machine ADB switch before obtaining the ADB account information. See Enable ADB
Interface Address:
text
/papi/container/getAdbAccountListRequest 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 |
|---|---|---|---|
| ctrIdList | array[string] | Yes | Container ID list |
Request Example:
json
{
"ctrIdList": ["c5c7b07331144070bb92661ba049637cd71fecda5b4c74a84b1952e0524eba3c"]
}Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | integer | Error code. See Error Codes |
| data | object | Response data |
| ├─ 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 |
| ├─ example | string | ADB connection example |
| ├─ remainExpire | string | Account remaining expiry time |
| msg | string | Error message |
Response Example:
json
{
"code": 0,
"data": {
"ctrAlias": "",
"ctrIp": "",
"ctrPort": 0,
"serviceUrl": "",
"servicePort": 0,
"adbAccount": "",
"adbPassword": "",
"expire": 0,
"example": "",
"remainExpire": ""
},
"msg": ""
}