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.


Subscriptions v1 (Deprecated)

GET Subscriptions

 GET /feedsubscription/v1/subscribe
MethodGET
URL or End Point/feedsubscription/v1/subscribe
HeadersAuthorization, Content-Type
Query ParametersNot applicable
BodyNot applicable

This endpoint allows users to view the near real-time stream subscription details for subscriptions tied to an organization.

 

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

The following screenshots show a sample curl request to obtain the subscriptions details for an organization and a JSON response containing the result.

curl -X 
GET "https://api.equinix.com/feedsubscription/v1/subscribe"
-H "content-type: application/json"
-H "authorization: Bearer asxQMSbBwcNzI2fCCNwSwTh3phV2"
{
"alarm": [
{
"accountNo": "135888",
"assetClassification": [
"ELECTRICAL"
],
"conditionName": [
"ALARM"
],
"ibx": "DE1"
}
],
"alert": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"asset": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"config": {
"method": "PULL",
"provider": "GOOGLE",
"subscription": "string"
},
"environment": [
{
"accountNo": "135888",
"granularity": [
"IBX"
],
"ibx": "DE1"
}
],
"power": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"status": "OK",
"subscriptionId": "606349eca6171829c70d8777"
}

The description of the response payload is as follows:

Field nameTypeExampleDescription
powerarraypower[...]Power event subscription details
accountNostring135888Customer account number
assetClassificationarray["ELECTRICAL", "ENVIRONMENTAL", "MECHANICAL"]Classification of assets
conditionNamearray["ALARM", "HIGH", "HIGH_HIGH", "LOW", "LOW_LOW", "WARNING"]Alarm condition of the asset
ibxstringDE1IBX code
assetarrayasset[...]Asset subscription request
alarmarrayalarm[...]Alarm event subscription details
alertarrayalert[...]Alert event subscription details
environmentarrayenvironment[...]Environment event subscription details
granularityarray["IBX", "ZONE", "CAGE"]Granularity level at which data is to be streamed, if specified
subscriptionIdstring606349eca6171829c70d8777Unique identifier for the subscription
configobjectconfig{...}Configuration to specify near real-time stream consumption parameters
providerstringGOOGLEProvider for the subscription
methodstringPULLSubscription method
subscriptionstringSubscription URL used for pull subscriptions based on provider
statusstringOK, PARTIAL_SUCCESS, ERRORResponse status
 

If you get “Access Denied” error, contact your local Equinix Service Desk for Equinix Smart View portal access.

GET Subscriptions By Id

 GET /feedsubscription/v1/subscribe/{subscriptionId}
MethodGET
URL or End Point/feedsubscription/v1/subscribe/{subscriptionId}
HeadersAuthorization, Content-Type
Query ParametersNot applicable
Path ParameterssubscriptionId
BodyNot applicable

This endpoint allows users to view the near real-time stream subscription details of a specific subscription for an organization.

 

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

The following screenshots show a sample curl request to get the details of an existing subscription for an organization and a JSON response containing the result.

curl -X 
GET "https://api.equinix.com/feedsubscription/v1/subscribe/606349eca6171829c70d8777"
-H "content-type: application/json"
-H "authorization: Bearer asxQMSbBwcNzI2fCCNwSwTh3phV2"
{
"alarm": [
{
"accountNo": "135888",
"assetClassification": [
"ELECTRICAL"
],
"conditionName": [
"ALARM"
],
"ibx": "DE1"
}
],
"alert": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"asset": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"config": {
"method": "PULL",
"provider": "GOOGLE",
"subscription": "string"
},
"environment": [
{
"accountNo": "135888",
"granularity": [
"IBX"
],
"ibx": "DE1"
}
],
"power": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"status": "OK",
"subscriptionId": "606349eca6171829c70d8777"
}

The description of the response payload is as follows:

