Switches the ZooKeeper leader for a community-compatible ClickHouse instance.
Try it now
Test
RAM authorization
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | No | The region ID. Note Call the DescribeRegions operation to query the region ID. | cn-hangzhou |
DBClusterId | string | Yes | The cluster ID. | cc-bp108z124a8o7**** |
PageSize | integer | No | The number of entries to return on each page. Valid values:
| 30 |
PageNumber | integer | No | The page number. | 1 |
DisableWrite | boolean | No | Specifies whether to disable writes. | true |
ElectTime | string | No | The time to perform the leader switchover. | 2025-12-12T07:28:00Z |
Response elements
Element | Type | Description | Example |
object | Response information. | ||
RequestId | string | The request ID. | 7D3ECB0E-98CA-5E08-A9CA-F70C5A1E9BDF |
Examples
Success response
JSON format
{
"RequestId": "7D3ECB0E-98CA-5E08-A9CA-F70C5A1E9BDF"
}Error codes
HTTP status code | Error code | Error message | Description |
500 | InternalError | An error occurred while processing your request. | An error occurred while processing your request. |
503 | ServiceUnavailable | An error occurred while processing your request. | An error occurred while processing your request. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.