Read sensors

GET /networks/{network_identifier}/sensors

Returns a list of all sensors in the given network.

Path parameters

  • network_identifier string Required

    Format should match the following pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$.

Responses

  • 200

    OK

    Hide response attributes Show response attributes array[object]
    • sensor_identifier string

      Format should match the following pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$.

    • sensor_name string

      The regex means: lowercase letters and numbers, separated by dashes, with no leading, trailing, or double dashes.

      Maximum length is 64. Format should match the following pattern: ^[a-z0-9](-?[a-z0-9])*$.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

GET /networks/{network_identifier}/sensors
curl \
 -X GET https://example.com/networks/575a7328-4e2e-4b88-afcc-e0b5ed3920cc/sensors \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "sensor_identifier": "575a7328-4e2e-4b88-afcc-e0b5ed3920cc",
    "sensor_name": "happy-un1c0rn"
  }
]
Response examples (200)
[
  {
    "sensor_identifier": "575a7328-4e2e-4b88-afcc-e0b5ed3920cc",
    "sensor_name": "happy-un1c0rn"
  }
]