All Products
Search
Document Center

ApsaraDB for MyBase:ListPrinsInstances

Last Updated:Nov 03, 2025

Queries the list of managed instances.

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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cddc:ListPrinsInstanceslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID. For more information, see Region IDs.

cn-hangzhou
InstanceNamestringNo

The name of the self-managed instance.

pr-22a21ac289e0****
PageSizeintegerNo

The number of entries per page.

30
PageNumberintegerNo

The page number of the instance list. Start value: 1. Default value: 1.

1
EngineTypestringNo

The database engine of the instance. Valid values:

  • MySQL
MySQL
Tagarray<object>No

The tag information, which filters the instances that contain the corresponding tag key value.

objectNo

The tag information.

KeystringNo

The tag key.

demokey
ValuestringNo

The tag value.

demovalue
MaxResultsintegerNo
Note This parameter is not available. The PageNumber and PageSize parameters are used to perform paged queries.
20
NextTokenstringNo
Note This parameter is not available. The PageNumber and PageSize parameters are used to perform paged queries.
caeba0bbb2be03f84eb48b699f0a4883
EngineVersionstringNo

The database version.

8.0.36

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

D6E068C3-25BC-455A-85FE-45F0B22****
PageSizeinteger

The number of entries per page.

30
PageNumberinteger

The current page number.

1
TotalCountinteger

The total number of entries returned.

100
Instancesarray<object>

Details of the instances.

Instancesobject

The details of the instance.

RegionIdstring

The region ID of the host.

cn-hangzhou
Statusstring

The state of the instance.

Valid values:

  • inactive: Abnormal.
  • Deleted: Deleted
  • Creating:Creating
  • Active: Running
active
InstanceNamestring

The name of the self-managed instance.

pr-22a21ac289e0****
Aliasstring

The alias of the instance.

test
EngineTypestring

The engine type. Valid values:

  • MySQL
MySQL
EngineVersionstring

The database engine version.

8.0.36
GmtCreatedstring

The timestamp when the instance was created.

1729758903000
Descriptionstring

The description of the instance.

test
Tagarray<object>

A list of tags.

Tagobject

The information about the tag.

Keystring

The tag key.

key
Valuestring

The tag value.

value
DmsIdstring

The ID of the DMS instance associated with this instance.

2717906
DasIdstring

The ID of the DAS instance associated with this instance.

hdm_ef2263e117f23c4f3114417742b****
Vipboolean

The IP address of the instance.

127.0.0.1
MaxResultsinteger
Note This parameter is not available. The PageNumber and PageSize parameters are used to perform paged queries.

The maximum number of results that can be returned each time when you use a NextToken query.

100
NextTokenstring
Note This parameter is not available. The PageNumber and PageSize parameters are used to perform paged queries.

The query credential value returned by this call.

4b1e854bca4f2fb7e0b5e8707e68181f

Examples

Sample success responses

JSONformat

{
  "RequestId": "D6E068C3-25BC-455A-85FE-45F0B22****",
  "PageSize": 30,
  "PageNumber": 1,
  "TotalCount": 100,
  "Instances": [
    {
      "RegionId": "cn-hangzhou",
      "Status": "active",
      "InstanceName": "pr-22a21ac289e0****",
      "Alias": "test",
      "EngineType": "MySQL",
      "EngineVersion": "8.0.36",
      "GmtCreated": 1729758903000,
      "Description": "test",
      "Tag": [
        {
          "Key": "key",
          "Value": "value"
        }
      ],
      "DmsId": 2717906,
      "DasId": "hdm_ef2263e117f23c4f3114417742b****",
      "Vip": true
    }
  ],
  "MaxResults": 100,
  "NextToken": "4b1e854bca4f2fb7e0b5e8707e68181f"
}

Error codes

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