Field nameTypeExampleDescription
powerarraypower[...]Power event subscription details
accountNostring135888Customer account number
assetClassificationarray["ELECTRICAL", "ENVIRONMENTAL", "MECHANICAL"]Classification of assets
conditionNamearray["ALARM", "HIGH", "HIGH_HIGH", "LOW", "LOW_LOW", "WARNING"]Alarm condition of the asset
ibxstringDE1IBX code
assetarrayasset[...]Asset subscription request
alarmarrayalarm[...]Alarm event subscription details
alertarrayalert[...]Alert event subscription details
environmentarrayenvironment[...]Environment event subscription details
granularityarray["IBX", "ZONE", "CAGE"]Granularity level at which data is to be streamed, if specified
subscriptionIdstring606349eca6171829c70d8777Unique identifier for the subscription
configobjectconfig{...}Configuration to specify near real-time stream consumption parameters
providerstringGOOGLEProvider for the subscription
methodstringPULLSubscription method
subscriptionstringSubscription URL used for pull subscriptions based on provider
statusstringOK, PARTIAL_SUCCESS, ERRORResponse status
 

If you get “Access Denied” error, contact your local Equinix Service Desk for Equinix Smart View portal access.

PUT Subscriptions

 PUT /feedsubscription/v1/subscribe/{subscriptionId}
MethodPUT
URL or End Point/feedsubscription/v1/subscribe/{subscriptionId}
HeadersAuthorization, Content-Type
Query ParametersNot applicable
Path ParameterssubscriptionId
BodyNot applicable

This endpoint allows users to update the near real-time feed of an existing subscription to add or remove events.

 

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

The following screenshots show a sample curl request to update an existing subscription for the user and a JSON response containing the result.

curl -X 
PUT https://api.equinix.com/feedsubscription/v1/subscribe/606349eca6171829c70d8777 
-H 'content-type: application/json' 
-H 'authorization: Bearer ea28LIRkdIEjIDpIHo9B40seYIWs' 
-d '{
  "alarm": [
    {
      "accountNo": "135888",
      "assetClassification": [
        "ELECTRICAL"
      ],
      "conditionName": [
        "ALARM"
      ],
      "ibx": "DE1"
    }
  ],
  "alert": [
    {
      "accountNo": "135888",
      "ibx": "DE1"
    }
  ],
  "asset": [
    {
      "accountNo": "135888",
      "ibx": "DE1"
    }
  ],
  "config": {
    "method": "PULL",
    "provider": "GOOGLE",
    "subscription": "string"
  },
  "environment": [
    {
      "accountNo": "135888",
      "granularity": [
        "IBX"
      ],
      "ibx": "DE1"
    }
  ],
  "power": [
    {
      "accountNo": "135888",
      "ibx": "DE1"
    }
  ]
}'         

The description of the request payload is as follows:

Body parameter nameMandatoryTypeExampleDescription
powerNarraypower[...]Power subscription request
accountNoYstring135888Customer account number
assetClassificationNarray["ELECTRICAL", "ENVIRONMENTAL", "MECHANICAL"]Classification of assets
conditionNameNarray["ALARM", "HIGH", "HIGH_HIGH", "LOW", "LOW_LOW", "WARNING"]Alarm condition of the asset
ibxYstringDE1IBX code
assetNarrayasset[...]Asset subscription request
alarmNarrayalarm[...]Alarm subscription request
alertNarrayalert[...]Alert subscription request
environmentNarrayenvironment[...]Environment event subscription details
granularityNarray["IBX", "ZONE", "CAGE"]Granularity level at which data is to be streamed, if specified
configNobjectconfig{...}Configuration to specify near real-time stream consumption parameters
providerNstringGOOGLEProvider for the subscription
methodNstringPULLSubscription method
subscriptionNstringSubscription URL used for pull subscriptions based on provider
{
"alarm": [
{
"accountNo": "135888",
"assetClassification": [
"ELECTRICAL"
],
"conditionName": [
"ALARM"
],
"ibx": "DE1"
}
],
"alert": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"asset": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"config": {
"method": "PULL",
"provider": "GOOGLE",
"subscription": "string"
},
"environment": [
{
"accountNo": "135888",
"granularity": [
"IBX"
],
"ibx": "DE1"
}
],
"power": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"status": "OK",
"subscriptionId": "606349eca6171829c70d8777"
}

