device/get

Gets information about the current device.

Authorization

Access JSON Web Token (GetDevice)

Request Topic and Payload

Topic

dh/request

Payload Representation

{
    "action": {string},
    "requestId": {object},
    "deviceId": {string}
}

Payload Parameters

Property Name

Required

Type

Description

action

Yes

string

Action name: device/get

requestId

No

object

Request unique identifier, will be passed back in the response message.

deviceId

Yes

string

Device unique identifier, if not specified the device for the principal will be passed back in the response message.

Response Topic and Payload

Topic

dh/response/device/[email protected]{clientId}

Payload Representation

{
    "action": {string},
    "status": {string},
    "requestId": {object},
    "device": {
        "id": {string},
        "name": {string},
        "status": {string},
        "data": {object},
        "networkId": {integer},
        "isBlocked": {boolean}
    }
}

Payload Parameters

Property Name

Type

Description

action

string

Action name: device/get

status

string

Operation execution status (success or error).

requestId

object

Request unique identifier as specified in the request message.

device

object

The Device resource representing the current device.

device.id

string

Device unique identifier.

device.name

string

Device display name.

device.data

object

Device data, a JSON object with an arbitrary structure.

device.networkId

integer

Network identifier.

device.isBlocked

boolean

Device isBlocked identifier.