Evaluates available resources.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| DBType | string | Yes | The type of the database engine. Valid values:
| MySQL |
| DBVersion | string | Yes | The version of the database engine
| 8.0 |
| SubDomain | string | No | The subdomain. It is the child domain of the top-level domain name or parent domain. For example, if the parent domain name is cn-beijing, its child domain can be cn-beijing-i-aliyun. | cn-beijing-i-aliyun |
| DBNodeClass | string | Yes | The specifications of the node. For information about node specifications, see the following topics:
| polar.mysql.x4.large |
| DBInstanceConnType | string | No | The cluster link type. The backend randomly selects the default value. Valid values:
| lvs |
| DispenseMode | string | No | Specifies whether to return the zones in which the single-zone deployment method is supported. Default value: 0. Valid values:
| 1 |
| NeedMaxScaleLink | string | Yes | Specifies whether to create Maxscale. Valid values:
| true |
| ResourceGroupId | string | No | The ID of the resource group. | rg-************ |
| RegionId | string | Yes | The region ID. Note
You can call the DescribeRegions operation to query available regions.
| cn-hangzhou |
| ZoneId | string | Yes | The zone ID. Note
You can call the DescribeRegions operation to query available zones.
| cn-hangzhou-g |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "69A85BAF-1089-4CDF-A82F-0A140F******",
"DBInstanceAvailable": true,
"DBType": "MySQL",
"DBVersion": 8
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidDBType.Malformed | The Specified DBType is not valid. | The specified database type is invalid. |
| 400 | InvalidDBVersion.Malformed | The Specified DBVersion is not valid. | The specified DBVersion parameter is invalid. |
| 400 | InvalidDBNodeClass.Malformed | The specified parameter DBNodeClass is not valid. | The specified DBNodeClass parameter is invalid. |
| 404 | SubDomain.Malformed | The specified SubDomain does not exist or ZoneId is not valid. | The specified subdomain does not exist or the specified zone is invalid. |
| 404 | NeedMaxScaleLink.Malformed | The specified NeedMaxScaleLink is not valid. | The specified NeedMaxScaleLink parameter is invalid. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2023-09-12 | The Error code has changed | View Change Details |
| 2022-09-08 | Add Operation | View Change Details |
