Devices

Get all devices

To filter only devices with specific status, use query parameter status. To filter specific type of devices, use the type query parameter.

get/devices

Query parameters

typestring[]

Filter by the type

typeDeviceStatus[]

Filter by the device status

Headers

Correlation-IDstring

Cross request logging correlation id

Response

Devices array

linksLinks — unresolved $ref
status'online' | 'offline'

Example response

[
  {
    "device": {
      "rt": [
        "x.org.iotivity.device",
        "oic.wk.d"
      ],
      "di": "53080a4f-5e3e-4291-802f-3436238232d2",
      "n": "Test device"
    },
    "status": "online",
    "links": [
      {
        "di": "53080a4f-5e3e-4291-802f-3436238232d2",
        "href": "/oic/d",
        "rt": [
          "x.org.iotivity.device",
          "oic.wk.d"
        ],
        "if": [
          "oic.if.baseline",
          "oic.if.r"
        ]
      }
    ]
  }
]

Changes