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 Using Two Service Tokens

Establish a connection between your a-side and z-side service tokens.

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 Token Information

1. List available service tokens

Call the Get All Service Tokens to get all available service tokens.

Step 3: Create Connection

Use POST /fabric/v4/connections API request to create a connection.

 

A service token can be dispatched to a number of recipients and it's valid for a single use by any of them.

 POST /fabric/v4/connections
MethodPOST
Endpoint/fabric/v4/connections
HeadersAuthorization, Content-Type
Path ParametersNot applicable
Query ParametersNot applicable
Body Parameterstype, name, order, redundancy, bandwidth, aSide, zSide, notifications
 

Use the Retrieve Pricing API request to retrieve connection price estimate.


Sample curl request - connection from an a-side to a z-side service token

curl -X
POST 'https://api.equinix.com/fabric/v4/connections'
-H 'content-type: application/json'
-H 'authorization: Bearer qwErtY8zyW1abcdefGHI'
-d '{
"type": "EVPL_VC",
"name": "AST_TO_ZST_CONNECTION",
"order": {
"purchaseOrderNumber": "1-129105284100" },
"bandwidth": 100,
"redundancy": {
"priority": "PRIMARY" },
"aSide": {
"serviceToken": {
"uuid": "20d32a80-0d61-4333-bc03-707b591ae2f5" }
},
"zSide": {
"serviceToken": {
"uuid": "20d32a80-0d61-4333-bc03-707b591ae2f5" }
},
"notifications": [
{
"type": "ALL",
"emails": [
"test@equinix.com",
"test1@equinix.com" ]
}
]
}'

Body parameters

ParameterMandatoryTypeExample valuesApplicable valuesDescription
typeYesstringEVPL_VCEVPL_VCConnection type.

EVPL_VC - Ethernet virtual private line connection type used for tagged layer 2 connections.
nameYesstringConn-1Maximum: 24 characters
Allowed characters: alpha-numeric, hyphens ('-') and underscores ('_')
Connection name.
orderNoobject--Order details.
order.purchaseOrderNumberNostring1-129105284100-Subscriber's purchase order identifier.
bandwidthYesinteger1000
 

Use the Get Specified Service Token API to retrieve details on available connection speeds.

Connection bandwidth in Mbps.
aSideYesobject--Source port definition.
aSide.serviceTokenYesobject--Authorization token created by the provider (A-side) to create a connection.
serviceToken.uuidYesobject20d32a80-0d61-4333-bc03-707b591ae2f4-Service token identifier.
zSideYesobject--Destination port definition.
zSide.serviceTokenYesobject--Authorization token created by the provider (Z-side) to create a connection.
serviceToken.uuidYesobject20d32a80-0d61-4333-bc03-707b591ae2f4-Service token identifier.
notificationsyesarray[object]--Subscriber preferences for notification of changes in asset configuration or status.
notifications.typeyesstringALLALLNotification preferences for a specified asset, such as a service token, port, access point, or profile.
notifications.emailsyesarray[string]["john@equinix.com", "jenkins@equinix.com"]Minimum: 1
Maximum: 12
List of up to 12 recipients.
redundancyConditionalobject--Redundancy details. This object is not mandatory for primary connections. However, you must provide the redundancy details for secondary connections.
redundancy.groupConditionalstringm167f685-41b0-1b07-6de0-320a5c00abeu-Unique Id of the redundancy group. This is only required for secondary connections. If you are creating a secondary connection, enter the group of the PRIMARY. You can find the group of the primary connection by calling Get Specified Connection or by checking the "group" field in the response you receive when creating primary connection.
redundancy.priorityConditionalstringPRIMARYPRIMARY
SECONDARY
Whether the connection is PRIMARY or SECONDARY. Don't provide a redundancy group for a PRIMARY connection.
 

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


Sample response - aSide service token to zSide service token


{
"href": "http://api.equinix.com/fabric/v4/connections/b067f685-49b0-1a09-6fe0-360a5d00a",
"type": "EVPL_VC",
"uuid": "b067f685-49b0-1a09-6fe0-360a5d00a",
"name": "AST_TO_ZST_CONNECTION",
"state": "ACTIVE",
"operation": {
"providerStatus": "PROVISIONED",
"equinixStatus": "PROVISIONED" },
"notifications": [
{
"type": "ALL",
"emails": [
"test@equinix.com" ]
}
],
"account": {
"accountNumber": 201246,
"orgId": 92610,
"globalOrgId": "0017i000011X250AAC" },
"changeLog": {
"createdBy": "testuser",
"createdDateTime": "2022-05-16T07:50:49.749Z" },
"bandwidth": 100,
"redundancy": {
"group": "b067f685-49b0-1a09-6fe0-360a5d00afdg",
"priority": "PRIMARY" },
"isRemote": true,
"direction": "OUTGOING",
"aSide": {
"serviceToken": {
"href": "https://api.equinix.com/fabric/v4/serviceTokens/b067f685-49b0-1a09-6fe0-360a5d00afdg",
"uuid": "b067f685-49b0-1a09-6fe0-360a5d00afdg" },
"accessPoint": {
"location": {
"metroHref": "http://api.equinix.com/fabric/v4/metros/SV",
"metroCode": "SV" },
"port": {
"href": "http://api.equinix.com/fabric/v4/ports/b067f685-49b0-1a09-6fe0-360a5d00afdg",
"uuid": "b067f685-49b0-1a09-6fe0-360a5d00afdg" },
"linkProtocol": {
"type": "DOT1Q" }
}
},
"zSide": {
"serviceToken": {
"href": "https://api.equinix.com/fabric/v4/serviceTokens/b067f685-49b0-1a09-6fe0-360a5d00afdg",
"uuid": "b067f685-49b0-1a09-6fe0-360a5d00afdg" },
"accessPoint": {
"location": {
"metroHref": "http://api.equinix.com/fabric/v4/metros/SV",
"metroCode": "SV" },
"port": {
"href": "http://api.equinix.com/fabric/v4/ports/b067f685-49b0-1a09-6fe0-360a5d00afdg",
"uuid": "b067f685-49b0-1a09-6fe0-360a5d00afdg" },
"linkProtocol": {
"type": "DOT1Q" }
}
},
"order": {
"purchaseOrderNumber": "1122334",
"billingTier": "Up to 50 MB" }
}

Response payload body description

 

Response payload includes configuration parameters defined in the request body. The following table contains descriptions of additional information included in the response payload. For descriptions of the remaining fields, refer to the Body parameters section.

ParameterTypeExample valuesDescription
hrefstringhttps://api.equinix.com/fabric/v4/connections/3a58dd05-f46d-4b1d-a154-2e85c396ea62An absolute URL that returns the specified connection.
typestringEVPL_VCType of connection.
uuidstring3a58dd05-f46d-4b1d-a154-2e85c396ea62Equinix-assigned connection identifier.
namestringAST_TO_ZST_CONNECTIONName of the connection.
statestringPROVISIONINGStatus of the connection.
operationobject-Operation status.
operation.equinixStatusstringPROVISIONINGStatus of the connection on Equinix's end.
operation.providerStatusstringNOT_AVAILABLEStatus of the connection on provider's end.
notificationsarrayAn array that has notification details.
notifications.typestringALLType of notification.
notifications.emailsarraytest@equinix.com, test2@equinix.comThe list of emails to be notified.
accountobjectObject containing account details of the connection owner.
account.accountNumberinteger270235Account number of the connection owner.
account.orgIdinteger92287Org Id of the account.
account.globalOrgIdstring0016u0000033Z53AAGGlobal org Id of the account.
order.purchaseOrderNumberstring1122334Purchase order number.
order.billingTierstringUp to 1 GbpsBilling tier of the connection bandwidth.
bandwidthinteger1000Bandwidth of the connection in Mbps.
redundancyobjectObject containing redundancy details.
redundancy.groupstring7a58dd05-f46d-4b1d-a154-2e85c396ea63Unique Id of the redundancy group.
redundancy.prioritystringPRIMARYWhether the connection is PRIMARY or SECONDARY.
isRemotebooleantrueWhether the connection is remote. The connection is remote if the endpoints are in two different locations.
directionstringINTERNALDirection of the connection (from the requestor's point of view).
aSideobjectObject containing aSide details.
aSide.accessPointobjectObject containing aSide endpoint configuration.
locationobjectAn object that has the location details of the aSide connection.
location.regionstringAMERRegion.
location.metroNamestringAshburnMetro name.
location.metroCodestringDCMetro code.
portobjectAn object that has the aSide port details.
port.hrefstringhttps://api.equinix.com/ne/v1/devices/5a58dd05-f46d-4b1d-a154-2e85c396ea63
port.uuidstring5a58dd05-f46d-4b1d-a154-2e85c396ea63Unique Id of the port.
linkProtocolobjectAn object that has the link protocol.
linkProtocol.typestringDOT1QType of link protocol.
linkProtocol.vlanTaginteger10579Vlan tag.
aSide.serviceTokenobjectAn object that has the service token details.
serviceToken.hrefstringhttps://api.equinix.com/ne/v1/devices/5a58dd05-f46d-4b1d-a154-2e85c396ea63A URL that has the service token details.
serviceToken.uuidstring5a58dd05-f46d-4b1d-a154-2e85c396ea63Unique Id of the service token.
zSideobjectObject containing zSide details.
aSide.accessPointobjectObject containing aSide endpoint configuration.
locationobjectAn object that has the location details of the aSide connection.
location.regionstringAMERRegion.
location.metroNamestringAshburnMetro name.
location.metroCodestringDCMetro code.
portobjectAn object that has the aSide port details.
port.hrefstringhttps://api.equinix.com/ne/v1/devices/5a58dd05-f46d-4b1d-a154-2e85c396ea63
port.uuidstring5a58dd05-f46d-4b1d-a154-2e85c396ea63Unique Id of the port.
linkProtocolobjectAn object that has the link protocol.
linkProtocol.typestringDOT1QType of link protocol.
linkProtocol.vlanTaginteger10579Vlan tag.
zSide.serviceTokenobjectObject containing serviceToken details.
serviceToken.hrefstringhttps://api.equinix.com/ne/v1/devices/5a58dd05-f46d-4b1d-a154-2e85c396ea63A URL that has the service token details.
serviceToken.uuidstring5a58dd05-f46d-4b1d-a154-2e85c396ea63Unique Id of the service token.
 

Use the Get Specified Connection API request to monitor connection status.