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.


Environment v1 APIs

GET Environment For a Level

 GET /environment/v1/current
MethodGET
URL or End Point/environment/v1/current
HeadersAuthorization, Content-Type
Query ParametersaccountNo, ibx, levelType, levelValue
BodyNot applicable

Given an account number, IBX code, get current environment data for a single level value. returns environment info ( temperature and humidity ) for input IBX, zone, cage, sensor.

 

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 assets details for the account number 1 and a JSON response containing the result.

curl -X 
GET 'https://api.equinix.com/environment/v1/current?accountNo=1&ibx=CH1&levelType=IBX&levelValue=CH1'
-H 'Authorization: Bearer vtIPc5PfMDw1mML4WzHEhb10e6V9'
-H 'Content-Type: application/json'

The description of the query parameters is as follows:

Query Parameter NameMandatoryTypeExample valuesApplicable valuesDescription
accountNoYstring1234Customer account number
ibxYstringAB2Name of the IBX for which data is being requested.
levelTypeYstringIBXIBX, ZONE, CAGE, SENSOREnum value indicates the level type for which to fetch the list.
levelValueYlevelValueAB2Unique identifier for the type is ibxCode, zoneUsID, cageUsID, sensorid for levelType ibx, zone, cage, sensor respectively.
{
"payLoad": {
"ibx": "CH1",
"accountNo": "1",
"zone": "ALL",
"cage": "ALL",
"cabinet": "ALL",
"sensor": "ALL",
"temperature": "21.0",
"humidity": "35.78",
"timestamp": "1552275932446",
"temperatureUom": "°C",
"humidityUom": "%"
},
"status": {
"type": "INFO",
"statuscode": "1000",
"msg": "OK"
}
}

The description of the response payload is as follows:

Field nameTypeExampleDescription
ibxstringCH1Name of the IBX.
accountNumbernumber1234Customer account number.
zonestringCH1:1:05:ColoArea:2Zone unique space identifier.
cagestringCH1:05:000550Cage unique space identifier.
cabinetstringCH1:05:000550:0105Cabinet unique space identifier.
sensorstringCH1.Colo.CH1_05_000550_0105Sensor unique identifier.
temperaturestring20.0Current temperature.
humiditystring60.0Current humidity.
timestampstring1506665106579Epoch timestamp when the current reading was read.
temperatureUomstring°CUnit of measure for temperature values.
humidityUomstring%Unit of measure for humidity values.
 

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

GET Environment For a Level Type

 GET /environment/v1/listCurrent
MethodGET
URL or End Point/environment/v1/listCurrent
HeadersAuthorization, Content-Type
Query ParametersaccountNo, ibx, levelType
BodyNot applicable

Given an account number, IBX code, get current environment data for all level values for a level type and returns environment info ( temperature and humidity ) for input ibx, zone, cage, sensor.

 

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 assets details for account number 1 and a JSON response containing the result.

curl -X 
GET 'https://api.equinix.com/environment/v1/listCurrent?accountNo=1&ibx=CH1&levelType=IBX'
-H 'Authorization: Bearer vtIPc5PfMDw1mML4WzHEhb10e6V9'
-H 'Content-Type: application/json'

The description of the query parameters is as follows:

Query Parameter NameMandatoryTypeExample valuesApplicable valuesDescription
accountNoYstring1234Customer account number
ibxYstringAB2Name of the IBX for which data is being requested.
levelTypeYstringIBXIBX, ZONE, CAGE, SENSOREnum value indicates the level type for which to fetch the list.
{
"payLoad": {
"totalCount": 2,
"data": [
{
"ibx": "CH1",
"accountNo": "1",
"zone": "CH1:1:05:ColoArea:2",
"cage": "ALL",
"cabinet": "ALL",
"sensor": "ALL",
"temperature": "21.1",
"humidity": "35.50",
"timestamp": "1552277740599",
"temperatureUom": "°C",
"humidityUom": "%"
},
{
"ibx": "CH1",
"accountNo": "1",
"zone": "CH1:1:05:ColoArea:3",
"cage": "ALL",
"cabinet": "ALL",
"sensor": "ALL",
"temperature": "20.7",
"humidity": "28.80",
"timestamp": "1552277787927",
"temperatureUom": "°C",
"humidityUom": "%"
}
]
},
"status": {
"type": "INFO",
"statuscode": "1000",
"msg": "OK"
}
}

