v1

latestOpenAPI 3.0.12026-07-17265663.1 KB
Resource Links

Get device's resource links

Get resource links published by a single device. Alternative is to call 'Get all resource links' with deviceId filter query parameter.

get/api/v1/devices/{deviceId}/resource-links

Path parameters

deviceIdstring uuid required

Id of the device.

Query parameters

typestring[]

Filter by the type.

Response

Resource links of a single device.

deviceIdstring

Example response

{
  "resources": [
    {
      "href": "/switches/1",
      "deviceId": "4629b3cb-3a6e-477c-5d50-ccb28ad7c349",
      "resourceTypes": [
        "oic.r.switch.binary"
      ],
      "interfaces": [
        "oic.if.a",
        "oic.if.baseline"
      ],
      "anchor": "",
      "title": "",
      "supportedContentTypes": [],
      "validUntil": "0",
      "policy": {
        "bitFlags": 3
      },
      "endpointInformations": []
    }
  ],
  "deviceId": "4629b3cb-3a6e-477c-5d50-ccb28ad7c349",
  "auditContext": {
    "userId": "9772fcff-dcfb-4db8-a6c9-1b75f2165eb1",
    "correlationId": "ef007f88-6073-4af1-8951-971578bf6803"
  },
  "eventMetadata": {
    "connectionId": "194.1.25.111:61692",
    "sequence": "4",
    "version": "0",
    "timestamp": "1625432924483895839"
  }
}