device/count

Gets count of devices.

Authorization

Access JSON Web Token (GetDevice)

Request Topic and Payload

Topic

dh/request

Payload Representation

{
    "action": {string},
    "requestId": {object},
    "name": {string},
    "namePattern": {string},
    "networkId": {long},
    "networkName": {string}
}

Payload Parameters

Property nameRequiredTypeDescription
actionYesstringAction name: device/count
requestIdNoobjectRequest unique identifier, will be passed back in the response message.
nameNostringFilter by device name.
namePatternNostringFilter by device name pattern. In pattern wildcards '%' and '_' can be used.
networkIdNolongFilter by associated network identifier.
networkNameNostringFilter by associated network name.

Response Topic and Payload

Topic

dh/response/device/count@{clientId}

Payload Representation

{
    "action": {string},
    "requestId": {object},
    "status": {string},
    "count": {integer}
}

Payload Parameters

Property NameTypeDescription
actionstringAction name: device/count
requestIdobjectRequest unique identifier as specified in the request message.
statusstringOperation execution status (success or error).
countintegerNumber of devices that match the filters.