The description of the response payload is as follows:

Field nameTypeExampleDescription
totalCountinteger2The total number of data values.
dataarray listThe array of all level values.
ibxstringCH1Name of the IBX.
accountNumbernumber1234Customer account number.
zonestringCH1:1:05:ColoArea:2Zone unique space identifier.
cagestringCH1:05:000550Cage unique space identifier.
cabinetstringCH1:05:000550:0105Cabinet unique space identifier.
sensorstringCH1.Colo.CH1_05_000550_0105Sensor unique identifier.
temperaturestring20.0Current temperature.
humiditystring60.0Current humidity.
timestampstring1506665106579Epoch timestamp when the current reading was read.
temperatureUomstring°CUnit of measure for temperature values.
humidityUomstring%Unit of measure for humidity values.
 

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

 GET /environment/v1/trending
MethodGET
URL or End Point/environment/v1/trending
HeadersAuthorization, Content-Type
Query ParametersaccountNo, ibx, levelType
BodyNot applicable

Given an account number, IBX code, get current environment trending data for a given level value.

 

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 assets details for the account number 1 and a JSON response containing the result.

curl -X 
GET 'https://api.equinix.com/environment/v1/trending?accountNo=1&ibx=CH1&levelType=IBX&levelValue=CH1&dataPoint=humidity&fromDate=1460429200000&toDate=1460908800000&interval=1d'
-H 'Authorization: Bearer vtIPc5PfMDw1mML4WzHEhb10e6V9'
-H 'Content-Type: application/json'

The description of the query parameters is as follows:

Query Parameter NameMandatoryTypeExample valuesApplicable valuesDescription
accountNoYstring1234Customer account number
ibxYstringAB2Name of the IBX for which data is being requested.
levelTypeYstringIBXIBX, ZONE, CAGE, SENSOREnum value indicates the level type for which to fetch the list.
levelValueYstringAB2Level Value is ibxCode, zone, cage, sensorid for levelType ibx, zone, cage, sensor respectively.
dataPointYstringhumiditytemperature, humiditySpecifies the desired data point.
fromDateYlong1460429200000
toDateYlong1460908800000
intervalYstring1dreading, 1h, 1dSpecifies the interval at which the data is collected.
{
"payLoad": {
"accountNo": "323253",
"ibx": "WA1",
"interval": "1d",
"uom": "%",
"dataPoint": "humidity",
"series": [
{
"datetime": "1697217492000",
"value": "47.53",
"modifiers": [
"recorded"
]
},
{
"datetime": "1697217535000",
"value": "48.72",
"modifiers": [
"cov"
]
},
{
"datetime": "1697217644000",
"value": "49.70",
"modifiers": [
"cov"
]
}
]
}
}

The description of the response payload is as follows:

Field nameTypeExampleApplicable valuesDescription
payLoadobjectEnvironment trending information dataset.
accountNointeger1234Customer account number.
ibxstringCH1IBX data center identifier.
intervalstring1dData recording time interval.
uomstring%Unit of measure.
dataPointstringhumidityEnvironmental data type.
seriesarray of objectsReadings taken from the selected data point.
datetimestring1697217492000Data point reading timestamp (an epoch date).
valuestring60.0Data point measured value.
modifiersArray of stringsrecordedcov, recorded

Key modifiers:

  • Recorded modifier - specifies the value collected or stamped at the specified trend interval.
  • The COV (Change of Value) modifier - indicates the change of value recorded within the trend interval.

Example:

  • Previous Timestamp (TS1): 1697217492000
  • Current Timestamp (TS2): 1697217535000
  • Previous Recorded Value: 47.53
  • Current Recorded Value: 48.72
  • COV (Change of Value): +1.19 (Increase from 47.53 at TS1 to 48.72 at TS2)
 

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