All Products
Search
Document Center

Cloud Phone:DetachKeyPair

Last Updated:Mar 28, 2025

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

Operation description

  • After you detach an ADB key pair from a cloud phone instance, the ADB connection will fail. This occurs because the system can no longer authenticate using a valid ADB public key, leading to authentication errors.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
KeyPairIdstringYes

The ID of the ADB key pair.

kp-6v2q33ae4tw3a****
InstanceIdsarrayNo

The IDs of the cloud phone instances. You can specify a maximum of 50 cloud phone instances.

stringNo

The ID of the cloud phone instance.

acp-5hh431emkt6ua****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Dataobject

The object that is returned.

KeyPairIdstring

The ID of the ADB key pair.

kp-6v2q33ae4tw3a****
TotalCountinteger

The total number of the cloud phone instances.

10
FailCountinteger

The number of the cloud phone instances from which the ADB key pair failed to be detached.

0
DetachedInstanceIdsarray

The IDs of the cloud phone instances from which the ADB key pair is successfully detached.

InstanceIdstring

The ID of the cloud phone instance.

acp-5hh431emkt6ua****
RequestIdstring

The ID of the request.

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

Examples

Sample success responses

JSONformat

{
  "Data": {
    "KeyPairId": "kp-6v2q33ae4tw3a****",
    "TotalCount": 10,
    "FailCount": 0,
    "DetachedInstanceIds": [
      "acp-5hh431emkt6ua****"
    ]
  },
  "RequestId": "69BCBBE4-FCF2-59B8-AD9D-531EB422****"
}

Error codes

For a list of error codes, visit the Service error codes.