Update IKE policy

Updates an IKE policy.

URI

/v2.0/vpn/ikepolicies/{ikepolicy-id}

HTTP method

PUT

Request parameter

Key Description Type Required/optional
encryption_algorithm Encryption Algorithms: aes-128, aes-256, aes-192. string Optional
pfs Perfect Forward Secrecy: group2, group5, group14. string Optional
lifetime Lifetime of the SA. Units in 'seconds'. The time should be from 60 seconds to 86400 seconds. Either units or value may be omitted. dict Optional
name Friendly name for the IKE policy. string Optional
description Description of the IKE policy. string Optional

Example request


{
  "ikepolicy": {
    "encryption_algorithm": "aes-256"
  }
}
     

Response status

Status code Description
200 Normal response codes
Unauthorized (401) Error response codes
Bad Request (400) Error response codes
Not Found (404) Error response codes

Response body (normal status)


{
  "ikepolicy": {
    "name": "ikepolicy1",
    "tenant_id": "ccb81365fe36411a9011e90491fe1330",
    "auth_algorithm": "sha1",
    "encryption_algorithm": "aes-256",
    "pfs": "group5",
    "phase1_negotiation_mode": "main",
    "lifetime": {
      "units": "seconds",
      "value": 3600
    },
    "ike_version": "v1",
    "id": "5522aff7-1b3c-48dd-9c3c-b50f016b73db",
    "description": "",
    "availability_zone": "AZ1"
  }
}
     

Description of response body (normal status)

Item Description
name Friendly name for the IKE policy.
tenant_id Unique identifier for owner of the VPN service.
auth_algorithm Authentication Hash algorithms: sha1.
encryption_algorithm Encryption Algorithms: aes-128, aes-256, aes-192.
pfs Perfect Forward Secrecy: group2, group5, or group14.
phase1_negotiation_mode IKE mode: main.
lifetime Lifetime of the SA. Units in 'seconds'. Either units or value may be omitted.
ike_version Version: v1.
id Unique identifier for the IKE policy.
description Description of the IKE policy.
availability_zone The Availability Zone name.