All Products
Search
Document Center

Cloud Phone:ImportKeyPair

Last Updated:Dec 12, 2025

Imports the public key of an Android Debug Bridge (ADB) key pair.

Operation description

To avoid authorization errors that could cause ADB connection failures, you must import the public key of an ADB key pair.

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

KeyPairName

string

Yes

The name of the ADB key pair.

TestKeyPairName

PublicKeyBody

string

Yes

The public key of the ADB key pair.

ABC1234567*****

Response elements

Element

Type

Description

Example

object

The response parameters.

Data

object

The object that is returned.

KeyPairId

string

The ID of the ADB key pair.

kp-6v2q33ae4tw3*****

KeyPairName

string

The name of the ADB key pair.

TestKeyPairName

GmtCreated

string

The time when the ADB key pair was created.

2023-03-05T10:29:22Z

RequestId

string

The ID of the request.

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

Examples

Success response

JSON format

{
  "Data": {
    "KeyPairId": "kp-6v2q33ae4tw3*****",
    "KeyPairName": "TestKeyPairName",
    "GmtCreated": "2023-03-05T10:29:22Z"
  },
  "RequestId": "69BCBBE4-FCF2-59B8-AD9D-531EB422****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.