Queries the resources available for purchase for PolarDB clusters.
Operation description
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PayType |
string |
Yes |
The billing method. Valid values:
|
Postpaid |
| DBType |
string |
No |
The database engine type. Valid values:
|
MySQL |
| DBVersion |
string |
No |
The version of the database engine. Valid values for MySQL:
Valid values for PostgreSQL:
Valid values for Oracle:
Note
This parameter is required if you specify the DBType parameter. |
5.6 |
| DBNodeClass |
string |
No |
The node specifications. For more information, see Compute node specifications. |
polar.mysql.x4.large |
| RegionId |
string |
No |
The region ID. The default value is cn-hangzhou. Note
Call the DescribeRegions operation to view available regions. |
cn-hangzhou |
| ZoneId |
string |
No |
The zone ID. Note
Call the DescribeRegions operation to view available zones. |
cn-hangzhou-i |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
2B19F698-8FFC-4918-B9E2-58D878****** |
| AvailableZones |
array<object> |
A list of information about purchasable resources. |
|
|
array<object> |
|||
| SupportedEngines |
array<object> |
A list of purchasable engines. |
|
|
array<object> |
|||
| Engine |
string |
The database engine version. |
mysql57 |
| AvailableResources |
array<object> |
A list of purchasable resources. |
|
|
object |
|||
| DBNodeClass |
string |
The node specifications. |
polar.mysql.x4.large |
| Category |
string |
The edition of the cluster. Valid values:
Note
|
Normal |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-i |
| RegionId |
string |
The region ID. |
cn-hangzhou |
Examples
Success response
JSON format
{
"RequestId": "2B19F698-8FFC-4918-B9E2-58D878******",
"AvailableZones": [
{
"SupportedEngines": [
{
"Engine": "mysql57",
"AvailableResources": [
{
"DBNodeClass": "polar.mysql.x4.large",
"Category": "Normal"
}
]
}
],
"ZoneId": "cn-hangzhou-i",
"RegionId": "cn-hangzhou"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBVersion.Malformed | The Specified DBVersion is not valid. | The specified DBVersion parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.