This API is used to modify the listener information, including the listener name, description, and status.
PUT /v1.0/{project_id}/elbaas/listeners/{listener_id}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
listener_id |
Yes |
String |
Specifies the listener ID. |
name |
No |
String |
|
description |
No |
String |
|
port |
No |
Integer |
|
backend_port |
No |
Integer |
|
lb_algorithm |
No |
String |
|
tcp_timeout |
No |
Integer |
|
tcp_draining |
No |
Boolean |
|
tcp_draining_timeout |
No |
Integer |
|
udp_timeout |
No |
Integer |
|
ssl_protocols |
No |
String |
|
ssl_ciphers |
No |
String |
|
certificate_id |
No |
String |
|
certificates |
No |
String |
|
{
"name": "lis",
"description": "",
"port": 9090,
"backend_port": 9090,
"lb_algorithm": "roundrobin"
}
Parameter |
Type |
Description |
|---|---|---|
update_time |
String |
Specifies the time when the listener was updated. |
backend_port |
Integer |
Specifies the port used by backend ECSs. |
id |
String |
Specifies the listener ID in UUID format. |
backend_protocol |
String |
Specifies the protocol used by backend ECSs. |
sticky_session_type |
String |
Specifies where the cookie is from. The only value is insert, indicating that the cookie is inserted by the load balancer.
|
description |
String |
Provides supplementary information about the listener. |
loadbalancer_id |
String |
Specifies the load balancer ID. |
create_time |
String |
Specifies the time when the listener was created. |
status |
String |
Specifies the listener status. The value can be ACTIVE, PENDING_CREATE, or ERROR. |
protocol |
String |
Specifies the protocol used for load balancing at Layer 4 or Layer 7. |
port |
Integer |
Specifies the port used by the listener. |
cookie_timeout |
Integer |
|
admin_state_up |
Boolean |
|
healthcheck_id |
String |
Specifies the health check ID. |
session_sticky |
Boolean |
Specifies whether to enable the sticky session feature. The feature is enabled when the value is true. This parameter is valid only when protocol is set to HTTP. |
lb_algorithm |
String |
Specifies the load balancing algorithm. |
name |
String |
Specifies the listener name. |
tcp_draining |
Boolean |
|
tcp_draining_timeout |
Integer |
|
certificate_id |
String |
Specifies the ID of the SSL certificate for security authentication. This parameter is mandatory when protocol is set to HTTPS or SSL. Otherwise, the parameter value is null. |
certificates |
String |
Lists the certificate IDs if protocol is set to HTTPS. This parameter is mandatory in the SNI scenario. |
{
"update_time": "2016-12-01 07:12:59",
"backend_port": 9090,
"id": "a824584fb3ba4d39ba0cf372c7cbbb67",
"backend_protocol": "TCP",
"sticky_session_type": null,
"certificate_id": null,
"description": "",
"loadbalancer_id": "f54c65b1b5dd4a4f95b71b44796ac013",
"create_time": "2016-12-01 07:12:43",
"admin_state_up": false,
"status": "ACTIVE",
"protocol": "TCP",
"cookie_timeout": 100,
"port": 9092,
"tcp_draining": true,
"tcp_timeout": 1,
"lb_algorithm": "roundrobin",
"healthcheck_id": null,
"session_sticky": true,
"tcp_draining_timeout": 5,
"name": "lis"
}
Status Code |
Message |
Description |
|---|---|---|
400 |
badRequest |
Request error. |
401 |
unauthorized |
Authentication failed. |
403 |
userDisabled |
You do not have the permission to perform the operation. |
404 |
Not Found |
The requested page does not exist. |
500 |
authFault |
System error. |
503 |
serviceUnavailable |
The service is unavailable. |