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...
  • API_User's avatar
    2 years ago
    Hi,
    please refer to the below API call and endpoint to fetch all circuit and sensor data through a single API call.
    Fetch all Circuit data:
    curl -X
    POST "https://api.equinix.com/power/v1/current
    -H "content-type: application/json"
    -H "authorization: Bearer "
    -d '{
    "accountNo": "",
    "ibx": "",
    "levelType": "circuit"
    }'

    Fetch all customer owned sensor data:
    curl -X
    GET 'https://api.equinix.com/environment/v1/listCurrent?accountNo=&ibx=&levelType=SENSOR'
    -H 'Authorization: Bearer
    -H 'Content-Type: application/json'

    Thanks