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.


BGP

Get BGP Peerings

 GET /ne/v1/bgp
MethodGET
URL or End Point/ne/v1/bgp
HeadersAuthorization, Content-Type
Query ParametersvirtualDeviceUuid, connectionUuid, status, accountUcmId, offset, limit
BodyNot applicable

Returns BGP configurations.

 

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

Sample curl request:

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

Query parameters:

Query ParameterMandatoryTypeExampleApplicable ValuesDescription
virtualDeviceUuidNostring7ef81cbe-01ed-4c27-8b2f-69d3a3fd4d6aUnique Id of a virtual device.
connectionUuidNostring7ab1bdca-0d56-457a-bbfe-4583082c721cUnique Id of a connection.
statusNostringPROVISIONEDPROVISIONED, DEPROVISIONED, PROVISIONING, or FAILEDProvisioning status of a BGP peering.
accountUcmIdUnique Id of the account. A reseller querying for a customer's devices can input the customer's account information. To find out the accountUcmId of your customer's account, please check the Equinix account creation portal (ECP) or call Get Account API.
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": [
{
"uuid": "7ab1bdca-0d56-457a-bbfe-4583082c721c",
"connectionUuid": "fbb0667d-0323-4734-855f-695cf543c2d7",
"virtualDeviceUuid": "a75fe919-7b95-4be4-ba13-20f678fe83c6",
"localIpAddress": "172.16.212.213/30",
"localAsn": 2126,
"remoteAsn": 2226,
"remoteIpAddress": "172.16.212.214",
"state": "Established",
"createdBy": "nfv-sit1",
"createdByFullName": "nfv-sit1 nfv-sit1",
"createdDate": "2019-10-14T22:07:13.701Z",
"createdByEmail": "shafina.ahamed@ap.equinix.com",
"provisioningStatus": "PROVISIONED"
},
{
"uuid": "8be2c356-ca90-4a75-b42a-7cd6dfbe8ead",
"connectionUuid": "d2572f95-03e2-4ff2-89a3-7221d7048a20",
"virtualDeviceUuid": "a75fe919-7b95-4be4-ba13-20f678fe83c6",
"localIpAddress": "172.16.224.225/30",
"localAsn": 2126,
"remoteAsn": 2326,
"remoteIpAddress": "172.16.224.226",
"state": "Established",
"createdBy": "nfv-sit1",
"createdByFullName": "nfv-sit1 nfv-sit1",
"createdDate": "2019-10-14T22:29:39.052Z",
"createdByEmail": "shafina.ahamed@ap.equinix.com",
"provisioningStatus": "PROVISIONED"
}
]
}

The description of the response payload:

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.
datalist[]An array of BGP objects.
uuidstring6ea5a0e4-2bf7-45c2-9aa7-e846a8cd5567Unique Id of BGP peering.
connectionUuidstringe5f30fc6-ae9d-4fbb-8020-d61329d8fe34Unique Id of the connection between your virtual device and another service provider.
virtualDeviceUuidstringf61e75d2-2008-43f4-bfee-1dd17b1e1a28Unique Id of your virtual device.
localIpAddressstring12.0.0.1/30Local IP Address. This is the IP address of the virtual device in CIDR format.
localAsnstring10061Local ASN (autonomous system number). This is the ASN of your virtual device.
remoteIpAddressstring12.0.0.2Remote IP address. This is the IP address of the cloud service provider.
remoteAsnstring10013Remote ASN (autonomous system number). This is the ASN of the cloud service provider.
authenticationKeystringpass1233Key-value for authentication.
statestringIdleState of the BGP peering. One of Idle, Connect, Active, Established, OpenSent, and OpenConfirm.
createdBystringnfv-sit1The username of the user who created the BGP peering.
createdDatestring2018-08-30T04:20:36.033ZThe date on which the BGP peering was created.
createdByFullNamestringnfv-sit1 nfv-sit1Full name of the user who created BGP peering.
createdByEmailstringtest@equinix.comCreated by email.
lastUpdatedBystringnfv-sit1Last updated by.
lastUpdatedByFullNamestringnfv-sit1 nfv-sit1Full name of the user who updated last.
lastUpdatedDatestring2018-08-30T04:20:36.033ZLast update date.
lastUpdatedByEmailstringtest@equinix.comEmail of the user who updated last.
provisioningStatusstringPROVISIONEDProvisioning status of BGP peering. One of PROVISIONING, PROVISIONED, FAILED, or DEPROVISIONED.
 

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

Get BGP Peering {uuid}

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

Returns a BGP configuration by its uuid.

 

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

Sample curl request:

curl -X
GET "https://api.equinix.com/ne/v1/bgp/7ef81cbe-01ed-4c27-8b2f-69d3a3fd4d6a"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"

Path parameter:

Path Parameter NameMandatoryTypeExampleApplicable ValuesDescription
uuidYesstring7ef81cbe-01ed-4c27-8b2f-69d3a3fd4d6aUnique Id of a BGP peering.

