Skip to main content

Effective 10 September 2024, API Documentation can be found on our Equinix Product Documentation site.
The content on this page will not be updated after 1 Oct 2024 and will be inaccessible after 31st Dec 2024.


VPN

Get VPN Configurations

 GET /ne/v1/vpn
MethodGET
URL or End Point/ne/v1/vpn
HeadersAuthorization, Content-Type
Query ParametersstatusList [], virtualDeviceUuid, offset, limit
BodyNot applicable

Returns all VPN configurations.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

A sample curl request to get VPNs.

curl -X
GET "https://api.equinix.com/ne/v1/vpn"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"

Description of the query parameters:

Query Parameter NameMandatoryTypeExampleApplicable ValuesDescription
statusListNoarray[string]PROVISIONED"PROVISIONED"
"PROVISIONING"
"FAILED"
"DEPROVISIONED"
"DEPROVISIONING"
A list of VPN status.
virtualDeviceUuidNostring116b4f6a-bb12-45dc-b573-05dba39c6cb1Unique Id of a virtual device.
offsetNointeger0Specifies where to start a page. It is the starting point of the collection returned from the server.
limitNointeger100Specifies the page size.

Sample response:

{
"pagination": {
"offset": 0,
"limit": 20,
"total": 9
},

"data": [
{
"configName": "rr1-apr22-nonha-vpn1",
"peerIp": "10.10.10.2",
"peerSharedKey": "cnIxLWFwcjIyLW5vbmhhLXZwbjE=",
"remoteAsn": 234568,
"remoteIpAddress": "10.10.10.30",
"password": "welcome1",
"localAsn": 234565,
"tunnelIp": "212.14.101.1/24",
"virtualDeviceUuid": "7815a65d-214d-412b-9c50-17237426177a",
"siteName": "NoNHAvpn",
"uuid": "b884d9c0-8771-49b2-800b-34701246aba1",
"status": "DEPROVISIONED",
"bgpState": "Idle",
"tunnelStatus": "DOWN",
"useNetworkServiceConnection": false,
"createdDate": "2019-04-23T02:48:45.097Z",
"createdByFullName": "nfv-sit4 nfv-sit4",
"createdByEmail": "test@equinix.com",
"createdBy": "nfv-sit4",
"lastUpdatedDate": "2019-04-24T01:50:23.376Z",
"lastUpdatedByFullName": "nfv-sit4 nfv-sit4",
"lastUpdatedByEmail": "test@equinix.com",
"lastUpdatedBy": "nfv-sit4"
}
]
}

The description of the response payload is as follows:

FieldTypeExample ValuesDescription
paginationobjectAn object that has pagination information.
offsetinteger0It is the starting point of the collection returned from the server.
limitinteger20The page size.
totalinteger100The total number of results.
nextstringThe next set of records.
previousstringThe previous set of records.
dataarraydata[]An array containing VPN objects.
configNamestringtest2Description of the VPN. This is between 3 and 50 characters.
peerIpstring1.1.1.1IP Address of the remote site to which you connect (this is on the customer side).
peerSharedKeystring213Pre-shared key for VPN
remoteAsnstring21345Remote ASN (autonomous system number).
remoteIpAddressstring1.1.1.1Remote IP address to establish BGP peering (this is on the customer side)
passwordstringabc123Password for BGP peering.
localAsnstring12345Local ASN (autonomous system number) of Equinix site.
tunnelIpstring2.2.2.2/25Local tunnel IP in CIDR format
virtualDeviceUuidstring7d12f7c6-c9ee-4a14-9b00-5873eadf7708Unique Id of the virtual device.
siteNamestringtestVPNYour remote siteName.
uuidstringd93fad3f-dbe6-440d-ba94-8312e831d57aUnique Id of the VPN
statusstringPROVISIONEDVPN status. One of Provisioning, Provisioned, Failed, Deprovisioning, or Deprovisioned.
bgpStatestringIdleBGP state. One of Idle, Connect, Active, Established, OpenSent, or OpenConfirm.
tunnelStatusstringDOWNTunnel status. Either Up or Down.
useNetworkServiceConnectionbooleanfalseWhether this VPN tunnel uses a network service connection.
createdDatestring2019-04-24T01:50:23.376ZCreation date.
createdByFullNamestringnfv-sit4 nfv-sit4Created by (full name).
createdByEmailstringtest@equinix.comCreated by (email).
createdBystringnfv-sit4Created by (username).
lastUpdatedDatestring2019-04-24T01:50:23.376ZLast update date.
lastUpdatedByFullNamestringnfv-sit4 nfv-sit4Last updated by (full name).
lastUpdatedByEmailstringtest@equinix.comLast updated by (email).
lastUpdatedBystringnfv-sit4Last updated by (username).
 

