DescribeAvailabilityZones

Updated at:

Queries the zones supported by MongoDB instances.

Operation description

Queries the list of supported MongoDB zones based on the specified purchasing conditions. The region ID is required in the purchasing conditions.

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:DescribeAvailabilityZones

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

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

cn-hangzhou

ZoneId

string

No

The zone ID. You can call the DescribeRegions operation to query the zone ID.

cn-hangzhou-b

InstanceChargeType

string

No

The billing method. Valid values:

  • PrePaid: subscription. Default value.

  • PostPaid: pay-as-you-go.

Valid values:

  • PostPaid :

    pay-as-you-go.

  • PrePaid :

    subscription (default value)

PrePaid

DbType

string

No

The database type of the instance. Valid values:

  • normal: replica set instance.

  • sharding: sharded cluster instance.

Valid values:

  • normal :

    replica set instance.

  • sharding :

    sharded cluster instance.

normal

ResourceGroupId

string

No

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

rg-acfmx2m4rqu7pry

AcceptLanguage

string

No

The language of the RegionName and ZoneName response parameters. Valid values:

  • zh: Chinese. Default value.

  • en: English.

zh

StorageSupport

string

No

The storage type. Valid values:

  • cloud: displays only the zones that support cloud disk instances.

  • local: displays only the zones that support local disk instances.

  • default or empty: displays the zones that support both local disk and cloud disk instances.

local

MongoType

string

No

The MongoDB edition, such as the high-availability edition or the test edition (dbfs).

dbfs

StorageType

string

No

The storage type. Valid values:

  • cloud_essd1: PL1 ESSD.

  • cloud_essd2: PL2 ESSD.

  • cloud_essd3: PL3 ESSD.

  • local_ssd: local SSD.

Note
  • Instances of version 4.4 and later support only cloud disks. If you do not specify this parameter, cloud_essd1 is selected by default.

  • Instances of version 4.2 and earlier support only local disks. If you do not specify this parameter, local_ssd is selected by default.

local_ssd

ExcludeZoneId

string

No

The zone ID to be excluded from the query results in the current region.

cn-shanghai-g

ExcludeSecondaryZoneId

string

No

The secondary zone ID to be excluded from the query results in the current region. This parameter is used together with ExcludeZoneId to filter multiple zones.

cn-shanghai-b

DBInstanceClass

string

No

The instance type.

dds.mongo.standard

EngineVersion

string

No

The database engine version.

5.0

ReplicationFactor

string

No

The number of nodes.

Note

This parameter is supported only for replica set instances.

Valid values:

  • 1 :

    1

  • 3 :

    3

  • 5 :

    5

  • 7 :

    7

3

InstanceType

string

No

The instance type. Valid values:

  • sharding: sharded cluster instance.

  • replicate: replica set instance or standalone instance.

replicate

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

19A13A33-0FAD-5120-8AE1-B1636F74DD80

AvailableZones

array<object>

The details of the zones where resources are available for purchase.

object

ZoneId

string

The zone ID.

cn-beijing-f

ZoneName

string

The zone name.

The returned language is determined by the AcceptLanguage parameter. Take the cn-hangzhou-h zone as an example:

  • If AcceptLanguage is set to zh: 杭州 可用区 H

  • If AcceptLanguage is set to en: Hangzhou Zone H

Hangzhou Zone H

RegionId

string

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

cn-beijing

Examples

Success response

JSON format

{
  "RequestId": "19A13A33-0FAD-5120-8AE1-B1636F74DD80",
  "AvailableZones": [
    {
      "ZoneId": "cn-beijing-f",
      "ZoneName": "杭州 可用区H",
      "RegionId": "cn-beijing"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.