Create IKE Policy

Verb URI Description
POST /vpn/ikepolicies Creates a new IKE policy.

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.182. Create IKE Policy: Request

POST /v2.0/vpn/ikepolicies.json
User-Agent: python-neutronclient
Accept: application/json
                
{
  "ikepolicy": {
    "phase1_negotiation_mode": "main",
    "auth_algorithm": "sha1",
    "encryption_algorithm": "aes-128",
    "pfs": "group5",
    "lifetime": {
      "units": "seconds",
      "value": 7200
    },
    "ike_version": "v1",
    "name": "ikepolicy1"
  }
}

 

Example 4.183. Create IKE Policy: Response

HTTP/1.1 201 Created
Content-Type: application/json; charset=UTF-8
                
{
  "ikepolicy": {
    "name": "ikepolicy1",
    "tenant_id": "ccb81365fe36411a9011e90491fe1330",
    "auth_algorithm": "sha1",
    "encryption_algorithm": "aes-128",
    "pfs": "group5",
    "phase1_negotiation_mode": "main",
    "lifetime": {
      "units": "seconds",
      "value": 7200
    },
    "ike_version": "v1",
    "id": "5522aff7-1b3c-48dd-9c3c-b50f016b73db",
    "description": ""
  }
}

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


loading table of contents...