If you get “Access Denied” error, contact your local Equinix Service Desk.

Get VPN Configuration {uuid}

 GET /ne/v1/vpn/{uuid}
MethodGET
URL or End Point/ne/v1/vpn/{uuid}
HeadersAuthorization, Content-Type
Path Parameteruuid
BodyNot applicable

Returns the details of a VPN configuration by its unique ID.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

Sample curl request to get a VPN configuration.

curl -X
GET "https://api.equinix.com/ne/v1/vpn/920a6218-7e77-4105-ae95-cf3ea2993696"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"

Description of the query parameters:

Path Parameter NameMandatoryTypeExampleApplicable ValuesDescription
uuidYesstring920a6218-7e77-4105-ae95-cf3ea2993696Unique Id of a VPN configuration.

Sample response:

        {
"configName": "rr1-apr22-nonha-vpn1",
"peerIp": "10.10.10.2",
"peerSharedKey": "cnIxLWFwcjIyLW5vbmhhLXZwbjE=",
"remoteAsn": 234568,
"remoteIpAddress": "10.10.10.30",
"password": "welcome1",
"localAsn": 234565,
"tunnelIp": "212.14.101.1/24",
"virtualDeviceUuid": "7815a65d-214d-412b-9c50-17237426177a",
"siteName": "NoNHAvpn",
"uuid": "b884d9c0-8771-49b2-800b-34701246aba1",
"status": "DEPROVISIONED",
"bgpState": "Idle",
"tunnelStatus": "DOWN",

"useNetworkServiceConnection": false,
"createdDate": "2019-04-23T02:48:45.097Z",
"createdByFullName": "nfv-sit4 nfv-sit4",
"createdByEmail": "test@equinix.com",
"createdBy": "nfv-sit4",
"lastUpdatedDate": "2019-04-24T01:50:23.376Z",
"lastUpdatedByFullName": "nfv-sit4 nfv-sit4",
"lastUpdatedByEmail": "test@equinix.com",
"lastUpdatedBy": "nfv-sit4"
}

The description of the response payload is as follows:

FieldTypeExample ValuesDescription
configNamestringtest2Description of the VPN. This is between 3 and 50 characters.
peerIpstring1.1.1.1IP Address of the remote site to which you connect (this is on the customer side).
peerSharedKeystring213Pre-shared key for VPN
remoteAsnstring21345Remote ASN (autonomous system number).
remoteIpAddressstring1.1.1.1Remote IP address to establish BGP peering (this is on the customer side)
passwordstringabc123Password for BGP peering.
localAsnstring12345Local ASN (autonomous system number) of Equinix site.
tunnelIpstring2.2.2.2/25Local tunnel IP in CIDR format
virtualDeviceUuidstring7d12f7c6-c9ee-4a14-9b00-5873eadf7708Unique Id of the virtual device.
siteNamestringtestVPNYour remote siteName.
uuidstringd93fad3f-dbe6-440d-ba94-8312e831d57aUnique Id of the VPN
statusstringPROVISIONEDVPN status. One of Provisioning, Provisioned, Failed, Deprovisioning, or Deprovisioned.
bgpStatestringIdleBGP state. One of Idle, Connect, Active, Established, OpenSent, or OpenConfirm.
tunnelStatusstringDOWNTunnel status. Either Up or Down.
useNetworkServiceConnectionbooleanfalseWhether this VPN uses a network service connection.
createdDatestring2019-04-23T02:48:45.097Z
createdByFullNamestringnfv-sit4 nfv-sit4Created by (full name).
createdByEmailstringtest@equinix.comCreated by (email).
createdBystringnfv-sit4Created by (username).
lastUpdatedDatestring2019-04-24T01:50:23.376ZLast update date.
lastUpdatedByFullNamestringnfv-sit4 nfv-sit4Last updated by (full name).
lastUpdatedByEmailstringtest@equinix.comLast updated by (email).
lastUpdatedBystringnfv-sit4Last updated by (username).
 

If you get “Access Denied” error, contact your local Equinix Service Desk.

Delete VPN Configuration

 DELETE /ne/v1/vpn/{uuid}
MethodDELETE
URL or End Point/ne/v1/vpn/{uuid}
HeadersAuthorization, Content-Type
Query ParameterNA
Path ParameterUnique Id of a VPN configuration
BodyNA

Deletes a VPN configuration by its unique Id.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

The following screenshot shows a sample curl request.

curl -X
DELETE "https://api.equinix.com/ne/v1/vpn/5f888d91-d2c5-45bb-9b51-fed99f57f0ac"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
Path Parameter NameMandatoryTypeExampleApplicable ValuesDescription
uuidYesstring5f888d91-d2c5-45bb-9b51-fed99f57f0acUnique Id of a VPN configuration.

Sample response:

202: Deletion request accepted.

The description of the response is as follows:

