devicetype/count

Gets count of device types the client has access to.

Authorization

Access JSON Web Token (GetDeviceType)

Request Topic and Payload

Topic

dh/request

Payload Representation

{
    "action": {string},
    "requestId": {object},
    "name": {string},
    "namePattern": {string}
}

Payload Parameters

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

Response Topic and Payload

Topic

dh/response/devicetype/count@{clientId}

Payload Representation

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

Payload Parameters

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