Home

Pull Long Term Logging Data

Use the Cloud API to pull stored data about PDU outlets, inlets, and bank power metrics and state.

PDUs require internet connection and basic setup before you can use the API for outlet control. Use this guide to get setup if you haven't already.

Utilize the following REST API endpoint to access historical PDU power/energy metrics, outlet states, and configurations.

Example Request

Requests have limits on number data points returned. Utilize query parameters since,before & after, or page to select a range of data points.

curl --request GET \
     --url 'https://api.synaccess.com/api/v1/inlet-logs?page=0&per_page=60&limit=1000' \
     --header 'Accept: application/json'

Example Response

[
  {
    "id": "17374353",
    "deviceId": "22698775",
    "energyAccumulation": 89.03,
    "currentRms": 4.2,
    "voltageRms": 202.4,
    "lineFrequency": 59.9,
    "powerFactor": 0.8,
    "activePower": 11,
    "apparentPower": 10,
    "timestamp": 128738127937,
    "deviceFirmware": "1.3.2"
  },
  {
    "id": "17374353",
    "deviceId": "22698775",
    "energyAccumulation": 89.03,
    "currentRms": 4.2,
    "voltageRms": 202.4,
    "lineFrequency": 59.9,
    "powerFactor": 0.8,
    "activePower": 11,
    "apparentPower": 10,
    "timestamp": 128738227937,
    "deviceFirmware": "1.3.2"
  },
  {
    "id": "17374353",
    "deviceId": "22698775",
    "energyAccumulation": 89.03,
    "currentRms": 4.2,
    "voltageRms": 202.4,
    "lineFrequency": 59.9,
    "powerFactor": 0.8,
    "activePower": 11,
    "apparentPower": 10,
    "timestamp": 128738327937,
    "deviceFirmware": "1.3.2"
  }
]