Updating Load Balancing Listeners for a Cluster
Function
This API is used to update load balancing listeners for a cluster.
Calling Method
For details, see Calling APIs.
URI
PUT /v1.0/{project_id}/clusters/{cluster_id}/es-listeners/{listener_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition: Project ID. For details about how to obtain the project ID and name, see Obtaining the Project ID and Name. Constraints: N/A Value range: Project ID of the account. Default value: N/A |
|
cluster_id |
Yes |
String |
Definition: ID of the target cluster. For details about how to obtain the cluster ID, see Obtaining the Cluster ID. Constraints: N/A Value range: Cluster ID. Default value: N/A |
|
listener_id |
Yes |
String |
ID of the target listener. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
listener |
Yes |
EsListenerRequest object |
Listener object |
|
type |
No |
String |
Type: searchTool indicates that the load balancer is modified for Elasticsearch/OpenSearch. viewTool indicates that the load balancer is modified for Kibana/OpenSearch Dashboards. The default value is searchTool. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
default_tls_container_ref |
Yes |
String |
ID of the server certificate used by the listener |
|
client_ca_tls_container_ref |
No |
String |
ID of the CA certificate used by the listener. This parameter is mandatory when bidirectional authentication is to be updated. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
listener |
EsListenerResponse object |
Listener object |
|
Parameter |
Type |
Description |
|---|---|---|
|
protocol |
String |
Protocol used by the listener |
|
id |
String |
Listener ID |
|
name |
String |
Listener name |
|
protocol_port |
String |
Port used by the listener |
|
ipgroup |
EsIpgroupResource object |
Access control information of the listener object |
|
Parameter |
Type |
Description |
|---|---|---|
|
ipgroup_id |
String |
Definition: ID of the access control group associated with the listener. Value range: N/A |
|
enable_ipgroup |
Boolean |
Definition: Status of an access control group. Value range:
|
|
type |
String |
Definition: Type of an access control group. Value range:
|
Example Requests
Update ELB listeners for a cluster.
PUT https://{Endpoint}/v1.0/{project_id}/clusters/58ee0f27-70b3-47e0-ac72-9e3df6cd15cd/es-listeners/4425eb63-78ce-4c63-b60e-492befdac0e7
{
"listener" : {
"default_tls_container_ref" : "9c82320a8dd049eba49b28e70a2c0c3e"
}
}
Example Responses
Status code: 200
Request succeeded.
{
"listener" : {
"id" : "9c82320a8dd049eba49b28e70a2c0c3e",
"name" : "name",
"protocol" : "tcp",
"protocol_port" : 8080,
"ipgroup" : {
"ipgroup_id" : "4f3deec3-efa8-4598-bf91-560aad1377a3",
"enable_ipgroup" : true,
"type" : "white"
}
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Request succeeded. |
|
400 |
Invalid request. Modify the request instead of retrying. |
|
409 |
The request cannot be processed due to a conflict. This status code indicates that the resource that the client attempts to create already exits, or the requested update failed due to a conflict. |
|
412 |
The server does not meet one of the requirements that the requester puts on the request. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot