Create VIP

Verb URI Description
POST /lb/vips Creates a load balancer VIP.

Normal Response Code: 201

Error Response Codes: Unauthorized (401), Bad Request (400)

This operation requires a request body.

This operation returns a response body.

 

Example 4.76. Create VIP: HTTP and JSON request

POST /v2.0/lb/vips.json HTTP/1.1
User-Agent: python-neutronclient
Accept: application/json

{
   "vip":{
      "protocol":"HTTP",
      "name":"NewVip",
      "admin_state_up":true,
      "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
      "pool_id":"61b1f87a-7a21-4ad3-9dda-7f81d249944f",
      "protocol_port":"80"
   }
}

 

Example 4.77. Create VIP: HTTP and JSON response

HTTP/1.1 201 Created
Content-Type: application/json; charset=UTF-8

{
   "vip":{
      "status":"PENDING_CREATE",
      "protocol":"HTTP",
      "description":"",
      "admin_state_up":true,
      "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
      "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
      "connection_limit":-1,
      "pool_id":"61b1f87a-7a21-4ad3-9dda-7f81d249944f",
      "address":"10.0.0.11",
      "protocol_port":80,
      "port_id":"f7e6fe6a-b8b5-43a8-8215-73456b32e0f5",
      "id":"c987d2be-9a3c-4ac9-a046-e8716b1350e2",
      "name":"NewVip"
   }
}

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...