Azure IoT Central Documentation

Reference: IoT Device Management

Azure IoT Central - API Reference

This section provides detailed reference information for the Azure IoT Central APIs, enabling you to programmatically interact with your IoT solutions.

Overview

Azure IoT Central is a fully managed IoT application platform that enables you to easily connect, monitor, and manage your IoT devices. The REST APIs allow for deep integration and automation of your IoT Central applications.

Key API Categories

Application Management

Manage your IoT Central applications, including creation, deletion, and configuration.

Device Management

Interact with devices registered in your IoT Central application.

Data and Telemetry

Access telemetry data and property updates from your devices.

Jobs and Orchestration

Execute actions on devices or groups of devices.

  • /api/jobs: Create and manage jobs for device operations.

Rules and Analytics

Manage alerts and access analytical insights.

/api/applications

Provides endpoints for managing your IoT Central applications.

Endpoints:

Request Body (POST):

{
  "displayName": "My New IoT App",
  "subdomain": "mynewapp",
  "template": "basic_iot_app",
  "region": "eastus"
}

/api/devices

Enables management of devices within an IoT Central application.

Endpoints:

Request Body (POST):

{
  "displayName": "Smart Thermostat 001",
  "template": "dtmi:yourcompany:thermostat;1",
  "simulated": false
}

/api/telemetry

Query historical telemetry data sent by devices.

Endpoints:

Query Parameters:

Example Query:

GET /api/telemetry/query?deviceId=thermostat001&interfaceId=dtmi:yourcompany:thermostat;1&name=temperature&from=2023-01-01T00:00:00Z&to=2023-01-01T12:00:00Z

/api/jobs

Initiate and manage operations (jobs) to be performed on devices.

Endpoints:

Request Body (POST):

{
  "name": "Reboot Devices",
  "description": "Rebooting all devices in the 'HVAC' group",
  "target": {
    "type": "deviceGroup",
    "deviceGroupId": "hvac-group-id"
  },
  "action": {
    "type": "command",
    "command": {
      "interfaceId": "dtmi:yourcompany:devicecontrol;1",
      "name": "reboot"
    }
  }
}

For a comprehensive list of all available API endpoints and their detailed specifications, please refer to the official Azure IoT Central REST API documentation.