Deleting IPsec policies

DELETE /v2.0/vpn/ipsecpolicies/{ipsecpolicy_id}

Delete an IPsec policy.

Source: https://docs.openstack.org/api-ref/network/v2/index.html?expanded=remove-ipsec-policy-detail#remove-ipsec-policy

Request

Name In Type Description
ipsecpolicy_id path string The ID of the IPsec policy.

Example

# curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:9696/v2.0/vpn/ipsecpolicies/805ab779-e91c-42db-b6b9-591156d9634e

Response

Status codes

Success

Code Reason
204 - No Content The server has fulfilled the request.

Error

Code Reason
401 - Unauthorized

User must authenticate before making a request.

404 - Not Found

The requested resource could not be found.

409 - Conflict

This operation conflicted with another operation on this resource.