Queries available resources in a PolarDB cluster.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PayType | string | Yes | The billing method of the cluster. 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 the MySQL database engine:
Valid values for the PostgreSQL database engine:
Valid value for the Oracle database engine: 11 Note
This parameter is required when you specify the DBType parameter.
| 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 of the cluster. Default value: cn-hangzhou. Note
You can call the DescribeRegions operation to query the available regions.
| cn-hangzhou |
ZoneId | string | No | The zone ID of the cluster. Note
You can call the DescribeRegions operation to query the available zones.
| cn-hangzhou-i |
Response parameters
Examples
Sample success responses
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-11-24 | The Error code has changed | View Change Details |