Unlock the Power of AI

1 million free tokens

88% Price Reduction

Activate Now

DescribeAvailabilityZones

Updated at: 2025-02-27 06:42

Queries a list of the zones that are supported by an ApsaraDB for MongoDB instance.

Operation description

Queries the zones in which an ApsaraDB for MongoDB instance can be deployed under specified purchase conditions. The region ID is required in the purchase condition.

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
OperationAccess levelResource typeCondition keyAssociated operation
dds:DescribeAvailabilityZoneslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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

cn-hangzhou
ZoneIdstringNo

The zone ID of the instance. You can call the DescribeRegions operation to query available zones.

cn-hangzhou-b
InstanceChargeTypestringNo

The billing method of the product. Valid values:

  • PrePaid: subscription
  • PostPaid: pay-as-you-go
PrePaid
DbTypestringNo

The architecture of the instance. Valid values:

  • normal: replica set instance
  • sharding: sharded cluster instance
normal
ResourceGroupIdstringNo

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

rg-acfmx2m4rqu7pry
AcceptLanguagestringNo

The language of the returned RegionName and ZoneName parameter values. Valid values:

  • zh (default): Chinese
  • en: English
en
StorageSupportstringNo

The storage type. Valid values:

  • cloud: displays only zones available for instances that use cloud disks.
  • local: only displays zones available for instances that use local disks instances.
  • default or unspecified: displays zones available for instances that use cloud disks and those that use local disks.
local
MongoTypestringNo

The edition of the instance. High-Available Edition and Preview Edition (dbfs) are supported.

dbfs
StorageTypestringNo

The disk type. Valid values:

  • cloud_essd: PL1 Enterprise SSD (ESSD)
  • cloud_essd2: PL2 ESSD
  • cloud_essd3: PL3 ESSD
  • dhg_local_ssd: local SSD
Note
  • Instances that run MongoDB 4.4 or later only use cloud disks to store data. If you do not specify this parameter, the value cloud_essd1 is used by default.

  • Instances that run MongoDB 4.2 and earlier only use local disks to store data. If you do not specify this parameter, the value local_ssd is used by default.

local_ssd
ExcludeZoneIdstringNo

The zone ID that is excluded from the query results.

cn-shanghai-g
ExcludeSecondaryZoneIdstringNo

The secondary zone ID that is excluded from the query results. You can configure the ExcludeZoneId and ExcludeSecondaryZoneId parameters to specify the IDs of multiple zones that are excluded from the query results.

cn-shanghai-b
DBInstanceClassstringNo

The instance type of the instance.

dds.mongo.standard
EngineVersionstringNo

The database engine version of the instance.

5.0
ReplicationFactorstringNo

The number of nodes in the instance.

Note
This parameter is available only for replica set instances.

Valid values:

  • 1
  • 3
  • 5
  • 7
3
InstanceTypestringNo

The architecture of the instance. Valid values:

  • sharding: sharded cluster instance
  • replicate: replica set or standalone instance
replicate

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

19A13A33-0FAD-5120-8AE1-B1636F74DD80
AvailableZonesarray<object>

The details of the zones in which you can create ApsaraDB for MongoDB instances.

AvailableZoneobject
ZoneIdstring

The ID of the zone.

cn-beijing-f
ZoneNamestring

The name of the zone.

The return value of the ZoneName parameter is in the language that is specified by the AcceptLanguage parameter. For example, if the value of the ZoneId parameter in the response is cn-hangzhou-h, the following values are returned for the ZoneName parameter:

  • If the value of the AcceptLanguage parameter is zh, H is returned for the ZoneName parameter.
  • If the value of the AcceptLanguage parameter is en, Hangzhou Zone H is returned for the ZoneName parameter.
Hangzhou Zone H
RegionIdstring

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

cn-beijing

Examples

Sample success responses

JSONformat

{
  "RequestId": "19A13A33-0FAD-5120-8AE1-B1636F74DD80",
  "AvailableZones": [
    {
      "ZoneId": "cn-beijing-f",
      "ZoneName": "Hangzhou Zone H\n",
      "RegionId": "cn-beijing"
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
Change timeSummary of changesOperation
2025-02-25The request parameters of the API has changedView Change Details
2023-12-27The request parameters of the API has changedView Change Details
2023-11-03The request parameters of the API has changedView Change Details
  • On this page (1)
  • Operation description
  • Debugging
  • Authorization information
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
  • Change history
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare