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.


Connect to Enterprises

End users can create connections to other Equinix customers (customers, vendors, and partners) using either a Dot1Q port or a QinQ port.

 

Click here to watch a video on how to connect to other Equinix customers using Equinix Fabric Portal.

Layer 2 Redundant Enterprise Connection

Establish_Enterprise_redundant_diagram

Step 1: Authenticate

Submit your user credentials, Client ID, and Client Secret for OAuth2 authentication.

 

Refer to Generating Client ID and Client Secret under the Getting Access Token section for instructions on how to create client ID and client secret and refer to Requesting Access and Refresh tokens section for instructions on how to call Oauth API to validate and authenticate your credentials.

 

If you are unaware of your user credentials for Equinix Fabric, contact your local Equinix Service Desk.

Step 2: Get Attribute Information

2a) Get Port
Retrieve your allocated Equinix Fabric port information.

 

Refer to GET Port under the API Reference section for instructions on how to retrieve port details. You may skip this step if you already know your port information.

2b) Get Metros
Find all metros where Equinix Fabric is available to check if a connection can be established between the port selected earlier and your desired destination metro.

 

Use this API to identify the metro codes of your source (A-side) and destination (Z-side) for your connection.

 

Refer to GET Metros under the API Reference section for instructions on how to get the metro code. You may skip this step if you already know this information.

2c) Get Service Profile
Identify all service profiles available for a given metro or metros, and select the profile to which you wish to connect.

 

If you intend to create a connection to a private seller service profile, ensure that you have been authorized by the respective seller profile to access and retrieve the service profile details.
In order to do this, the seller must whitelist your email ID by adding the email address to the private profile in the Equinix Fabric portal.
For more information please refer to the Equinix Fabric documentation at https://docs.equinix.com/en-us/Content/Interconnection/ECXF/landing-pages/ECXF-landing-main.htm

 

Refer to GET Services under the API Reference section for instructions on how to retrieve service profiles in Equinix Fabric. You may skip this step if you already know the service profile details.

Step 3: Create Connection

 POST /ecx/v3/l2/connections
MethodPOST
URL or Endpoint/ecx/v3/l2/connections
HeadersAuthorization, Content-Type
Query ParametersNot applicable
Body ParametersprimaryName, primaryPortUUID, primaryVlanSTag, primaryVlanCTag, profileUUID, authorizationKey, speed, speedUnit, notifications [...], purchaseOrderNumber, sellerRegion, sellerMetroCode, secondaryName, secondaryPortUUID, secondaryVlanSTag, secondaryVlanCTag, primaryZSideVlanCTag, secondaryZSideVlanCTag

The POST connections API creates a layer 2 connection between your port and the destination service profile. The authorization token and content-type are the only headers that are passed to this API and a response is received based on the values passed.

 

If you are unaware of how to obtain an authorization token, refer to Requesting Access and Refresh tokens section under the Getting Access Token.

The following screenshots show sample curl requests to create layer 2 redundant enterprise connection using Dot1q and QinQ ports and a sample JSON response for this API.

 

Should you want to estimate the price of this connection, use the API GET Prices.


Redundant Connection from a Dot1Q port to a service profile with a Dot1Q port

curl -X
POST "https://api.equinix.com/ecx/v3/l2/connections"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
-d '{
"primaryName": "JohnDoe_Dot1Q_To_Dot1Q",
"profileUUID": "7a73af1a-3d74-47ac-b778-6bf455d1174e",
"speed": 50,
"speedUnit": "MB",
"notifications": [
"JohnDoe@example.com"
],
"purchaseOrderNumber": "1234567890",
"authorizationKey": "xxxxxxxx",
"primaryPortUUID": "4f891d3b-973e-73e0-bae0-30ac1885197a",
"primaryVlanSTag": "873",
"secondaryName": "JohnDoe_Dot1Q_To_Dot1Q_2",
"secondaryVlanSTag": "873",
"secondaryPortUUID": "7g831d3b-9740-7420-bae0-30ac1885127a",
"sellerMetroCode": "SV"
}

Redundant Connection from a Dot1Q port to a service profile with a QinQ port

curl -X
POST "https://api.equinix.com/ecx/v3/l2/connections"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
-d '{
"primaryName": "JohnDoe_Dot1Q_To_QinQ",
"profileUUID": "31b7263f-7e6a-42d0-859e-80a7fd3b9609",
"speed": 50,
"speedUnit": "MB",
"notifications": [
"JohnDoe@example.com"
],
"purchaseOrderNumber": "1234567890",
"authorizationKey": "xxxxxxxx",
"primaryPortUUID": "7f891d3b-973e-73e0-bae0-30ac1885197a",
"primaryVlanSTag": "335",
"secondaryName": "JohnDoe_Dot1Q_To_QinQ_2",
"secondaryVlanSTag": "335",
"secondaryPortUUID": "7f891d3b-9740-7400-bae0-30ac1885197a",
"sellerRegion": "us-sv",
"sellerMetroCode": "SV",
"primaryZSideVlanCTag": "421",
"secondaryZSideVlanCTag": "521"
}

Redundant Connection from a QinQ port to a service profile with a Dot1Q port

curl -X
POST "https://api.equinix.com/ecx/v3/l2/connections"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
-d '{
"primaryName": "JohnDoe_QinQ_To_Dot1Q",
"profileUUID": "2a73af1a-3c74-47ac-b778-6bf455d1174e",
"speed": 50,
"speedUnit": "MB",
"notifications": [
"JohnDoe@example.com"
],
"purchaseOrderNumber": "1234567890",
"authorizationKey": "xxxxxxxx",
"primaryPortUUID": "6f891d3b-972d-73d0-bae3-30ac1995197a",
"primaryVlanSTag": "771",
"primaryVlanCTag": "117",
"secondaryName": "JohnDoe_QinQ_To_Dot1Q2",
"secondaryPortUUID": "7f892d5b-993f-73f0-bae0-32ad1889197a",
"secondaryVlanSTag": "881",
"secondaryVlanCTag": "118",
"sellerMetroCode": "SV"
}

Redundant Connection from a QinQ port to a service profile with a QinQ port

curl -X
POST "https://api.equinix.com/ecx/v3/l2/connections"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
-d '{
{
"primaryName": "JohnDoe_QinQ_To_QinQ",
"profileUUID": "32b7273f-7e7a-43d0-859e-81a7fd3b9609",
"speed": 50,
"speedUnit": "MB",
"notifications": [
"JohnDoe@example.com"
],
"purchaseOrderNumber": "1234567890",
"authorizationKey": "xxxxxxxx",
"primaryPortUUID": "7f891d3b-96d3-6d30-bae0-30ac1885197a",
"primaryVlanSTag": "499",
"secondaryName": "JohnDoe_QinQ_To_QinQ2",
"secondaryVlanSTag": "2456",
"secondaryPortUUID": "7f21d3b-93d3-6d30-cae0-33ac2895297a",
"sellerRegion": "us-sv",
"sellerMetroCode": "SE"
}

The description of the body parameters is as follows:

Body Parameter NameMandatoryTypeExample valuesApplicable valuesDescription
primaryNameYesstringJohnDoe_Dot1Q_To_Dot1QUser-defined name of the primary connection.

Supply an alpha-numeric string, which can include hyphens and underscores ('-' & '_') as special characters (no other special characters are allowed).

Max Length: 24 characters
primaryPortUUIDYesstring7f891d3b-973d-73d0-bae0-30ac1885197aUnique Equinix-assigned ID of the buyer's primary port from where the connection originates.
primaryVlanSTagYesinteger640S-Tag/Outer-Tag of the primary connection.

Range: 2 - 4094.
primaryVlanCTagYesstring641C-Tag/Inner-Tag of the primary connection.

Range: 2 - 4094
profileUUIDYesstring84c6616c-573a-447d-a478-9fab8fff284dUnique Equinix-assigned ID of the provider's service profile.
speedYesinteger50Speed/bandwidth to be allocated to the connection.
speedUnitYesstringMBUnit of the speed/bandwidth to be allocated to the connection.

Values: Either MB or GB.
notificationsYesarrayjohnDoe@example.comA list of email addresses that are notified when there are any updates on this connection.

Example:
["user@example.com", "user2@example.com"]
purchaseOrderNumberNostring123456789This optional field links the purchase order to the connection on Equinix. This link is reflected on the invoice.
authorizationKeyNostringAn optional field, the value of which is based on the service profile to which you want to connect.
sellerMetroCodeYesstringDCThe metro code that denotes the connection’s destination (Z side). 

If sellerMetroCode is empty, the value defaults to the metro code of the port.
sellerRegionNostringus-svAn optional field that needs to be passed if requested by the service profile. It indicates the region in which the seller port resides.
secondaryNameYesstringJohnDoe_QinQ_To_QinQ2Name of the secondary connection.

Supply an alpha-numeric string, which can include hyphens and underscores ('-' & '_') as special characters (no other special characters are allowed).

Max Length: 24 characters
secondaryPortUUIDYesstring7f891d3b-973d-73d0-bae0-30ac1885197aUnique ID of the buyer's secondary port from which the secondary connection would originate.
secondaryVlanSTagYesstring442S-Tag/Outer-Tag of the secondary connection.

Range: 2 - 4094
secondaryVlanCTagYesstring542C-Tag/Inner-Tag of the secondary connection.

Range: 2 - 4094
primaryZSideVlanCTagYesstring558C-Tag/Inner-Tag of the primary connection on the Z side. This is only applicable for "Manual" peering. (i.e. namedTag  = "Manual").

Range: 2 - 4094
secondaryZSideVlanCTagYesstring542C-Tag/Inner-Tag of the secondary connection on the Z side. This is only applicable for "Manual" peering. (i.e. namedTag  = "Manual").

Range: 2 - 4094
 

The following table indicates the tagging criteria to be followed when a buyer/customer (A-side) wants to connect to a seller/service profile (Z-side). Ensure to add the correct S tag or C tag based on your port type.

Port Type (A-side)Vlan S-tag requiredVlan C-tag requiredZSide Vlan C-tag requiredPort Type ( Z-side)
Dot1Q portYesNoYesQinQ port
Dot1Q portYesNoNoDot1Q port
QinQ portYesYesNoDot1Q port
QinQ portYesNoNoQinQ port
 

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

{
"message": "Connection Saved Successfully",
"primaryConnectionId": "9999a8-0e07-44d0-944c-88a25d8d28f7"
"secondaryConnectionId": "888d4c1-5444-4511-b2e4-51f06f062974"
}

The description of the response payload is as follows:

Field NameTypeExample valuesDescription
messagestringConnection Saved SuccessfullyIndicates the status of the API call.
primaryConnectionIDstring9999a8-0e07-44d0-944c-88a25d8d28f7Indicates the primary connection ID.
secondaryConnectionIdstring888d4c1-5444-4511-b2e4-51f06f062974Indicates the secondary connection ID.
 

Once the POST Connections API is successfully called, you may check the status of the connection using the API GET Connections{uuid}

When a connection is created, the connection transitions through various states within the Equinix infrastructure. These states can be monitored using the response attributes of the API GET Connections{uuid}. The "status" attribute indicates the connection status in Equinix and the "providerStatus" indicates the status at the enterprise's end.

Equinix States under /ecx/v3/l2/connections/{connId}
"status" attribute values"providerStatus" attribute valuesDescription
PENDING_APPROVALNOT_AVAILABLEConnection request has been sent to seller and is awaiting approval.
 

The seller must approve or reject the connection at this point or the "status" and "providerStatus" would remain unchanged.

PROVISIONING
or
REJECTED
NOT_AVAILABLEConnection establishment in progress.
or
The seller has rejected the connection.
PROVISIONEDAVAILABLEConnection established.

Equinix_States_For_Enterprise

When an end user deletes a connection using the API DELETE Connections{uuid} the connection transitions through the following states within the Equinix infrastructure.

Equinix States under /ecx/v3/l2/connections/{connId}
"status" attribute values"providerStatus" attribute valuesDescription
PENDING_DELETEAVAILABLEDeletion request has been sent to seller and is awaiting approval.
 

The seller must approve this delete request to disconnect the connection and to stop billing.  Keep in mind that should the seller fail to approve the deletion request, the connection would still be considered active and charged accordingly.

DEPROVISIONINGAVAILABLEConnection disbandment in progress.
or
The seller has rejected the request.
DEPROVISIONEDNOT_AVAILABLEConnection deleted.

Layer 2 Nonredundant Enterprise Connection

Establish_Enterprise_nonredundant_diagram

Step 1: Authenticate

Submit your user credentials, Client ID, and Client Secret for OAuth2 authentication.

 

Refer to Generating Client ID and Client Secret under the Getting Access Token section for instructions on how to create client ID and client secret and refer to Requesting Access and Refresh tokens section for instructions on how to call Oauth API to validate and authenticate your credentials.

 

If you are unaware of your user credentials for Equinix Fabric, contact your local Equinix Service Desk.

Step 2: Get Attribute Information

2a) Get Port
Retrieve your allocated Equinix Fabric port information.

 

Refer to GET Port under the API Reference section for instructions on how to retrieve port details. You may skip this step if you already know your port information.

2b) Get Metros
Find all metros where Equinix Fabric is available to check if a connection can be established between the port selected earlier and your desired destination metro.

 

Use this API to identify the metro codes of your source (A-side) and destination (Z-side) for your connection.

 

Refer to GET Metros under the API Reference section for instructions on how to get the metro code. You may skip this step if you already know this information.

2c) Get Service Profile
Identify all service profiles available for a given metro or metros, and select the profile to which you wish to connect.

 

If you intend to create a connection to a private seller service profile, ensure that you have been authorized by the respective seller profile to access and retrieve the service profile details.
In order to do this, the seller must whitelist your email ID by adding the email address to the private profile in the Equinix Fabric portal.
For more information please refer to the Equinix Fabric documentation at https://docs.equinix.com/en-us/Content/Interconnection/ECXF/landing-pages/ECXF-landing-main.htm

 

Refer to GET Services under the API Reference section for instructions on how to retrieve service profiles in Equinix Fabric. You may skip this step if you already know the service profile details.

Step 3: Create Connection

 POST /ecx/v3/l2/connections
MethodPOST
URL or Endpoint/ecx/v3/l2/connections
HeadersAuthorization, Content-Type
Query ParametersNot applicable
Body ParametersprimaryName, primaryPortUUID, primaryVlanSTag, primaryVlanCTag, profileUUID, authorizationKey, speed, speedUnit, notifications [...], purchaseOrderNumber, sellerMetroCode, primaryZSideVlanCTag

The POST connections API creates a layer 2 connection between your port and the destination service profile. The authorization token and content-type are the only headers that are passed to this API and a response is received based on the values passed.

 

If you are unaware of how to obtain an authorization token, refer to Requesting Access and Refresh tokens section under the Getting Access Token.

The following screenshots show sample curl requests to create layer 2 non-redundant enterprise connection using Dot1q and QinQ ports and a sample JSON response for this API.

 

Should you want to estimate the price of this connection, use the API GET Prices.


Non-Redundant Connection from a Dot1q port to a service profile with a Dot1q port

curl -X
POST "https://api.equinix.com/ecx/v3/l2/connections"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
-d '{
"primaryName": "JohnDoe_Dot1Q_To_Dot1Q",
"profileUUID": "8e79b5e4-7c5b-4201-9334-fd89b37bec47",
"speed": 50,
"speedUnit": "MB",
"notifications": [
"JohnDoe@example.com"
],
"purchaseOrderNumber": "1234567890",
"authorizationKey": "xxxxxxxx",
"primaryPortUUID": "4f891d3b-973e-73e0-bae0-30ac1885197a",
"primaryVlanSTag": "672",
"sellerMetroCode": "DA"
}

Non-Redundant Connection from a Dot1q port to a service profile with a QinQ port

curl -X
POST "https://api.equinix.com/ecx/v3/l2/connections"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
-d '{
"primaryName": "JohnDoe_Dot1Q_To_QinQ",
"profileUUID": "31b7263f-7e6a-42d0-859e-80a7fd3b9609",
"speed": 50,
"speedUnit": "MB",
"notifications": [
"JohnDoe@example.com"
],
"purchaseOrderNumber": "1234567890",
"authorizationKey": "xxxxxxxx",
"primaryPortUUID": "7f891d3b-973e-73e0-bae0-30ac1885197a",
"primaryVlanSTag": "335",
"sellerMetroCode": "SV",
"primaryZSideVlanCTag": "211",
}

Non-Redundant Connection from a QinQ port to a service profile with a Dot1q port

curl -X
POST "https://api.equinix.com/ecx/v3/l2/connections"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
-d '{
"primaryName": "JohnDoe_QinQ_To_Dot1Q",
"profileUUID": "2a73af1a-3c74-47ac-b778-6bf455d1174e",
"speed": 50,
"speedUnit": "MB",
"notifications": [
"JohnDoe@example.com"
],
"purchaseOrderNumber": "1234567890",
"authorizationKey": "xxxxxxxx",
"primaryPortUUID": "6f891d3b-972d-73d0-bae3-30ac1995197a",
"primaryVlanSTag": "470",
"primaryVlanCTag": "470",
"sellerMetroCode": "DA"
}

Non-Redundant Connection from a QinQ port to a service profile with a QinQ port

curl -X
POST "https://api.equinix.com/ecx/v3/l2/connections"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
-d '{
{
"primaryName": "JohnDoe_QinQ_To_QinQ",
"profileUUID": "32b7273f-7e7a-43d0-859e-81a7fd3b9609",
"speed": 50,
"speedUnit": "MB",
"notifications": [
"JohnDoe@example.com"
],
"purchaseOrderNumber": "1234567890",
"authorizationKey": "xxxxxxxx",
"primaryPortUUID": "7f891d3b-96d3-6d30-bae0-30ac1885197a",
"primaryVlanSTag": "470",
"sellerMetroCode": "DA"
}

