Evaluates resource availability.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBType |
string |
Yes |
The type of the database engine. Valid values:
|
MySQL |
| DBVersion |
string |
Yes |
The database DPI engine version number.
|
8.0 |
| SubDomain |
string |
No |
The subdomain. The subdomain is the next level under the top-level domain (first-level domain or parent domain). For example, if the parent domain is cn-beijing, the subdomain can be cn-beijing-i-aliyun. |
cn-beijing-i-aliyun |
| DBNodeClass |
string |
Yes |
The node specification. For more information, see the following topics:
|
polar.mysql.x4.large |
| DBInstanceConnType |
string |
No |
The cluster link type. The backend randomly selects a default value. Valid values:
Valid values:
|
lvs |
| DispenseMode |
string |
No |
Specifies whether to return the list of zones that support single-zone deployment. Valid values:
|
1 |
| NeedMaxScaleLink |
string |
Yes |
Specifies whether to create MaxScale. Valid values:
Valid values:
|
true |
| ResourceGroupId |
string |
No |
The resource group ID. |
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 elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
69A85BAF-1089-4CDF-A82F-0A140F****** |
| DBInstanceAvailable |
string |
Indicates whether sufficient resources are available.
|
true |
| DBType |
string |
The type of the database engine. Valid values:
|
MySQL |
| DBVersion |
string |
The database DPI engine version number.
|
8.0 |
Examples
Success response
JSON format
{
"RequestId": "69A85BAF-1089-4CDF-A82F-0A140F******",
"DBInstanceAvailable": "true",
"DBType": "MySQL",
"DBVersion": "8.0"
}
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.