4f4804259f
Change-Id: I8626c0338d4ad7d11bf5d56b022136cb4513d37e
92 lines
3.0 KiB
JSON
92 lines
3.0 KiB
JSON
{
|
|
"loadbalancer": {
|
|
"description": "My favorite load balancer",
|
|
"admin_state_up": true,
|
|
"project_id": "e3cd678b11784734bc366148aa37580e",
|
|
"flavor_id": "",
|
|
"listeners": [
|
|
{
|
|
"name": "http_listener",
|
|
"protocol": "HTTP",
|
|
"protocol_port": 80,
|
|
"default_pool": {
|
|
"name": "rr_pool",
|
|
"protocol": "HTTP",
|
|
"lb_algorithm": "ROUND_ROBIN",
|
|
"healthmonitor": {
|
|
"type": "HTTP",
|
|
"delay": "3",
|
|
"expected_codes": "200,201,202",
|
|
"http_method": "GET",
|
|
"max_retries": 2,
|
|
"timeout": 1,
|
|
"url_path": "/index.html"
|
|
},
|
|
"members": [
|
|
{
|
|
"address": "192.0.2.16",
|
|
"protocol_port": 80
|
|
},
|
|
{
|
|
"address": "192.0.2.19",
|
|
"protocol_port": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "https_listener",
|
|
"protocol": "HTTPS",
|
|
"protocol_port": 443,
|
|
"default_pool": {
|
|
"name": "https_pool"
|
|
},
|
|
"tags": ["test_tag"]
|
|
},
|
|
{
|
|
"name": "redirect_listener",
|
|
"protocol": "HTTP",
|
|
"protocol_port": 8080,
|
|
"l7policies": [
|
|
{
|
|
"action": "REDIRECT_TO_URL",
|
|
"name": "redirect_policy",
|
|
"redirect_url": "https://www.example.com/",
|
|
"admin_state_up": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"pools": [
|
|
{
|
|
"name": "https_pool",
|
|
"protocol": "HTTPS",
|
|
"lb_algorithm": "ROUND_ROBIN",
|
|
"healthmonitor": {
|
|
"type": "HTTPS",
|
|
"delay": "3",
|
|
"max_retries": 2,
|
|
"timeout": 1
|
|
},
|
|
"members": [
|
|
{
|
|
"address": "192.0.2.51",
|
|
"protocol_port": 80
|
|
},
|
|
{
|
|
"address": "192.0.2.52",
|
|
"protocol_port": 80
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"vip_subnet_id": "d4af86e1-0051-488c-b7a0-527f97490c9a",
|
|
"vip_address": "203.0.113.50",
|
|
"provider": "octavia",
|
|
"name": "best_load_balancer",
|
|
"vip_qos_policy_id": "ec4f78ca-8da8-4e99-8a1a-e3b94595a7a3",
|
|
"availability_zone": "my_az",
|
|
"tags": ["test_tag"]
|
|
}
|
|
}
|