All Products
Search
Document Center

ApsaraDB for MyBase:DescribePrinsInstance

Last Updated:Nov 03, 2025

Retrieves the details of a managed instance.

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:DescribePrinsInstanceget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceNamestringNo

The name of the self-managed instance.

pr-22a21ac289e0****
RegionIdstringNocn-hangzhou
DiscoverbooleanNo

Specifies whether to query associated primary and replica instances.

false

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

D6E068C3-25BC-455A-85FE-45F0B22E****
DbInstanceobject

The details of the managed instance.

RegionIdstring

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

cn-hangzhou
InstanceNamestring

The name of the self-managed instance.

pr-22a21ac289e0****
EngineTypestring

The engine type. Valid values:

  • MySQL
MySQL
EngineVersionstring

The database engine version.

8.0.36
Statusstring

The current status of the instance.

Valid values:

  • inacitve: Abnormal
  • deleted: Deleted
  • creating: Creating
  • active:Running
active
InstanceClassstring

The instance specification.

2C4G
InstanceStorageTypestring

The storage type of the instance.

cloud_essd
InstanceStorageCapacitystring

The storage capacity.

40
GmtCreatedstring

The timestamp when the instance was created.

1729758903000
NetworkTypestring

The network type of the instance.

vpc
VpcIdstring

The ID of the virtual private cloud (VPC) where the cluster is located.

vpc-uf6idhbqkbuw11kw3****
Descriptionstring

The description of the instance.

test
HostInstancesarray<object>

A list of hosts included in the instance.

HostInstancesobject
GmtCreatedstring

The timestamp when the host was created.

1729758903000
InstanceIdstring

The ECS instance ID.

i-bp1gmm4pnacse343****
InstanceClassstring

The ECS specification information.

ecs.c7.large
IpAddressarray<object>

The IP address of the ECS instance.

IpAddressobject
Ipstring

The IP address.

127.0.0.1
Portstring

The port number that is used to connect to the instance.

3306
Typestring

The IP address type. Valid values:

  • Private: Internal IP
  • Public: Public IP
Private
InstanceNamestring

The ECS instance name.

launch-advisor-20250603
Statusstring

The ECS host status.

Valid values:

  • deleted: Deleted
  • inactive: Abnormal
  • active: Running
active
ZoneIdstring

The zone ID.

cn-hangzhou-j
InstanceRolestring

The role of the host.

  • master
  • slave
master
DiskInfoarray<object>

The disk information of the ECS instance.

DiskInfoobject

The ECS disk information.

Idstring

The disk ID.

d-bp1ddpo8lqswottd****
Sizelong

The size of the disk. Unit: GB.

50
Categorystring

The disk category. Valid values:

  • cloud_efficiency: ultra disk
  • cloud_ssd: standard SSD
  • cloud_essd: enterprise SSD (ESSD)
  • cloud: basic disk
cloud_essd
Typestring

The type of the cloud disk or local disk. Valid values:

  • system: system disk
  • data: data disk
system
Usagestring

The disk usage percentage.

40
Devicestring

The device name of the disk mounted on the instance.

/dev/xvda
Cpustring

The number of the CPU cores on the host.

2
Memstring

The memory size, in GB.

4
VpcIdstring

The ID of the VPC where the host is located.

vpc-bp1d5gyhoue53eu6h****
Portstring

The host port.

3306
Descriptionstring

The description of the host.

test
Ipstring

The host IP address selected when the instance was added for management.

127.0.0.1
SecurityGroupIdstring

The security group ID specified when the instance was added for management.

sg-uf6bo3fxuuen4uxndp9j
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 associated DMS instance.

2717906
DasIdstring

The ID of the associated DAS instance.

hdm_ef2263e117f23c4f3114417742b4****
Aliasstring

The alias of the instance.

alias

Examples

Sample success responses

JSONformat

{
  "RequestId": "D6E068C3-25BC-455A-85FE-45F0B22E****",
  "DbInstance": {
    "RegionId": "cn-hangzhou",
    "InstanceName": "pr-22a21ac289e0****",
    "EngineType": "MySQL",
    "EngineVersion": "8.0.36",
    "Status": "active",
    "InstanceClass": "2C4G",
    "InstanceStorageType": "cloud_essd",
    "InstanceStorageCapacity": 40,
    "GmtCreated": 1729758903000,
    "NetworkType": "vpc",
    "VpcId": "vpc-uf6idhbqkbuw11kw3****",
    "Description": "test",
    "HostInstances": [
      {
        "GmtCreated": 1729758903000,
        "InstanceId": "i-bp1gmm4pnacse343****",
        "InstanceClass": "ecs.c7.large",
        "IpAddress": [
          {
            "Ip": "127.0.0.1",
            "Port": 3306,
            "Type": "Private"
          }
        ],
        "InstanceName": "launch-advisor-20250603",
        "Status": "active",
        "ZoneId": "cn-hangzhou-j",
        "InstanceRole": "master",
        "DiskInfo": [
          {
            "Id": "d-bp1ddpo8lqswottd****",
            "Size": 50,
            "Category": "cloud_essd",
            "Type": "system",
            "Usage": 40,
            "Device": "/dev/xvda"
          }
        ],
        "Cpu": 2,
        "Mem": 4,
        "VpcId": " vpc-bp1d5gyhoue53eu6h****",
        "Port": 3306,
        "Description": "test",
        "Ip": "127.0.0.1",
        "SecurityGroupId": "sg-uf6bo3fxuuen4uxndp9j"
      }
    ],
    "Tag": [
      {
        "Key": "key",
        "Value": "value"
      }
    ],
    "DmsId": 2717906,
    "DasId": "hdm_ef2263e117f23c4f3114417742b4****",
    "Alias": "alias"
  }
}

Error codes

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