Devices

Get device by ID

It has to be canceled by the client in the time you define.

get/devices/{deviceId}

Path parameters

deviceIdstring uuid required

Id of the device

Headers

Correlation-IDstring

Cross request logging correlation id

Response

Device

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