The description of the body parameters is as follows:

Body Parameter NameMandatoryTypeExample valuesApplicable valuesDescription
primaryNameYesstringJohnDoe_AWS_QinQUser-defined name of the primary connection.

Supply an alpha-numeric string, which can include hyphens and underscores ('-' & '_') as special characters (no other special characters are allowed).

Max Length: 24 characters
primaryPortUUIDYesstring99991d3b-9750-7500-bae0-30ac1885197aUUnique Equinix-assigned ID of the buyer's primary port from where the connection originates.
primaryVlanSTagYesinteger774S-Tag/Outer-Tag of the primary connection.

Range: 2 - 4094
primaryVlanCTagYesstring775C-Tag/Inner-Tag of the primary connection.

Range: 2 - 4094
profileUUIDYesstring999552b-39b0-49ea-a232-005088dc9c86Unique Equinix-assigned ID of the provider's service profile.
speedYesinteger50Speed/bandwidth to be allocated to the connection.
speedUnitYesstringMBUnit of the speed/bandwidth to be allocated to the connection.

Values: Either MB or GB.
notificationsYesarray stringJohnDoe@example.comA list of email addresses that are notified when there are any updates on this connection.

Example:
["user@example.com", "user2@example.com"]
purchaseOrderNumberNostring0987654321This optional field links the purchase order to the connection on Equinix. This link is reflected on the invoice.
authorizationKeyNostringAn optional field based on the service profile to which you want to connect.
sellerMetroCodeYesstringSVThe metro code that denotes the connection’s destination (Z side). 

If sellerMetroCode is empty, the value defaults to the metro code of the port.
 

The following table indicates the tagging criteria to be followed when a buyer/customer (A-side) wants to connect to a seller/service profile (Z-side). Ensure to add the correct S tag or C tag based on your port type.

Port Type (A-side)Vlan S-tag requiredValan C-tag requiredZSide Vlan C-tag requiredPort Type ( Z-side)
Dot1Q portYesNoYesQinQ port
Dot1Q portYesNoNoDot1Q port
QinQ portYesYesNoDot1Q port
QinQ portYesNoNoQinQ port
 

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

{
"message": "Connection Saved Successfully",
"primaryConnectionId": "9999a8-0e07-44d0-944c-88a25d8d28f7"
}

The description of the response payload is as follows:

Field NameTypeExample valuesDescription
messagestringConnection Saved SuccessfullyIndicates the status of the API call.
primaryConnectionIDstring9999a8-0e07-44d0-944c-88a25d8d28f7Indicates the primary connection ID.
 

Once the POST Connections API is successfully called, you may check the status of the connection using the API GET Connections{uuid}
Should you want to upgrade the speed/bandwidth of this connection, you can use the API PATCH Connections{uuid}.

When a connection is created, the connection transitions through various states within the Equinix infrastructure. These states can be monitored using the response attributes of the API GET Connections{uuid}. The "status" attribute indicates the connection status in Equinix and the "providerStatus" indicates the status at the enterprise's end.

Equinix States under /ecx/v3/l2/connections/{connId}
"status" attribute values"providerStatus" attribute valuesDescription
PENDING_APPROVALNOT_AVAILABLEConnection request has been sent to seller and is awaiting approval.
 

The seller must approve or reject the connection at this point or the "status" and "providerStatus" would remain unchanged.

PROVISIONING
or
REJECTED
NOT_AVAILABLEConnection establishment in progress.
or
The seller has rejected the connection.
PROVISIONEDAVAILABLEConnection established.

Equinix_States_For_Enterprise

When an end user deletes a connection using the API DELETE Connections{uuid} the connection transitions through the following states within the Equinix infrastructure.

Equinix States under /ecx/v3/l2/connections/{connId}
"status" attribute values"providerStatus" attribute valuesDescription
PENDING_DELETEAVAILABLEDeletion request has been sent to seller and is awaiting approval.
 

The seller must approve this delete request to disconnect the connection and to stop billing.  Keep in mind that should the seller fail to approve the deletion request, the connection would still be considered active and charged accordingly.

DEPROVISIONINGAVAILABLEConnection disbandment in progress.
or
The seller has rejected the request.
DEPROVISIONEDNOT_AVAILABLEConnection deleted.