Create Listeners for Load Balancer
POSThttps://core-pl.ocplanet.cloud/backend/api/openstack/lbaas-listeners
Host: https://core.ocplanet.cloud
You may not have services or there may not be funds on your balance to complete this operation.
Request
- application/json
Body
listener_details objectrequired
loadbalancer_id stringrequired
monitor_details objectrequired
pool_details objectrequired
pool_members object[]required
Responses
- 400
- application/json
- Schema
- Example (from schema)
- Example
Schema
detail stringrequired
{
"detail": "string"
}
{
"detail": "Unable to create listener, please contact support"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: Use 'OpenAPIToken {token}' as the value
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://core-pl.ocplanet.cloud/backend/api/openstack/lbaas-listeners' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"listener_details": {
"admin_state_up": true,
"connection_limit": 0,
"description": "string",
"name": "string",
"protocol": "string",
"protocol_port": 0,
"timeout_client_data": 0,
"timeout_member_connect": 0,
"timeout_member_data": 0,
"timeout_tcp_inspect": 0,
"x_forwarded_for": true,
"x_forwarded_port": true,
"x_forwarded_proto": true,
"x_ssl_client_cn": true,
"x_ssl_client_dn": true,
"x_ssl_client_has_cert": true,
"x_ssl_client_not_after": true,
"x_ssl_client_not_before": true,
"x_ssl_client_sha1": true,
"x_ssl_client_verify": true,
"x_ssl_issuer": true
},
"loadbalancer_id": "string",
"monitor_details": {
"admin_state_up": true,
"delay": 0,
"expected_codes": "string",
"http_method": "string",
"max_retries": 0,
"max_retries_down": 0,
"name": "string",
"timeout": 0,
"type": "string",
"url_path": "string"
},
"pool_details": {
"admin_state_up": true,
"description": "string",
"lb_algorithm": "string",
"name": "string",
"session_persistence": {
"type": "string"
}
},
"pool_members": [
{
"address": "string",
"protocol_port": "string",
"subnet_id": "string",
"weight": "string"
}
]
}'
ResponseClear