Create VPN Service

Verb URI Description
POST /vpn/vpnservices Creates a new VPN service.

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.172. Create VPN Service: Request

POST /v2.0/vpn/vpnservices.json
User-Agent: python-neutronclient
Accept: application/json
                
{
  "vpnservice": {
    "subnet_id": "f4fb4528-ed93-467c-a57b-11c7ea9f963e",
    "router_id": "ec8619be-0ba8-4955-8835-3b49ddb76f89",
    "name": "myservice",
    "admin_state_up": true
  }
}

 

Example 4.173. Create VPN: Response

HTTP/1.1 201 Created
Content-Type: application/json; charset=UTF-8
                
{
  "vpnservice": {
    "router_id": "ec8619be-0ba8-4955-8835-3b49ddb76f89",
    "status": "PENDING_CREATE",
    "name": "myservice",
    "admin_state_up": true,
    "subnet_id": "f4fb4528-ed93-467c-a57b-11c7ea9f963e",
    "tenant_id": "ccb81365fe36411a9011e90491fe1330",
    "id": "9faaf49f-dd89-4e39-a8c6-101839aa49bc",
    "description": ""
  }
}

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


loading table of contents...