The description of the response payload is as follows:

Field nameTypeExampleDescription
powerarraypower[...]Power event subscription details
accountNostring135888Customer account number
assetClassificationarray["ELECTRICAL", "ENVIRONMENTAL", "MECHANICAL"]Classification of assets
conditionNamearray["ALARM", "HIGH", "HIGH_HIGH", "LOW", "LOW_LOW", "WARNING"]Alarm condition of the asset
ibxstringDE1IBX code
assetarrayasset[...]Asset subscription request
alarmarrayalarm[...]Alarm event subscription details
alertarrayalert[...]Alert event subscription details
environmentarrayenvironment[...]Environment event subscription details
granularityarray["IBX", "ZONE", "CAGE"]Granularity level at which data is to be streamed, if specified
subscriptionIdstring606349eca6171829c70d8777Unique identifier for the subscription
configobjectconfig{...}Configuration to specify near real-time stream consumption parameters
providerstringGOOGLEProvider for the subscription
methodstringPULLSubscription method
subscriptionstringSubscription URL used for pull subscriptions based on provider
statusstringOK, PARTIAL_SUCCESS, ERRORResponse status
 

If you get “Access Denied” error, contact your local Equinix Service Desk for Equinix Smart View portal access.

DELETE Subscriptions

 DELETE /feedsubscription/v1/subscribe/{subscriptionId}
MethodDELETE
URL or End Point/feedsubscription/v1/subscribe/{subscriptionId}
HeadersAuthorization, Content-Type
Query ParametersNot applicable
BodyNot applicable

The endpoint allows users to close and delete the near real-time stream of a subscription. The topic itself may not be closed, but events will no longer be published to the topic once a delete request is received.

 

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

The following screenshots show a sample curl request to delete a subscription for an organization and a JSON response containing the result.

curl -X 
DELETE "https://api.equinix.com/feedsubscription/v1/subscribe/606349eca6171829c70d8777"
-H "content-type: application/json"
-H "authorization: Bearer asxQMSbBwcNzI2fCCNwSwTh3phV2"
{
"alarm": [
{
"accountNo": "135888",
"assetClassification": [
"ELECTRICAL"
],
"conditionName": [
"ALARM"
],
"ibx": "DE1"
}
],
"alert": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"asset": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"config": {
"method": "PULL",
"provider": "GOOGLE",
"subscription": "string"
},
"environment": [
{
"accountNo": "135888",
"granularity": [
"IBX"
],
"ibx": "DE1"
}
],
"power": [
{
"accountNo": "135888",
"ibx": "DE1"
}
],
"status": "OK",
"subscriptionId": "606349eca6171829c70d8777"
}

The description of the response payload is as follows:

Field nameTypeExampleDescription
powerarraypower[...]Power event subscription details
accountNostring135888Customer account number
assetClassificationarray["ELECTRICAL", "ENVIRONMENTAL", "MECHANICAL"]Classification of assets
conditionNamearray["ALARM", "HIGH", "HIGH_HIGH", "LOW", "LOW_LOW", "WARNING"]Alarm condition of the asset
ibxstringDE1IBX code
assetarrayasset[...]Asset subscription request
alarmarrayalarm[...]Alarm event subscription details
alertarrayalert[...]Alert event subscription details
environmentarrayenvironment[...]Environment event subscription details
granularityarray["IBX", "ZONE", "CAGE"]Granularity level at which data is to be streamed, if specified
subscriptionIdstring606349eca6171829c70d8777Unique identifier for the subscription
configobjectconfig{...}Configuration to specify near real-time stream consumption parameters
providerstringGOOGLEProvider for the subscription
methodstringPULLSubscription method
subscriptionstringSubscription URL used for pull subscriptions based on provider
statusstringOK, PARTIAL_SUCCESS, ERRORResponse status
 

If you get “Access Denied” error, contact your local Equinix Service Desk for Equinix Smart View portal access.