Sets the authentication status for cloud phone instances. If you enable Android Debug Bridge (ADB) authentication for cloud phone instances, the system will verify the validity of the ADB key pairs provided by end users when they connect to the instances over ADB. To ensure successful authentication and a proper connection, we recommend that you attach ADB key pairs to cloud phone instances. If you disable ADB authentication for cloud phone instances, the system will no longer verify the validity of any ADB key pairs. As a result, end users can connect to the cloud phone instances over ADB without authentication, provided the network connection is functioning properly.
Operation description
Before you call this operation, make sure that the desired cloud phone instance is in the Running state.
Try it now
Test
RAM authorization
Request parameters
Parameter | Type | Required | Description | Example |
| InstanceIds | array | No | The IDs of the cloud phone instances. You can specify a maximum of 50 cloud phone instances. | |
string | No | The ID of the cloud phone instance. | acp-5hh431emkt6ua**** | |
Status | integer | Yes | The status of the ADB authentication feature. Valid values:
| 1 |
Response elements
Element | Type | Description | Example |
object | The response parameters. | ||
| Data | object | The returned object. | |
TotalCount | integer | The total number of the cloud phone instances. | 100 |
FailCount | integer | The number of the cloud phone instances for which the ADB authentication feature failed to be enabled. | 0 |
| InstanceIds | array | The IDs of the cloud phone instances for which the ADB authentication feature is enabled. | |
string | The ID of the cloud phone instance. | acp-5hh431emkt6ua**** | |
RequestId | string | The ID of the request. | 69BCBBE4-FCF2-59B8-AD9D-531EB422**** |
Examples
Success response
JSON format
{
"Data": {
"TotalCount": 100,
"FailCount": 0,
"InstanceIds": [
"acp-5hh431emkt6ua****"
]
},
"RequestId": "69BCBBE4-FCF2-59B8-AD9D-531EB422****"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.