Created
July 15, 2015 20:19
-
-
Save the2hill/790134f4a963670364fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create LB | |
http://localhost:9876/v1/loadbalancers | |
{ | |
"name": "loadbalancer1", | |
"description": "simple lb", | |
"vip": {"subnet_id": "ac7d27ae-7ace-459f-ae11-a4568abd227a"} | |
} | |
#Create LIstener | |
http://localhost:9876/v1/loadbalancers/0c59f9c3-13e2-47ad-bf7e-fd533c51e918/listeners | |
{ | |
"name": "listener1", | |
"description": "simple listener", | |
"protocol": "HTTP", | |
"protocol_port": 80 | |
} | |
#Create Pool | |
http://localhost:9876/v1/loadbalancers/0c59f9c3-13e2-47ad-bf7e-fd533c51e918/listeners/cc28457b-e0a1-40d6-b5d9-7f5499b4960f/pools | |
{ | |
"name": "pool1", | |
"description": "simple pool", | |
"protocol": "HTTP", | |
"lb_algorithm": "ROUND_ROBIN" | |
} | |
#Create Member | |
http://localhost:9876/v1/loadbalancers/0c59f9c3-13e2-47ad-bf7e-fd533c51e918/listeners/cc28457b-e0a1-40d6-b5d9-7f5499b4960f/pools/5150e239-8df9-470d-90f5-f12ba912135d/members | |
{ | |
"ip_address": "10.0.0.25", | |
"protocol_port": 80 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment