Mounts a Server Load Balancer (SLB) instance to a specified ApsaraDB for ClickHouse cluster.

Usage notes

An SLB instance runs at the network layer. You can use a domain name to bind the SLB instance to the IP addresses of all nodes in an ApsaraDB for ClickHouse cluster to provide external connections. SLB provides the failover capability. The SLB instance forwards requests to the nodes in a cluster and balances the request traffic among the nodes. The SLB instance checks the availability of the ECS instances. If the SLB instance detects that a node is unavailable, the SLB instance automatically isolates the node from other healthy nodes. This ensures that the request traffic is distributed to available nodes.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateSLB

The operation that you want to perform. Set the value to CreateSLB.

DBClusterId String Yes cc-uf6bnitmve5n0****

The ID of the cluster. You can call the DescribeDBClusters operation to query cluster IDs.

Response parameters

Parameter Type Example Description
RequestId String 9A23C87D-87DF-4DA0-A50E-CB13F4F7923D

The ID of the request.

Examples

Sample requests

http(s)://clickhouse.aliyuncs.com/?Action=CreateSLB
&DBClusterId=cc-uf6bnitmve5n0****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateSLBResponse>
    <RequestId>9A23C87D-87DF-4DA0-A50E-CB13F4F7923D</RequestId>
</CreateSLBResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "9A23C87D-87DF-4DA0-A50E-CB13F4F7923D"
}

Error codes

For a list of error codes, see Service error codes.