device/get

Gets information about the current device.

Request Message

Authorization

Access JSON Web Token (GetDevice)

Message Representation

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

Message Parameters

Property NameRequiredTypeDescription
actionYesstringAction name: device/get
requestIdNoobjectRequest unique identifier, will be passed back in the response message.
deviceIdYesstringDevice unique identifier, if not specified the device for the principal will be passed back in the response message.

Server Message

Message Representation

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

Message Parameters

Property NameTypeDescription
actionstringAction name: device/get
statusstringOperation execution status (success or error).
requestIdobjectRequest unique identifier as specified in the request message.
deviceobjectThe Device resource representing the current device.
device.idstringDevice unique identifier.
device.namestringDevice display name.
device.dataobjectDevice data, a JSON object with an arbitrary structure.
device.networkIdintegerNetwork identifier.
device.isBlockedbooleanDevice isBlocked identifier.