DescribeAvailableResource

Updated at:

Queries the list of instance types available for sale in a specified zone, which reflects product sales constraints rather than real-time inventory.

Operation description

This operation returns product sales constraint information, which includes the allowed values for engines, instance types, and storage types in a specified region or zone. This information does not reflect real-time inventory availability and should not be used to determine whether resources are available. To evaluate whether a specific instance type has available inventory in a zone and whether an instance can be created, call the EvaluateResource operation.

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

get

*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 available regions.

cn-hangzhou

ZoneId

string

No

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

cn-hangzhou-h

InstanceChargeType

string

No

The billing method. Valid values:

  • PrePaid (default): subscription.

  • PostPaid: pay-as-you-go.

Valid values:

  • PostPaid :

    Pay-as-you-go.

  • PrePaid :

    Subscription.

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.

sharding

ResourceGroupId

string

No

The resource group ID.

rg-acfmyiu4ekp****

StorageType

string

No

The storage type. Valid values:

  • local_ssd: local SSD.

  • cloud_essd1: PL1 ESSD.

  • cloud_essd2: PL2 ESSD.

  • cloud_essd3: PL3 ESSD.

  • cloud_auto: AutoPL cloud disk.

Default value: empty, which indicates that all storage types are queried.

Valid values:

  • cloud_auto :

    AutoPL cloud disk.

  • cloud_essd3 :

    PL3 ESSD.

  • cloud_essd2 :

    PL2 ESSD.

  • cloud_essd1 :

    PL1 ESSD.

  • local_ssd :

    Local SSD.

local_ssd

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. This parameter is applicable only to replica set instances.

Valid values:

  • 1 :

    1

  • 3 :

    3

  • 5 :

    5

  • 7 :

    7

3

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

344EE51D-8850-4935-B68B-58A8F4DCE3BD

SupportedDBTypes

object

SupportedDBType

array<object>

The supported database types.

array<object>

AvailableZones

object

AvailableZone

array<object>

The zone.

array<object>

SupportedEngineVersions

object

SupportedEngineVersion

array<object>

The supported storage DPI engine versions.

array<object>

SupportedEngines

object

SupportedEngine

array<object>

The supported storage engines.

array<object>

SupportedNodeTypes

object

SupportedNodeType

array<object>

The supported instance types.

array<object>

NodeType

string

The number of nodes in the instance.

3

NetworkTypes

string

The network type of the instance.

VPC

AvailableResources

object

AvailableResource

array<object>

The details of available resources.

array<object>

InstanceClassRemark

string

The instance type.

4 vCPUs, 8 GB memory (dedicated) (Current instance type: mdb.shard.2x.xlarge.d (4 vCPUs, 8 GB memory (dedicated cloud disk edition), maximum connections: 3,000, maximum IOPS: min{1800 + 50 × storage capacity, 21000}))

InstanceClass

string

The instance family.

mdb.shard.2x.xlarge.d

DBInstanceStorageRange

object

The storage capacity range of the instance.

Min

integer

The minimum storage capacity. Unit: GB.

20

Max

integer

The maximum storage capacity. Unit: GB.

16000

Step

integer

The minimum step size for adjusting the storage capacity. Unit: GB.

10

Engine

string

The storage engine of the instance.

WiredTiger

Version

string

The database engine version of the instance.

4.0

ZoneId

string

The zone ID.

cn-hangzhou-h

RegionId

string

The region ID.

cn-hangzhou

DbType

string

The database type of the instance. Valid values:

  • normal: replica set instance.

  • sharding: sharded cluster instance.

sharding

Examples

Success response

JSON format

{
  "RequestId": "344EE51D-8850-4935-B68B-58A8F4DCE3BD",
  "SupportedDBTypes": {
    "SupportedDBType": [
      {
        "AvailableZones": {
          "AvailableZone": [
            {
              "SupportedEngineVersions": {
                "SupportedEngineVersion": [
                  {
                    "SupportedEngines": {
                      "SupportedEngine": [
                        {
                          "SupportedNodeTypes": {
                            "SupportedNodeType": [
                              {
                                "NodeType": "3",
                                "NetworkTypes": "VPC",
                                "AvailableResources": {
                                  "AvailableResource": [
                                    {
                                      "InstanceClassRemark": "4 vCPUs, 8 GB memory (dedicated) (Current instance type: mdb.shard.2x.xlarge.d (4 vCPUs, 8 GB memory (dedicated cloud disk edition), maximum connections: 3,000, maximum IOPS: min{1800 + 50 × storage capacity, 21000}))",
                                      "InstanceClass": "mdb.shard.2x.xlarge.d",
                                      "DBInstanceStorageRange": {
                                        "Min": 20,
                                        "Max": 16000,
                                        "Step": 10
                                      }
                                    }
                                  ]
                                }
                              }
                            ]
                          },
                          "Engine": "WiredTiger"
                        }
                      ]
                    },
                    "Version": "4.0"
                  }
                ]
              },
              "ZoneId": "cn-hangzhou-h",
              "RegionId": "cn-hangzhou"
            }
          ]
        },
        "DbType": "sharding"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.