DescribeDBInstancesOverview

Updated at:

Queries the overview information of one or more ApsaraDB for MongoDB instances.

Operation description

  • If you do not specify the details of an instance, the overview information of all instances in the specified region within the current account is returned.

  • The response of this operation is not paginated.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dds:DescribeDBInstancesOverview

list

*Instance

acs:dds:{#regionId}:{#accountId}:dbinstance/*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID. You can call the DescribeRegions operation to query available regions.

cn-hangzhou

InstanceIds

string

No

The IDs of the instances whose overview information you want to query.

Note
  • If you do not specify this parameter, the overview information of all instances within the current Alibaba Cloud account is queried by default.

  • You can specify multiple instance IDs. Separate multiple instance IDs with commas (,).

dds-bp12c5b040dc****

InstanceStatus

string

No

The status of the instance. For more information, see Instance statuses.

Running

ChargeType

string

No

The billing method of the instance. Valid values:

  • PrePaid: subscription.

  • PostPaid: pay-as-you-go.

PostPaid

NetworkType

string

No

The network type of the instance. Valid values:

  • Classic: classic network.

  • VPC: VPC.

Classic

EngineVersion

string

No

The database engine version of the instance. Valid values: 5.0, 4.4, 4.2, 4.0, and 3.4.

4.0

InstanceClass

string

No

The instance type. For more information about the instance types of different architectures, see the following topics:

Note

You do not need to specify this parameter for serverless instances.

dds.mongo.2xlarge

VpcId

string

No

The ID of the virtual private cloud (VPC).

vpc-bp1nme44gek34slfc****

VSwitchId

string

No

The ID of the vSwitch.

vsw-bp1e7clcw529l773d****

InstanceType

string

No

The architecture of the instance. Valid values:

  • sharding: sharded cluster instance.

  • replicate: replica set or standalone instance.

  • serverless: serverless instance.

Note
  • Specify this parameter based on your business requirements. For example, if you want to query the overview information of sharded cluster instances, set this parameter to sharding.

  • If you do not specify this parameter, the overview information of all instances is queried by default.

replicate

ZoneId

string

No

The zone ID.

cn-hangzhou-b

ResourceGroupId

string

No

The ID of the resource group. For more information, see View the basic information of a resource group.

rg-acfmyiu4ekp****

ShowTags

boolean

No

Specifies whether the instance tag label is displayed. Default value: false.

false

Response elements

Element

Type

Description

Example

object

The overview information of the instance.

TotalCount

string

The total number of instances returned.

1

RequestId

string

The ID of the request.

52820D2B-B2DD-59F0-BDF2-83EC19C6F1CA

DBInstances

array<object>

The list of instances.

array<object>

The list of instances.

CreationTime

string

The time when the instance was created. The time is displayed in UTC in the yyyy-MM-ddTHH:mm:ssZ format.

2022-01-05T03:18:53Z

ExpireTime

string

The time when the instance expires. The time is displayed in UTC in the yyyy-MM-ddTHH:mmZ format.

2022-02-05T16:00Z

Tags

array<object>

The tags of the instance.

object

The tags of the instance.

Key

string

The tag key of the instance. Valid values of N: 1 to 20.

  • The tag key cannot start with aliyun, acs:, http://, or https://.

  • The tag key can be up to 64 characters in length.

  • The tag key cannot be an empty string.

testdatabase

Value

string

The tag value of the instance. Valid values of N: 1 to 20.

  • The tag value cannot start with aliyun, acs:, http://, or https://.

  • The tag value can be up to 128 characters in length.

  • The tag value can be an empty string.

apitest

LastDowngradeTime

string

The time when the instance was last downgraded. The date is in the YYYY-MM-DD format, such as 2021-05-08.

2021-05-08

ShardList

array<object>

The list of shard nodes.

Note

This parameter is returned only if the instance is a sharded cluster instance.

object

The list of shard nodes.

Note

This parameter is returned only if the instance is a sharded cluster instance.

NodeClass

string

The instance type of the shard node.

dds.shard.mid

NodeDescription

string

The description of the shard node.

Test shard node

NodeStorage

integer

The storage capacity of the shard node. Unit: GB.

10

NodeId

string

The ID of the shard node.

d-bp1cac6f2083****

ReadonlyReplicas

integer

The number of read-only nodes in the shard node. Valid values: 0 to 5.

2

DBInstanceType

string

The architecture of the instance. Valid values:

  • sharding: sharded cluster instance.

  • replicate: replica set or standalone instance.

  • serverless: serverless instance.

replicate

DestroyTime

string

The data destruction time of the instance. The time is displayed in UTC in the yyyy-MM-ddTHH:mm:ssZ format.

2021-12-10T16:00:00Z

ChargeType

string

The billing method of the instance. Valid values:

  • PrePaid: subscription.

  • PostPaid: pay-as-you-go.

PrePaid

CapacityUnit

string

The read and write throughput consumed by the instance.

Note
  • This parameter is returned only if the instance is a serverless instance.

  • Serverless instances are supported only on the Alibaba Cloud China site.

100

VpcAuthMode

string

Indicates whether password-free access within a VPC is enabled. Valid values:

  • Open: enabled.

  • Close: disabled.

Open

DBInstanceStatus

string

The status of the instance. For more information, see Instance statuses.

Running

NetworkType

string

The network type of the instance. Valid values:

  • Classic: classic network.

  • VPC: VPC.

VPC

LockMode

string

The lock status of the instance.

  • Unlock: The instance is not locked.

  • ManualLock: The instance is manually locked.

  • LockByExpiration: The instance is automatically locked after it expires.

  • LockByRestoration: The instance is automatically locked before a rollback.

  • LockByDiskQuota: The instance is automatically locked because its storage capacity is exhausted.

  • Released: The instance is released. In this case, you cannot unlock the instance. You can only use backup data to create a new instance. The recreation process may take a long time.

Unlock

EngineVersion

string

The database engine version of the instance.

4.2

MongosList

array<object>

The list of mongos nodes.

Note

This parameter is returned only if the instance is a sharded cluster instance.

object

The list of mongos nodes.

Note

This parameter is returned only if the instance is a sharded cluster instance.

NodeClass

string

The node specifications of the mongos node.

dds.mongos.standard

NodeDescription

string

The description of the mongos node.

Test mongos node

NodeId

string

The ID of the mongos node.

s-bp10e3b0d02f****

RegionId

string

The region ID of the instance.

cn-hangzhou

DBInstanceStorage

integer

The storage capacity of the instance. Unit: GB.

20

ResourceGroupId

string

The ID of the resource group to which the instance belongs.

rg-acfm22cdcgc****

ZoneId

string

The zone ID of the instance.

cn-hangzhou-i

DBInstanceId

string

The instance ID.

dds-bp12c5b040dc****

DBInstanceClass

string

The instance type. For more information about the instance types of different architectures, see the following topics:

Note

You do not need to specify this parameter for serverless instances.

dds.mongo.mid

Engine

string

The database engine. The value is MongoDB.

MongoDB

ReplicationFactor

string

The number of nodes in the instance.

Note

This parameter is returned only if the instance is a replica set instance.

3

DBInstanceDescription

string

The description of the instance.

Test database

KindCode

string

The type of the instance. Valid values:

  • 0: physical machine

  • 1: ECS

  • 2: Docker

  • 18: new Kubernetes architecture instance

0

Examples

Success response

JSON format

{
  "TotalCount": "1",
  "RequestId": "52820D2B-B2DD-59F0-BDF2-83EC19C6F1CA",
  "DBInstances": [
    {
      "CreationTime": "2022-01-05T03:18:53Z",
      "ExpireTime": "2022-02-05T16:00Z",
      "Tags": [
        {
          "Key": "testdatabase",
          "Value": "apitest"
        }
      ],
      "LastDowngradeTime": "2021-05-08",
      "ShardList": [
        {
          "NodeClass": "dds.shard.mid",
          "NodeDescription": "Test shard node",
          "NodeStorage": 10,
          "NodeId": "d-bp1cac6f2083****",
          "ReadonlyReplicas": 2
        }
      ],
      "DBInstanceType": "replicate",
      "DestroyTime": "2021-12-10T16:00:00Z",
      "ChargeType": "PrePaid",
      "CapacityUnit": "100",
      "VpcAuthMode": "Open",
      "DBInstanceStatus": "Running",
      "NetworkType": "VPC",
      "LockMode": "Unlock",
      "EngineVersion": "4.2",
      "MongosList": [
        {
          "NodeClass": "dds.mongos.standard",
          "NodeDescription": "Test mongos node",
          "NodeId": "s-bp10e3b0d02f****"
        }
      ],
      "RegionId": "cn-hangzhou",
      "DBInstanceStorage": 20,
      "ResourceGroupId": "rg-acfm22cdcgc****",
      "ZoneId": "cn-hangzhou-i",
      "DBInstanceId": "dds-bp12c5b040dc****",
      "DBInstanceClass": "dds.mongo.mid",
      "Engine": "MongoDB",
      "ReplicationFactor": "3",
      "DBInstanceDescription": "Test database",
      "KindCode": "0"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.