You can call the DescribeAvailableResource operation to query the resources that are available to a region.
The DescribeAvailableResource operation is no longer be available. You can use the DescribeAvailableZones and DescribeAvailableClasses operations instead.
デバッグ
リクエストパラメーター
| 項目 | データ型 | 必須/任意 | 例: | 説明 |
| 操作 | String | 必須 | DescribeAvailableResource | 実行する操作です。 値は DescribeAvailableResource に設定します。 |
| RegionId | String | 任意 | cn-hangzhou | インスタンスのリージョン ID です。 DescribeRegions を呼び出して、最新のリージョンリストをクエリできます。 |
| ZoneId | String | 任意 | cn-hangzhou-d | インスタンスのゾーン ID。 |
| InstanceChargeType | String | 必須 | Postpaid | インスタンスの課金方法です。 有効な値:
|
| Engine | String | 任意 | MySQL | The database engine of the instance. 有効な値:
|
| EngineVersion | String | 任意 | 5.7 | インスタンスのデータベースエンジンバージョンです。
|
| DBInstanceClass | String | 任意 | rds.mysql.s1.small | インスタンスのインスタンスタイプ。 For more information, see Primary ApsaraDB RDS instance types. |
| OrderType | String | 任意 | BUY | The type of the order. Set the value to BUY. |
| DBInstanceStorageType | String | 任意 | local_ssd | インスタンスのストレージタイプを示します。 有効な値:
|
| カテゴリー | String | 任意 | 基本 | The RDS edition of the instance. 有効な値:
|
| DispenseMode | Integer | いいえ | 0 | Specifies whether to return the zones in which the single-zone deployment method is supported. 有効な値:
デフォルト値:0。 説明 The single-zone deployment method allows you to deploy an instance that runs RDS Enterprise Edition in a single zone. |
レスポンスパラメーター
| 項目 | データ型 | 例: | 説明 |
| RequestId | String | A32E046E-2643-4B65-828D-23FEED4853A3 | リクエストの ID です。 |
| AvailableZones | AvailableZone の配列 | An array that consists of zones in which resources are available. |
|
| AvailableZone | |||
| ZoneId | String | cn-hangzhou-d | インスタンスのゾーン ID。 |
| Status | String | 有効にする | Indicates whether the resources in the region can be purchased. 有効な値:
|
| RegionId | String | cn-hangzhou | インスタンスのリージョン ID です。 |
| SupportedEngines | SupportedEngine の配列 | An array that consists of the database engines available in the zone. |
|
| SupportedEngine | |||
| Engine | String | MySQL | The database engine that the instance runs. |
| SupportedEngineVersions | SupportedEngineVersion の配列 | An array that consists of the database engine versions available in the zone. |
|
| SupportedEngineVersion | |||
| Version | String | 5.7 | The version of the database engine that is run by the instance. |
| SupportedCategorys | Array of SupportedCategory | An array that consists of available RDS editions. |
|
| SupportedCategory | |||
| カテゴリー | String | HighAvailability | The RDS edition of the instance. |
| SupportedStorageTypes | Array of SupportedStorageType | An array that consists of available storage types. |
|
| SupportedStorageType | |||
| StorageType | String | local_ssd | インスタンスのストレージタイプを示します。 |
| AvailableResources | AvailableResource の配列 | An array that consists of available resources. |
|
| AvailableResource | |||
| StorageRange | String | "{\"values\":[{\"max\":2000,\"min\":5,\"step\":5}]}" | The range of the storage capacity. The value consists of the maximum storage capacity, the minimum storage capacity, and the increment to increase the storage capacity. |
| DBInstanceClass | String | rds.mysql.s1.small | インスタンスのインスタンスタイプ。 |
| DBInstanceStorageRange | オブジェクト | An array that consists of the ranges of storage capacity. |
|
| 手順 | Integer | 5 | The increment at which the storage capacity increases. 単位 : GB |
| Max | Integer | 2000 | The maximum storage capacity that you can purchase. 単位 : GB |
| 最小 | Integer | 5 | The minimum storage capacity that you must purchase. 単位 : GB |
例
リクエストの例
http(s)://rds.aliyuncs.com/?Action=DescribeAvailableResource
&InstanceChargeType=Postpaid
&<Common request parameters>
正常に処理された場合のレスポンス例
XML 形式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeAvailableResourceResponse>
<RequestId>A32E046E-2643-4B65-828D-23FEED4853A3</RequestId>
<AvailableZones>
<ZoneId>cn-hangzhou-b</ZoneId>
<Status>Enable</Status>
<RegionId>cn-hangzhou</RegionId>
<SupportedEngines>
<Engine>MySQL</Engine>
<SupportedEngineVersions>
<Version>5.7</Version>
<SupportedCategorys>
<Category>HighAvailability</Category>
<SupportedStorageTypes>
<StorageType>local_ssd</StorageType>
<AvailableResources>
<StorageRange>"{\"values\":[{\"max\":2000,\"min\":5,\"step\":5}]}"</StorageRange>
<DBInstanceClass>rds.mysql.s1.small</DBInstanceClass>
<DBInstanceStorageRange>
<Step>5</Step>
<Max>2000</Max>
<Min>5</Min>
</DBInstanceStorageRange>
</AvailableResources>
</SupportedStorageTypes>
</SupportedCategorys>
</SupportedEngineVersions>
</SupportedEngines>
</AvailableZones>
</DescribeAvailableResourceResponse>
JSON 形式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "A32E046E-2643-4B65-828D-23FEED4853A3",
"AvailableZones" : [ {
"ZoneId" : "cn-hangzhou-b",
"Status" : "Enable",
"RegionId" : "cn-hangzhou",
"SupportedEngines" : [ {
"Engine" : "MySQL",
"SupportedEngineVersions" : [ {
"Version" : "5.7",
"SupportedCategorys" : [ {
"Category" : "HighAvailability",
"SupportedStorageTypes" : [ {
"StorageType" : "local_ssd",
"AvailableResources" : [ {
"StorageRange" : "\"{\\\"values\\\":[{\\\"max\\\":2000,\\\"min\\\":5,\\\"step\\\":5}]}\"",
"DBInstanceClass" : "rds.mysql.s1.small",
"DBInstanceStorageRange" : {
"Step" : 5,
"Max" : 2000,
"Min" : 5
}
} ]
} ]
} ]
} ]
} ]
} ]
}
エラーコード
| HTTP ステータスコード | エラーコード | エラーメッセージ | 説明 |
| 400 | ArticleNotFound | Article not found | The error message returned because no relevant articles are found. |
エラーコードリストについては、「API エラーセンター」をご参照ください。