Specifies whether instances can be deployed on a host in a dedicated cluster.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the host. |
cn-hangzhou |
| DedicatedHostId |
string |
Yes |
The host ID. You can view the host ID on the Hosts page of the ApsaraDB for MyBase console. |
ch-bp10a5id3boqi**** |
| HostName |
string |
No |
The name of the host. |
mysql-host |
| AllocationStatus |
string |
No |
Specifies whether instances can be deployed on the host. Valid values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D6E068C3-25BC-455A-85FE-45F0B22ESFS |
Examples
Success response
JSON format
{
"RequestId": "D6E068C3-25BC-455A-85FE-45F0B22ESFS"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.NotSupport | The userid have no permission. | |
| 400 | ParamTypeException | The parameter's type error. | |
| 404 | HostInfo.NotFound | Specified hostinfo is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.