Deleting a VPN Connection

You can delete a VPN connection between your corporate network and one of your Nets in the OUTSCALE Cloud.

This action deletes the secure VPN tunnel between the client gateway and the virtual gateway.

Deleting a VPN Connection Using Cockpit v2

  1. Click inside the VPN Connections dashboard to make checkboxes appear.

  2. Check the box of the VPN Connection you want to delete.
    The VPN Connection is selected and an action menu appears.

    Multiselection is available.

  3. Click IconTerminate Delete.
    A confirmation dialog box appears.

  4. Click Delete.
    The VPN Connection is deleted.

    Deleted resources remain visible for 1 hour.

Deleting a VPN Connection Using OSC CLI

The DeleteVpnConnection command deletes a specified VPN connection.
If you want to delete a Net and all its dependencies, we recommend to detach the virtual gateway from the Net and delete the Net before deleting the VPN connection. This enables you to delete the Net without waiting for the VPN connection to be deleted.

Request sample
$ osc-cli api DeleteVpnConnection --profile "default" \
    --VpnConnectionId "vpn-12345678"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • VpnConnectionId: The ID of the VPN connection you want to delete.

The DeleteVpnConnection command returns the following elements:

  • ResponseContext: Information about the context of the response.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Deleting a VPN Connection Using AWS CLI

To delete a VPN connection, use the delete-vpn-connection command following this syntax:

Request sample
$ aws ec2 delete-vpn-connection \
    --profile YOUR_PROFILE \
    --vpn-connection-id vpn-c750ea06 \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • vpn-connection-id: The ID of the VPN connection you want to delete.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The specified VPN connection is deleted.

Deleted resources remain visible for 1 hour.

Related Pages

Corresponding API Methods

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.