Istorn
Istorn

Reputation: 596

Get all devices from IoT Azure Hub

I would like to obtain all devices into my Azure IoT Hub system (connected, not connected, it doesn't matter).

I've read the documentation about the system itself with no result but Get a list of devices from Azure IoT Hub has become obsolete.

Is there any kind of query which let retrieve all devices associated to my system?

Upvotes: 3

Views: 2761

Answers (1)

Roman Kiss
Roman Kiss

Reputation: 8265

You can use the REST API Service - Query Iot Hub

Payload:

{
  "query": "SELECT deviceId FROM devices"
}

Upvotes: 4

Related Questions