Queries the available resources of a PolarDB cluster.
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 type of the database engine. 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 when the DBType parameter is specified. |
5.6 |
| DBNodeClass |
string |
No |
The specifications of the node. For more information, see Specifications of compute nodes. |
polar.mysql.x4.large |
| RegionId |
string |
No |
The region ID. The default value is cn-hangzhou. Note
You can call the DescribeRegions operation to query the available regions. |
cn-hangzhou |
| ZoneId |
string |
No |
The zone ID. Note
You can call the DescribeRegions operation to query the 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> |
The list of available resources. |
|
|
array<object> |
|||
| SupportedEngines |
array<object> |
The list of available engines. |
|
|
array<object> |
|||
| Engine |
string |
The version of the database engine. |
mysql57 |
| AvailableResources |
array<object> |
The available resources. |
|
|
object |
|||
| DBNodeClass |
string |
The specifications of the node. |
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.