Sample response:

{
"uuid": "7ab1bdca-0d56-457a-bbfe-4583082c721c",
"connectionUuid": "fbb0667d-0323-4734-855f-695cf543c2d7",
"virtualDeviceUuid": "a75fe919-7b95-4be4-ba13-20f678fe83c6",
"localIpAddress": "100.210.1.221/30",
"localAsn": 10012,
"remoteAsn": 10013,
"remoteIpAddress": "100.210.1.222",
"authenticationKey": "pass123",
"state": "Established",
"createdBy": "nfv-sit1",
"createdByFullName": "nfv-sit1 nfv-sit1",
"createdDate": "2019-10-14T22:07:13.701Z",
"createdByEmail": "shafina.ahamed@ap.equinix.com",
"lastUpdatedBy": "nfv-sit1",
"lastUpdatedByFullName": "nfv-sit1 nfv-sit1",
"lastUpdatedDate": "2019-10-16T21:00:30.539Z",
"lastUpdatedByEmail": "shafina.ahamed@ap.equinix.com",
"provisioningStatus": "PENDING_UPDATE"
}

The description of the response payload:

FieldTypeExample ValuesDescription
uuidstring6ea5a0e4-2bf7-45c2-9aa7-e846a8cd5567Unique Id of a BGP peering.
connectionUuidstringe5f30fc6-ae9d-4fbb-8020-d61329d8fe34Unique Id of the connection between your virtual device and another service provider.
virtualDeviceUuidstringf61e75d2-2008-43f4-bfee-1dd17b1e1a28Unique Id of your virtual device.
localIpAddressstring12.0.0.1/30Local IP Address. This is the IP address of the virtual device in CIDR format.
localAsnstring10061Local ASN (autonomous system number). This is the ASN of your virtual device.
remoteIpAddressstring12.0.0.2Remote IP address. This is the IP address of the cloud service provider.
remoteAsnstring10013Remote ASN (autonomous system number). This is the ASN of the cloud service provider.
authenticationKeystringpass1233Key value for authentication.
statestringIdleState of the BGP peering. One of Idle, Connect, Active, Established, OpenSent, and OpenConfirm.
createdBystringnfv-sit1The username of the user who created the BGP peering.
createdDatestring2018-08-30T04:20:36.033ZThe date on which the BGP peering was created.
createdByFullNamestringnfv-sit1 nfv-sit1Full name of the user who created BGP peering.
createdByEmailstringtest@equinix.comCreated by email.
lastUpdatedBystringnfv-sit1Last updated by.
lastUpdatedByFullNamestringnfv-sit1 nfv-sit1Full name of the user who updated last.
lastUpdatedDatestring2018-08-30T04:20:36.033ZLast update date.
lastUpdatedByEmailstringtest@equinix.comEmail of the user who updated last.
provisioningStatusstringPROVISIONEDProvisioning status of BGP peering. One of PROVISIONING, PROVISIONED, or FAILED.
 

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

Update BGP Peering

 PUT /ne/v1/bgp/{uuid}
MethodPUT
URL or End Point/ne/v1/bgp/{uuid}
HeadersAuthorization token, Content-Type
Path Parameteruuid
Body ParametersauthenticationKey, localAsn, localIpAddress, remoteAsn, remoteIpAddress

Updates the BGP peering between a virtual device and a cloud service provider.

 

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/bgp/ec68e425-f973-452e-a866-76be5844d0ba"
-H "Authorization: Bearer CcYxLosIYIIsmCGav5pplU25dLkG"
-H "Content-Type: application/json"
-d '{
"authenticationKey": "sroy001",
"localAsn": 10012,
"localIpAddress": "10.0.0.1/29",
"remoteAsn": 10013,
"remoteIpAddress": "10.0.0.2"
}'

Path parameter:

Path ParameterMandatoryTypeExamplePossible ValuesDescription
uuidYesstring7ab1bdca-0d56-457a-bbfe-4583082c721cUnique Id of a BGP peering.

Body parameters:

Body ParametersMandatoryTypeExamplePossible ValuesDescription
authenticationKeyNostringpass123Provide a key value that you will use to authenticate later.
localAsnYesinteger10012Local ASN (autonomous system number). This is the ASN of your virtual device.
localIpAddressYesstring100.210.1.221/30Local IP Address. This is the IP address of the virtual device in CIDR format.
remoteAsnYesinteger10013Remote ASN (autonomous system number). This is the ASN of the cloud service provider.
remoteIpAddressYesstring100.210.1.31Remote IP address. This is the IP address of the cloud service provider.

Sample response:

{
"uuid": "ec68e425-f973-452e-a866-76be5844d0ba"
}

The description of the response payload:

FieldTypeExample ValuesDescription
uuidstringec68e425-f973-452e-a866-76be5844d0baUnique Id of the of the updated BGP peering.
 

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