All Products
Search
Document Center

Cloud Phone:DetachKeyPair

Last Updated:Dec 12, 2025

Detaches an Android Debug Bridge (ADB) key pair from one or more cloud phone instances.

Operation description

  • After a key pair is detached, the cloud phone no longer stores a valid ADB public key. As a result, ADB connections may fail to authenticate.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

KeyPairId

string

Yes

The ID of the ADB key pair.

kp-6v2q33ae4tw3a****

InstanceIds

array

No

The IDs of the cloud phone instances. You can specify up to 50 instance IDs.

string

No

The instance ID.

acp-5hh431emkt6ua****

Response elements

Element

Type

Description

Example

object

The response parameters.

Data

object

The result object.

KeyPairId

string

The ID of the ADB key pair.

kp-6v2q33ae4tw3a****

TotalCount

integer

The total number of instances for which the detach operation was attempted.

10

FailCount

integer

The number of instances from which the key pair failed to detach.

0

DetachedInstanceIds

array

A list of IDs of the instances from which the key pair was successfully detached.

string

The instance ID.

acp-5hh431emkt6ua****

RequestId

string

The request ID.

69BCBBE4-FCF2-59B8-AD9D-531EB422****

Examples

Success response

JSON format

{
  "Data": {
    "KeyPairId": "kp-6v2q33ae4tw3a****",
    "TotalCount": 10,
    "FailCount": 0,
    "DetachedInstanceIds": [
      "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.