# Public Cloud › Network › Site-to-Site VPN › IPsec policies API

> Part of the OVHcloud developer hub. Index of every page and section: https://developers.eu.ovhcloud.com/llms.txt
> The Public Cloud product's sections: https://developers.eu.ovhcloud.com/reference/public-cloud/llms.txt
> Everything in one file: https://developers.eu.ovhcloud.com/llms-full.txt

> 5 operations of the OVHcloud API. Calls carry `authorization: Bearer $OVH_TOKEN`; the EU host is shown, Canada and the United States answer on api.ca.ovhcloud.com and api.us.ovhcloud.com.

Page: https://developers.eu.ovhcloud.com/reference/public-cloud/network/site-to-site-vpn/ipsec-policies/

OpenAPI v1: https://api.eu.ovhcloud.com/v1/__schemas/developer-hub-navigation/public-cloud/network/site-to-site-vpn/ipsec-policies.json?format=openapi3
OpenAPI v2: https://api.eu.ovhcloud.com/v2/__schemas/developer-hub-navigation/public-cloud/network/site-to-site-vpn/ipsec-policies.json?format=openapi3

## Operations

- `GET /publicCloud/project/{projectId}/vpn/ipsecPolicy` — List IPsec policies
- `POST /publicCloud/project/{projectId}/vpn/ipsecPolicy` — Create an IPsec policy
- `GET /publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}` — Get an IPsec policy
- `PUT /publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}` — Update an IPsec policy
- `DELETE /publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}` — Delete an IPsec policy

## List IPsec policies

`GET /v2/publicCloud/project/{projectId}/vpn/ipsecPolicy`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/network/site-to-site-vpn/ipsec-policies/#getAllVpnIpsecPolicies

**Status:** Alpha version  
**IAM actions:** `publicCloudProject:apiovh:vpn/ipsecPolicy/get`

