Forum Discussion

API_User's avatar
API_User
Level 9
2 years ago

Is there a best practice to fetch all CIRCUIT,SENSOR data?

Hello, I have a question.


## Question.
Is there a best practice to get all CIRCUIT,SENSOR data?


## Background
We are developing and operating a monitoring system for current and temperature sensors in a Datacenter.
We would like to import data from Smartview into our monitoring system and are considering using the API.
We need data for each CIRCUIT and SENSOR, but if we use the following API, we can only get summary data for the specified unit.


=== e.g. Current (Power_v1) request

❯ curl --request GET \
--url 'https://api.equinix.com/power/v1/current?accountNo={accountNo}&ibx={ibx}&levelType=ibx&levelValue={ibx}' \
--header 'accept: application/json' \
--header 'authorization: Bearer {bearer}' \
--header 'content-type: application/json'


Next, we considered how to obtain a list of CIRCUIT,SENSOR from the HierarchyAPI and request one of each.
However, we found that the API limits the number of requests to 1,000 per day.
We have more than 1,000 CIRCUITs and SENSORs that we want to retrieve and cannot monitor with 1,000 requests/day.
ref: https://developer.equinix.com/forum/power-api-interval-queries

Is there a better way to get all CIRCUIT,SENSOR values using Smartview API?

Thank you.

4 Replies