All Products
Search
Document Center

Data Management:TestInstanceConnection

Last Updated:Jul 23, 2026

Tests the connectivity of an instance.

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

InstanceResourceId

string

No

The ID of the Alibaba Cloud database instance.

rm-bp1p****

DbType

string

No

The database type. For valid values, see DbType parameter description.

polardb

Region

string

No

The region ID of the instance.

cn-hangzhou

Account

string

No

The account name.

1878076129455271

Password

string

No

The database password.

******

Id

string

No

The instance ID.

24***

InstanceSource

string

No

The instance source.

RDS

Host

string

No

The endpoint of the instance.

xxx.mysql.rds.aliyuncs.com

Port

string

No

The connection port of the database.

3306

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

31853A2B-DC9D-5B39-8492-D2AC8BCF550E

ErrorCode

string

The error code returned if the request failed.

UnknownError

ErrorMessage

string

The error message returned if the call failed.

Specified parameter PageSize is not valid.

Success

boolean

Indicates whether the request was successful.

true

PingResult

object

The returned result.

ErrorType

string

The error type.

ACCESS_DENIED

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

True

Title

string

The title.

Access denied

Message

string

The error message returned if the execution failed.

successful!

Examples

Success response

JSON format

{
  "RequestId": "31853A2B-DC9D-5B39-8492-D2AC8BCF550E",
  "ErrorCode": "UnknownError",
  "ErrorMessage": "Specified parameter PageSize is not valid.",
  "Success": true,
  "PingResult": {
    "ErrorType": "ACCESS_DENIED",
    "Success": true,
    "Title": "Access denied",
    "Message": "successful!"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.