Replaces a host in a dedicated cluster.
Operation description
If you specify the manual host replacement policy when you create an ApsaraDB MyBase for MySQL dedicated cluster, you can call this operation to replace a faulty host in the dedicated cluster.
Note
You can call the DescribeDedicatedHostAttribute operation to query the value of the HostStatus parameter.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The region ID of the host. You can call the DescribeDedicatedHostAttribute operation to query the region ID. | cn-hangzhou |
DedicatedHostId | string | Yes | The host ID. You can call the DescribeDedicatedHosts operation to query the host ID. | ch-bp10a5id3boqi**** |
FailoverMode | string | Yes | The switchover method of the primary instance. Valid values:
| MaintainTime |
Response parameters
Examples
Sample success responses
JSON
format
{
"DedicatedHostId": " ch-bp10a5id3boqi****",
"RequestId": "D6E068C3-25BC-455A-85FE-45F0B22EDSD8",
"TaskId": 10254125
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
404 | InvalidDedicatedHostId_NotFound | specific DedicatedHostId not found |
For a list of error codes, visit the Service error codes.