HTTP statusDescription
202Deletion request accepted.
 

If you get “Access Denied” error, contact your local Equinix Service Desk.

Update VPN Configuration

 PUT /ne/v1/vpn{uuid}
MethodPUT
URL or End Point/ne/v1/vpn/{uuid}
HeadersAuthorization, Content-Type
Query ParametersNot applicable
Path Parameteruuid
Body ParametersconfigName, peerIp, peerSharedKey, remoteAsn, remoteIpAddress, password, localAsn, tunnelIp, useNetworkServiceConnection, secondary {configName, peerIp, peerSharedKey, remoteAsn, remoteIpAddress, password, localAsn, tunnelIp}

Updates a VPN configuration by its unique ID.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

Sample curl request.

curl -X
PUT "https://api.equinix.com/ne/v1/vpn/ae03260c-e5db-4ff0-8b16-d50a81d0eef5"
-H "Authorization: Bearer 4P8uH5ZWsgH4qlovBrFZG4Hzpp2V"
-H "Content-Type: application/json"
-d '{
"configName": "Traffic from AWS cloud",
"peerIp": "110.11.12.222",
"peerSharedKey": "5bb2424e888bd",
"remoteAsn": 65413,
"remoteIpAddress": "100.210.1.31",
"password": "pass123SROY",
"localAsn": 65414,
"tunnelIp": "192.168.7.2/30",
"useNetworkServiceConnection": false
}'

Sample curl request for a redundant device.

curl -X
PUT "https://api.equinix.com/ne/v1/vpn/ae03260c-e5db-4ff0-8b16-d50a81d0eef5"
-H "Authorization: Bearer 4P8uH5ZWsgH4qlovBrFZG4Hzpp2V"
-H "Content-Type: application/json"
-d '{
"configName": "Traffic from AWS cloud",
"peerIp": "110.11.12.222",
"peerSharedKey": "5bb2424e888bd",
"remoteAsn": 65413,
"remoteIpAddress": "100.210.1.31",
"password": "pass123SROY",
"localAsn": 65414,
"tunnelIp": "192.168.7.2/30",
"useNetworkServiceConnection": false,
"secondary": {
"configName": "Traffic from AWS cloud-SROY",
"peerIp": "110.11.12.222",
"peerSharedKey": "5bb2424e888bd",
"remoteAsn": 65413,
"remoteIpAddress": "100.210.1.31",
"password": "pass123SROY",
"localAsn": 65414,
"tunnelIp": "192.168.7.2/30"
}
}'

Path parameter:

Path Parameter NameMandatoryTypeExampleApplicable ValuesDescription
uuidYesstring9a47a75e-164b-4c1c-8678-7b3605d4dd32The unique Id of a VPN configuration.

Description of request body parameters:

Body Parameter NameMandatoryTypeExampleApplicable ValuesDescription
configNameYesstringTraffic from AWS cloudDescription of the VPN. This must be between 3 and 50 characters. If you have a redundant device, you must provide a secondary config name.
peerIpYesstring100.210.1.221IP Address of the remote site to which you are connecting (this is on the customer side). You must provide a unique peer IP address for every VPN between a virtual device and the remote site.
peerSharedKeyYesstring10013Pre-shared key for VPN.
remoteAsnYesstring10023Remote ASN (autonomous system number). Remote ASN and local ASN cannot be the same. You cannot use the following reserved ASN numbers: 0, 23456, 64496-64511, 65535, 65552-131071, 4294967295.
remoteIpAddressYesstring100.210.1.31Remote IP address to establish BGP peering (this is on the customer side).
passwordNostringpass123SROYPassword for BGP peering. This must not start with a number, must be between 4 and 25 characters long, and contain only alphanumeric characters.
localAsnYesinteger65414Local ASN (autonomous system number) of Equinix site. Remote and local ASN cannot be the same. You cannot use the following reserved ASN numbers: 0, 23456, 64496-64511, 65535, 65552-131071, 4294967295.
tunnelIpYesstring192.168.7.2/30Local tunnel IP in CIDR format.
useNetworkServiceConnectionYesbooleanfalseWhether this VPN should use the existing network service connection. You should set this value to True only if you have an existing network service connection on your device.

Sample response.

202 Accepted

Description of the response payload:

HTTP StatusDescription
202 AcceptedYour request has been accepted.

You can check the status of your VPN by calling Get VPN.

Possible VPN statusDescription
PROVISIONINGVPN is provisioning.
PROVISIONEDVPN is provisioned.
FAILEDVPN provisioning failed.
DEPROVISIONINGVPN is de-provisioning.
DEPROVISIONEDVPN is de-provisioned

VPN tunnel status is either UP or DOWN. CreateVPNStatus

 

If you get “Access Denied” error, contact your local Equinix Service Desk.