Returns the IPsec policies of the project, in every region.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Pagination-Cursor` | header | string |  | Pagination cursor |
| `X-Pagination-Size` | header | integer |  | Pagination size |
| `projectId` | path | string | yes | Project ID |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.vpn.IpsecPolicy[] | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `checksum` | string | read-only | Hash of the current target specification. Send it back in the update payload to detect concurrent changes. |
| `createdAt` | string (date-time) | read-only | Date and time the IPsec policy was created |
| `currentState` | publicCloud.vpn.IpsecPolicyCurrentState | read-only | Observed state of the IPsec policy. Null while the IPsec policy is being created. |
| `currentState.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum | read-only | Integrity algorithm. Null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. — one of `SHA256`, `SHA384`, `SHA512` |
| `currentState.description` | string | read-only | Free-form description of the IPsec policy. Null when none was given. |
| `currentState.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum | read-only | Encryption algorithm — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `currentState.lifetime` | integer | read-only | Lifetime of the IPsec security association in seconds |
| `currentState.location` | publicCloud.vpn.Location | read-only | Region of the IPsec policy |
| `currentState.location.region` | string | yes | Region code, such as GRA11 |
| `currentState.name` | string | read-only | Name of the IPsec policy |
| `currentState.pfs` | publicCloud.vpn.PfsGroupEnum | read-only | Diffie-Hellman group for perfect forward secrecy — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |
| `currentTasks` | common.CurrentTask[] | read-only | Asynchronous operations ongoing on the IPsec policy |
| `currentTasks[].errors` | common.TaskError[] | read-only | Errors that occurred on the task |
| `currentTasks[].errors[].message` | string | read-only | Error description |
| `currentTasks[].id` | string (uuid) | read-only | Identifier of the current task |
| `currentTasks[].link` | string | read-only | Link to the task details |
| `currentTasks[].status` | common.CurrentTaskStatusEnum | read-only | Current global status of the current task — one of `ERROR`, `PENDING`, `RUNNING`, `SCHEDULED`, `WAITING_USER_INPUT` |
| `currentTasks[].type` | string | read-only | Type of the current task |
| `id` | string (uuid) | read-only | Unique identifier of the IPsec policy |
| `resourceStatus` | common.ResourceStatusEnum | read-only | Readiness of the IPsec policy: whether its observed state has converged to its target specification — one of `CREATING`, `CREATION_PLANNED`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `SUSPENDED`, `UNKNOWN`, `UPDATING` |
| `targetSpec` | publicCloud.vpn.IpsecPolicyTargetSpec | read-only | Last target specification requested for the IPsec policy |
| `targetSpec.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum |  | Integrity algorithm. Must be null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. Defaults to SHA256 when null with any other. — one of `SHA256`, `SHA384`, `SHA512` |
| `targetSpec.description` | string |  | Free-form description of the IPsec policy. At most 255 characters. |
| `targetSpec.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum |  | Encryption algorithm. Defaults to AES_256 when null. — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `targetSpec.lifetime` | integer |  | Lifetime of the IPsec security association in seconds. Defaults to 3600 (1 hour) when null. At least 60. |
| `targetSpec.location` | publicCloud.vpn.Location | yes | Region of the IPsec policy: only the IPsec tunnels of the VPN gateways of this region can use it. Immutable after creation. |
| `targetSpec.location.region` | string | yes | Region code, such as GRA11 |
| `targetSpec.name` | string | yes | Name of the IPsec policy. At most 255 characters. |
| `targetSpec.pfs` | publicCloud.vpn.PfsGroupEnum |  | Diffie-Hellman group for perfect forward secrecy. Defaults to GROUP14 when null. — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |
| `updatedAt` | string (date-time) | read-only | Date and time the IPsec policy was last updated |

```json
[
  {
    "checksum": "string",
    "createdAt": "2024-01-01T12:00:00Z",
    "currentState": {
      "authAlgorithm": "SHA256",
      "description": "string",
      "encryptionAlgorithm": "AES_128",
      "lifetime": 0,
      "location": {
        "region": "string"
      },
      "name": "string",
      "pfs": "GROUP14"
    },
    "currentTasks": [
      {
        "errors": [
          {
            "message": "string"
          }
        ],
        "id": "00000000-0000-0000-0000-000000000000",
        "link": "string",
        "status": "ERROR",
        "type": "string"
      }
    ],
    "id": "00000000-0000-0000-0000-000000000000",
    "resourceStatus": "CREATING",
    "targetSpec": {
      "authAlgorithm": "SHA256",
      "description": "string",
      "encryptionAlgorithm": "AES_128",
      "lifetime": 0,
      "location": {
        "region": "string"
      },
      "name": "string",
      "pfs": "GROUP14"
    },
    "updatedAt": "2024-01-01T12:00:00Z"
  }
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy");

print_r($result);
?>
```

## Create an IPsec policy

`POST /v2/publicCloud/project/{projectId}/vpn/ipsecPolicy`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/network/site-to-site-vpn/ipsec-policies/#createVpnIpsecPolicy

**Status:** Alpha version  
**IAM actions:** `publicCloudProject:apiovh:vpn/ipsecPolicy/create`

Creates an IPsec policy: a set of IPsec (phase 2) algorithms used by the IPsec tunnels that reference it in their targetSpec.ipsec. Several IPsec tunnels can share one policy, provided their VPN gateways are in the region of the policy. The policy uses ESP in tunnel mode. Creation applies immediately: the response already holds the result.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `projectId` | path | string | yes | Project ID |

### Request body (required)

Type: `publicCloud.vpn.IpsecPolicyCreation`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `targetSpec` | publicCloud.vpn.IpsecPolicyTargetSpec | yes | Desired specification of the IPsec policy to create |
| `targetSpec.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum |  | Integrity algorithm. Must be null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. Defaults to SHA256 when null with any other. — one of `SHA256`, `SHA384`, `SHA512` |
| `targetSpec.description` | string |  | Free-form description of the IPsec policy. At most 255 characters. |
| `targetSpec.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum |  | Encryption algorithm. Defaults to AES_256 when null. — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `targetSpec.lifetime` | integer |  | Lifetime of the IPsec security association in seconds. Defaults to 3600 (1 hour) when null. At least 60. |
| `targetSpec.location` | publicCloud.vpn.Location | yes | Region of the IPsec policy: only the IPsec tunnels of the VPN gateways of this region can use it. Immutable after creation. |
| `targetSpec.location.region` | string | yes | Region code, such as GRA11 |
| `targetSpec.name` | string | yes | Name of the IPsec policy. At most 255 characters. |
| `targetSpec.pfs` | publicCloud.vpn.PfsGroupEnum |  | Diffie-Hellman group for perfect forward secrecy. Defaults to GROUP14 when null. — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |

```json
{
  "targetSpec": {
    "authAlgorithm": "SHA256",
    "description": "string",
    "encryptionAlgorithm": "AES_128",
    "lifetime": 0,
    "location": {
      "region": "string"
    },
    "name": "string",
    "pfs": "GROUP14"
  }
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.vpn.IpsecPolicy | successful operation |
| 400 | object | Error 400 response |
| 403 | object | Error 403 response |
| 409 | object | Error 409 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `checksum` | string | read-only | Hash of the current target specification. Send it back in the update payload to detect concurrent changes. |
| `createdAt` | string (date-time) | read-only | Date and time the IPsec policy was created |
| `currentState` | publicCloud.vpn.IpsecPolicyCurrentState | read-only | Observed state of the IPsec policy. Null while the IPsec policy is being created. |
| `currentState.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum | read-only | Integrity algorithm. Null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. — one of `SHA256`, `SHA384`, `SHA512` |
| `currentState.description` | string | read-only | Free-form description of the IPsec policy. Null when none was given. |
| `currentState.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum | read-only | Encryption algorithm — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `currentState.lifetime` | integer | read-only | Lifetime of the IPsec security association in seconds |
| `currentState.location` | publicCloud.vpn.Location | read-only | Region of the IPsec policy |
| `currentState.location.region` | string | yes | Region code, such as GRA11 |
| `currentState.name` | string | read-only | Name of the IPsec policy |
| `currentState.pfs` | publicCloud.vpn.PfsGroupEnum | read-only | Diffie-Hellman group for perfect forward secrecy — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |
| `currentTasks` | common.CurrentTask[] | read-only | Asynchronous operations ongoing on the IPsec policy |
| `currentTasks[].errors` | common.TaskError[] | read-only | Errors that occurred on the task |
| `currentTasks[].errors[].message` | string | read-only | Error description |
| `currentTasks[].id` | string (uuid) | read-only | Identifier of the current task |
| `currentTasks[].link` | string | read-only | Link to the task details |
| `currentTasks[].status` | common.CurrentTaskStatusEnum | read-only | Current global status of the current task — one of `ERROR`, `PENDING`, `RUNNING`, `SCHEDULED`, `WAITING_USER_INPUT` |
| `currentTasks[].type` | string | read-only | Type of the current task |
| `id` | string (uuid) | read-only | Unique identifier of the IPsec policy |
| `resourceStatus` | common.ResourceStatusEnum | read-only | Readiness of the IPsec policy: whether its observed state has converged to its target specification — one of `CREATING`, `CREATION_PLANNED`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `SUSPENDED`, `UNKNOWN`, `UPDATING` |
| `targetSpec` | publicCloud.vpn.IpsecPolicyTargetSpec | read-only | Last target specification requested for the IPsec policy |
| `targetSpec.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum |  | Integrity algorithm. Must be null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. Defaults to SHA256 when null with any other. — one of `SHA256`, `SHA384`, `SHA512` |
| `targetSpec.description` | string |  | Free-form description of the IPsec policy. At most 255 characters. |
| `targetSpec.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum |  | Encryption algorithm. Defaults to AES_256 when null. — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `targetSpec.lifetime` | integer |  | Lifetime of the IPsec security association in seconds. Defaults to 3600 (1 hour) when null. At least 60. |
| `targetSpec.location` | publicCloud.vpn.Location | yes | Region of the IPsec policy: only the IPsec tunnels of the VPN gateways of this region can use it. Immutable after creation. |
| `targetSpec.location.region` | string | yes | Region code, such as GRA11 |
| `targetSpec.name` | string | yes | Name of the IPsec policy. At most 255 characters. |
| `targetSpec.pfs` | publicCloud.vpn.PfsGroupEnum |  | Diffie-Hellman group for perfect forward secrecy. Defaults to GROUP14 when null. — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |
| `updatedAt` | string (date-time) | read-only | Date and time the IPsec policy was last updated |

```json
{
  "checksum": "string",
  "createdAt": "2024-01-01T12:00:00Z",
  "currentState": {
    "authAlgorithm": "SHA256",
    "description": "string",
    "encryptionAlgorithm": "AES_128",
    "lifetime": 0,
    "location": {
      "region": "string"
    },
    "name": "string",
    "pfs": "GROUP14"
  },
  "currentTasks": [
    {
      "errors": [
        {
          "message": "string"
        }
      ],
      "id": "00000000-0000-0000-0000-000000000000",
      "link": "string",
      "status": "ERROR",
      "type": "string"
    }
  ],
  "id": "00000000-0000-0000-0000-000000000000",
  "resourceStatus": "CREATING",
  "targetSpec": {
    "authAlgorithm": "SHA256",
    "description": "string",
    "encryptionAlgorithm": "AES_128",
    "lifetime": 0,
    "location": {
      "region": "string"
    },
    "name": "string",
    "pfs": "GROUP14"
  },
  "updatedAt": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: publicCloud.vpn.IpsecPolicyCreation
result = client.post("/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy",
	targetSpec = None, # Desired specification of the IPsec policy to create (type: publicCloud.vpn.IpsecPolicyTargetSpec)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: publicCloud.vpn.IpsecPolicyCreation
$result = $ovh->post("/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy", array(
	targetSpec => null, // Desired specification of the IPsec policy to create (type: publicCloud.vpn.IpsecPolicyTargetSpec)
));

print_r($result);
?>
```

## Get an IPsec policy

`GET /v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/network/site-to-site-vpn/ipsec-policies/#getVpnIpsecPolicy

**Status:** Alpha version  
**IAM actions:** `publicCloudProject:apiovh:vpn/ipsecPolicy/get`

Returns the IPsec policy and its observed state.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ipsecPolicyId` | path | string (uuid) | yes | Ipsec policy ID |
| `projectId` | path | string | yes | Project ID |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.vpn.IpsecPolicy | successful operation |
| 404 | object | Error 404 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `checksum` | string | read-only | Hash of the current target specification. Send it back in the update payload to detect concurrent changes. |
| `createdAt` | string (date-time) | read-only | Date and time the IPsec policy was created |
| `currentState` | publicCloud.vpn.IpsecPolicyCurrentState | read-only | Observed state of the IPsec policy. Null while the IPsec policy is being created. |
| `currentState.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum | read-only | Integrity algorithm. Null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. — one of `SHA256`, `SHA384`, `SHA512` |
| `currentState.description` | string | read-only | Free-form description of the IPsec policy. Null when none was given. |
| `currentState.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum | read-only | Encryption algorithm — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `currentState.lifetime` | integer | read-only | Lifetime of the IPsec security association in seconds |
| `currentState.location` | publicCloud.vpn.Location | read-only | Region of the IPsec policy |
| `currentState.location.region` | string | yes | Region code, such as GRA11 |
| `currentState.name` | string | read-only | Name of the IPsec policy |
| `currentState.pfs` | publicCloud.vpn.PfsGroupEnum | read-only | Diffie-Hellman group for perfect forward secrecy — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |
| `currentTasks` | common.CurrentTask[] | read-only | Asynchronous operations ongoing on the IPsec policy |
| `currentTasks[].errors` | common.TaskError[] | read-only | Errors that occurred on the task |
| `currentTasks[].errors[].message` | string | read-only | Error description |
| `currentTasks[].id` | string (uuid) | read-only | Identifier of the current task |
| `currentTasks[].link` | string | read-only | Link to the task details |
| `currentTasks[].status` | common.CurrentTaskStatusEnum | read-only | Current global status of the current task — one of `ERROR`, `PENDING`, `RUNNING`, `SCHEDULED`, `WAITING_USER_INPUT` |
| `currentTasks[].type` | string | read-only | Type of the current task |
| `id` | string (uuid) | read-only | Unique identifier of the IPsec policy |
| `resourceStatus` | common.ResourceStatusEnum | read-only | Readiness of the IPsec policy: whether its observed state has converged to its target specification — one of `CREATING`, `CREATION_PLANNED`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `SUSPENDED`, `UNKNOWN`, `UPDATING` |
| `targetSpec` | publicCloud.vpn.IpsecPolicyTargetSpec | read-only | Last target specification requested for the IPsec policy |
| `targetSpec.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum |  | Integrity algorithm. Must be null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. Defaults to SHA256 when null with any other. — one of `SHA256`, `SHA384`, `SHA512` |
| `targetSpec.description` | string |  | Free-form description of the IPsec policy. At most 255 characters. |
| `targetSpec.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum |  | Encryption algorithm. Defaults to AES_256 when null. — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `targetSpec.lifetime` | integer |  | Lifetime of the IPsec security association in seconds. Defaults to 3600 (1 hour) when null. At least 60. |
| `targetSpec.location` | publicCloud.vpn.Location | yes | Region of the IPsec policy: only the IPsec tunnels of the VPN gateways of this region can use it. Immutable after creation. |
| `targetSpec.location.region` | string | yes | Region code, such as GRA11 |
| `targetSpec.name` | string | yes | Name of the IPsec policy. At most 255 characters. |
| `targetSpec.pfs` | publicCloud.vpn.PfsGroupEnum |  | Diffie-Hellman group for perfect forward secrecy. Defaults to GROUP14 when null. — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |
| `updatedAt` | string (date-time) | read-only | Date and time the IPsec policy was last updated |

```json
{
  "checksum": "string",
  "createdAt": "2024-01-01T12:00:00Z",
  "currentState": {
    "authAlgorithm": "SHA256",
    "description": "string",
    "encryptionAlgorithm": "AES_128",
    "lifetime": 0,
    "location": {
      "region": "string"
    },
    "name": "string",
    "pfs": "GROUP14"
  },
  "currentTasks": [
    {
      "errors": [
        {
          "message": "string"
        }
      ],
      "id": "00000000-0000-0000-0000-000000000000",
      "link": "string",
      "status": "ERROR",
      "type": "string"
    }
  ],
  "id": "00000000-0000-0000-0000-000000000000",
  "resourceStatus": "CREATING",
  "targetSpec": {
    "authAlgorithm": "SHA256",
    "description": "string",
    "encryptionAlgorithm": "AES_128",
    "lifetime": 0,
    "location": {
      "region": "string"
    },
    "name": "string",
    "pfs": "GROUP14"
  },
  "updatedAt": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}");

print_r($result);
?>
```

## Update an IPsec policy

`PUT /v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/network/site-to-site-vpn/ipsec-policies/#editVpnIpsecPolicy

**Status:** Alpha version  
**IAM actions:** `publicCloudProject:apiovh:vpn/ipsecPolicy/edit`

The target specification replaces the previous one as a whole: every algorithm and the lifetime must be sent, and a description left null is removed. Send the checksum of the last GET to reject the update with a checksum mismatch when someone changed the resource in between. Changing the algorithms does not renegotiate the IPsec tunnels already using the policy: each one takes them the next time it is configured, for example on its next update. The update applies immediately: the response already holds the result.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ipsecPolicyId` | path | string (uuid) | yes | Ipsec policy ID |
| `projectId` | path | string | yes | Project ID |

### Request body (required)

Type: `publicCloud.vpn.IpsecPolicyUpdate`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `checksum` | string |  | Optional concurrency-control checksum. When supplied, it must match the resource's current checksum or the request is rejected with a 409 checksum-mismatch conflict. When omitted or empty, the concurrency check is skipped and the write is forced (last-write-wins). |
| `targetSpec` | publicCloud.vpn.IpsecPolicyUpdateTargetSpec | yes | Desired specification of the IPsec policy. It replaces the previous one as a whole. |
| `targetSpec.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum |  | Integrity algorithm. Must be null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. Required with any other. — one of `SHA256`, `SHA384`, `SHA512` |
| `targetSpec.description` | string |  | Free-form description of the IPsec policy. At most 255 characters. |
| `targetSpec.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum | yes | Encryption algorithm — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `targetSpec.lifetime` | integer | yes | Lifetime of the IPsec security association in seconds. At least 60. |
| `targetSpec.name` | string | yes | Name of the IPsec policy. At most 255 characters. |
| `targetSpec.pfs` | publicCloud.vpn.PfsGroupEnum | yes | Diffie-Hellman group for perfect forward secrecy — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |

```json
{
  "checksum": "string",
  "targetSpec": {
    "authAlgorithm": "SHA256",
    "description": "string",
    "encryptionAlgorithm": "AES_128",
    "lifetime": 0,
    "name": "string",
    "pfs": "GROUP14"
  }
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.vpn.IpsecPolicy | successful operation |
| 400 | object | Error 400 response |
| 404 | object | Error 404 response |
| 409 | object | Error 409 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `checksum` | string | read-only | Hash of the current target specification. Send it back in the update payload to detect concurrent changes. |
| `createdAt` | string (date-time) | read-only | Date and time the IPsec policy was created |
| `currentState` | publicCloud.vpn.IpsecPolicyCurrentState | read-only | Observed state of the IPsec policy. Null while the IPsec policy is being created. |
| `currentState.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum | read-only | Integrity algorithm. Null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. — one of `SHA256`, `SHA384`, `SHA512` |
| `currentState.description` | string | read-only | Free-form description of the IPsec policy. Null when none was given. |
| `currentState.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum | read-only | Encryption algorithm — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `currentState.lifetime` | integer | read-only | Lifetime of the IPsec security association in seconds |
| `currentState.location` | publicCloud.vpn.Location | read-only | Region of the IPsec policy |
| `currentState.location.region` | string | yes | Region code, such as GRA11 |
| `currentState.name` | string | read-only | Name of the IPsec policy |
| `currentState.pfs` | publicCloud.vpn.PfsGroupEnum | read-only | Diffie-Hellman group for perfect forward secrecy — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |
| `currentTasks` | common.CurrentTask[] | read-only | Asynchronous operations ongoing on the IPsec policy |
| `currentTasks[].errors` | common.TaskError[] | read-only | Errors that occurred on the task |
| `currentTasks[].errors[].message` | string | read-only | Error description |
| `currentTasks[].id` | string (uuid) | read-only | Identifier of the current task |
| `currentTasks[].link` | string | read-only | Link to the task details |
| `currentTasks[].status` | common.CurrentTaskStatusEnum | read-only | Current global status of the current task — one of `ERROR`, `PENDING`, `RUNNING`, `SCHEDULED`, `WAITING_USER_INPUT` |
| `currentTasks[].type` | string | read-only | Type of the current task |
| `id` | string (uuid) | read-only | Unique identifier of the IPsec policy |
| `resourceStatus` | common.ResourceStatusEnum | read-only | Readiness of the IPsec policy: whether its observed state has converged to its target specification — one of `CREATING`, `CREATION_PLANNED`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `SUSPENDED`, `UNKNOWN`, `UPDATING` |
| `targetSpec` | publicCloud.vpn.IpsecPolicyTargetSpec | read-only | Last target specification requested for the IPsec policy |
| `targetSpec.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum |  | Integrity algorithm. Must be null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. Defaults to SHA256 when null with any other. — one of `SHA256`, `SHA384`, `SHA512` |
| `targetSpec.description` | string |  | Free-form description of the IPsec policy. At most 255 characters. |
| `targetSpec.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum |  | Encryption algorithm. Defaults to AES_256 when null. — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `targetSpec.lifetime` | integer |  | Lifetime of the IPsec security association in seconds. Defaults to 3600 (1 hour) when null. At least 60. |
| `targetSpec.location` | publicCloud.vpn.Location | yes | Region of the IPsec policy: only the IPsec tunnels of the VPN gateways of this region can use it. Immutable after creation. |
| `targetSpec.location.region` | string | yes | Region code, such as GRA11 |
| `targetSpec.name` | string | yes | Name of the IPsec policy. At most 255 characters. |
| `targetSpec.pfs` | publicCloud.vpn.PfsGroupEnum |  | Diffie-Hellman group for perfect forward secrecy. Defaults to GROUP14 when null. — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |
| `updatedAt` | string (date-time) | read-only | Date and time the IPsec policy was last updated |

```json
{
  "checksum": "string",
  "createdAt": "2024-01-01T12:00:00Z",
  "currentState": {
    "authAlgorithm": "SHA256",
    "description": "string",
    "encryptionAlgorithm": "AES_128",
    "lifetime": 0,
    "location": {
      "region": "string"
    },
    "name": "string",
    "pfs": "GROUP14"
  },
  "currentTasks": [
    {
      "errors": [
        {
          "message": "string"
        }
      ],
      "id": "00000000-0000-0000-0000-000000000000",
      "link": "string",
      "status": "ERROR",
      "type": "string"
    }
  ],
  "id": "00000000-0000-0000-0000-000000000000",
  "resourceStatus": "CREATING",
  "targetSpec": {
    "authAlgorithm": "SHA256",
    "description": "string",
    "encryptionAlgorithm": "AES_128",
    "lifetime": 0,
    "location": {
      "region": "string"
    },
    "name": "string",
    "pfs": "GROUP14"
  },
  "updatedAt": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X PUT \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: publicCloud.vpn.IpsecPolicyUpdate
result = client.put("/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}",
	checksum = None, # Optional concurrency-control checksum. When supplied, it must match the resource's current checksum or the request is rejected with a 409 checksum-mismatch conflict. When omitted or empty, the concurrency check is skipped and the write is forced (last-write-wins). (type: string, nullable)
	targetSpec = None, # Desired specification of the IPsec policy. It replaces the previous one as a whole. (type: publicCloud.vpn.IpsecPolicyUpdateTargetSpec)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: publicCloud.vpn.IpsecPolicyUpdate
$result = $ovh->put("/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}", array(
	checksum => null, // Optional concurrency-control checksum. When supplied, it must match the resource's current checksum or the request is rejected with a 409 checksum-mismatch conflict. When omitted or empty, the concurrency check is skipped and the write is forced (last-write-wins). (type: string, nullable)
	targetSpec => null, // Desired specification of the IPsec policy. It replaces the previous one as a whole. (type: publicCloud.vpn.IpsecPolicyUpdateTargetSpec)
));

print_r($result);
?>
```

## Delete an IPsec policy

`DELETE /v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/network/site-to-site-vpn/ipsec-policies/#deleteVpnIpsecPolicy

**Status:** Alpha version  
**IAM actions:** `publicCloudProject:apiovh:vpn/ipsecPolicy/delete`

Deletes the IPsec policy. It is refused while an IPsec tunnel uses it. Deletion applies immediately: the response already holds the result.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ipsecPolicyId` | path | string (uuid) | yes | Ipsec policy ID |
| `projectId` | path | string | yes | Project ID |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.vpn.IpsecPolicy | successful operation |
| 404 | object | Error 404 response |
| 409 | object | Error 409 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `checksum` | string | read-only | Hash of the current target specification. Send it back in the update payload to detect concurrent changes. |
| `createdAt` | string (date-time) | read-only | Date and time the IPsec policy was created |
| `currentState` | publicCloud.vpn.IpsecPolicyCurrentState | read-only | Observed state of the IPsec policy. Null while the IPsec policy is being created. |
| `currentState.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum | read-only | Integrity algorithm. Null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. — one of `SHA256`, `SHA384`, `SHA512` |
| `currentState.description` | string | read-only | Free-form description of the IPsec policy. Null when none was given. |
| `currentState.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum | read-only | Encryption algorithm — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `currentState.lifetime` | integer | read-only | Lifetime of the IPsec security association in seconds |
| `currentState.location` | publicCloud.vpn.Location | read-only | Region of the IPsec policy |
| `currentState.location.region` | string | yes | Region code, such as GRA11 |
| `currentState.name` | string | read-only | Name of the IPsec policy |
| `currentState.pfs` | publicCloud.vpn.PfsGroupEnum | read-only | Diffie-Hellman group for perfect forward secrecy — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |
| `currentTasks` | common.CurrentTask[] | read-only | Asynchronous operations ongoing on the IPsec policy |
| `currentTasks[].errors` | common.TaskError[] | read-only | Errors that occurred on the task |
| `currentTasks[].errors[].message` | string | read-only | Error description |
| `currentTasks[].id` | string (uuid) | read-only | Identifier of the current task |
| `currentTasks[].link` | string | read-only | Link to the task details |
| `currentTasks[].status` | common.CurrentTaskStatusEnum | read-only | Current global status of the current task — one of `ERROR`, `PENDING`, `RUNNING`, `SCHEDULED`, `WAITING_USER_INPUT` |
| `currentTasks[].type` | string | read-only | Type of the current task |
| `id` | string (uuid) | read-only | Unique identifier of the IPsec policy |
| `resourceStatus` | common.ResourceStatusEnum | read-only | Readiness of the IPsec policy: whether its observed state has converged to its target specification — one of `CREATING`, `CREATION_PLANNED`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `SUSPENDED`, `UNKNOWN`, `UPDATING` |
| `targetSpec` | publicCloud.vpn.IpsecPolicyTargetSpec | read-only | Last target specification requested for the IPsec policy |
| `targetSpec.authAlgorithm` | publicCloud.vpn.AuthAlgorithmEnum |  | Integrity algorithm. Must be null with an AES_*_GCM encryptionAlgorithm, which carries its own integrity. Defaults to SHA256 when null with any other. — one of `SHA256`, `SHA384`, `SHA512` |
| `targetSpec.description` | string |  | Free-form description of the IPsec policy. At most 255 characters. |
| `targetSpec.encryptionAlgorithm` | publicCloud.vpn.EncryptionAlgorithmEnum |  | Encryption algorithm. Defaults to AES_256 when null. — one of `AES_128`, `AES_128_GCM`, `AES_192`, `AES_256`, `AES_256_GCM` |
| `targetSpec.lifetime` | integer |  | Lifetime of the IPsec security association in seconds. Defaults to 3600 (1 hour) when null. At least 60. |
| `targetSpec.location` | publicCloud.vpn.Location | yes | Region of the IPsec policy: only the IPsec tunnels of the VPN gateways of this region can use it. Immutable after creation. |
| `targetSpec.location.region` | string | yes | Region code, such as GRA11 |
| `targetSpec.name` | string | yes | Name of the IPsec policy. At most 255 characters. |
| `targetSpec.pfs` | publicCloud.vpn.PfsGroupEnum |  | Diffie-Hellman group for perfect forward secrecy. Defaults to GROUP14 when null. — one of `GROUP14`, `GROUP15`, `GROUP16`, `GROUP19`, `GROUP20`, `GROUP21`, `GROUP31` |
| `updatedAt` | string (date-time) | read-only | Date and time the IPsec policy was last updated |

```json
{
  "checksum": "string",
  "createdAt": "2024-01-01T12:00:00Z",
  "currentState": {
    "authAlgorithm": "SHA256",
    "description": "string",
    "encryptionAlgorithm": "AES_128",
    "lifetime": 0,
    "location": {
      "region": "string"
    },
    "name": "string",
    "pfs": "GROUP14"
  },
  "currentTasks": [
    {
      "errors": [
        {
          "message": "string"
        }
      ],
      "id": "00000000-0000-0000-0000-000000000000",
      "link": "string",
      "status": "ERROR",
      "type": "string"
    }
  ],
  "id": "00000000-0000-0000-0000-000000000000",
  "resourceStatus": "CREATING",
  "targetSpec": {
    "authAlgorithm": "SHA256",
    "description": "string",
    "encryptionAlgorithm": "AES_128",
    "lifetime": 0,
    "location": {
      "region": "string"
    },
    "name": "string",
    "pfs": "GROUP14"
  },
  "updatedAt": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X DELETE \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.delete("/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->delete("/v2/publicCloud/project/{projectId}/vpn/ipsecPolicy/{ipsecPolicyId}");

print_r($result);
?>
```
