Get Device Rules

GET {{baseUrl}}/web/api/v2.1/device-control?ruleName=ex&deviceClasses=ex&createdAt__lt=ex&skip=ex&sortOrder=ex&createdAt__lte=ex&gattServices=ex&statuses=ex&ids=ex&deviceNames=ex&accessPermissions=ex&vendorIds=ex&manufacturerNames=ex&bluetoothAddresses=ex&interfaces=ex&uids=ex&disablePagination=ex&createdAt__gte=ex&minorClasses=ex&siteIds=ex&sortBy=ex&groupIds=ex&limit=ex&query=ex&accountIds=ex&cursor=ex&createdAt__between=ex&tenant=ex&skipCount=ex&scopes=ex&actions=ex&productIds=ex&deviceInformationServiceInfoKeys=ex&serviceClasses=ex&countOnly=ex&createdAt__gt=ex&versions=ex

Get the Device Control rules of a specified Account, Site, Group or Global (tenant) that match the filter.

Request Params

KeyDatatypeRequiredDescription
ruleNamestringReturn device rules with the filtered rule name.
deviceClassesstringReturn device rules with the filtered device class. Example: "02h".
createdAt__ltstringReturn device rules created before this timestamp. Example: "2018-02-27T04:49:26.257525Z".
skipstringSkip first number of items (0-1000). To iterate over more than 1000 items, use "cursor". Example: "150".
sortOrderstringSort direction. Example: "asc".
createdAt__ltestringReturn device rules created before or at this timestamp. Example: "2018-02-27T04:49:26.257525Z".
gattServicesstringReturn device rules with the filtered GATT services.
statusesstringReturn device rules with the filtered status. Example: "Enabled".
idsstringList of ids to filter by. Example: "225494730938493804,225494730938493915".
deviceNamesstringReturn device rules with the filtered device names.
accessPermissionsstringAccess permission in. Example: "Read-Only".
vendorIdsstringReturn device rules with the filtered vendor id.
manufacturerNamesstringReturn device rules with the filtered manufacturer names.
bluetoothAddressesstringReturn device rules with the filtered bluetooth addresses.
interfacesstringReturn device rules with the filtered interface. Example: "USB".
uidsstringReturn device rules with the filtered uId.
disablePaginationstringIf true, all rules for requested scope will be returned
createdAt__gtestringReturn device rules created after or at this timestamp. Example: "2018-02-27T04:49:26.257525Z".
minorClassesstringReturn device rules with the filtered minor classes.
siteIdsstringList of Site IDs to filter by. Example: "225494730938493804,225494730938493915".
sortBystringThe column to sort the results by. Example: "id".
groupIdsstringList of Group IDs to filter by. Example: "225494730938493804,225494730938493915".
limitstringLimit number of returned items (1-1000). Example: "10".
querystringA free-text search term, will match applicable attributes.
accountIdsstringList of Account IDs to filter by. Example: "225494730938493804,225494730938493915".
cursorstringCursor position returned by the last request. Use to iterate over more than 1000 items. Example: "YWdlbnRfaWQ6NTgwMjkzODE=".
createdAt__betweenstringReturn device rules created within this range (inclusive). Example: "1514978764288-1514978999999".
tenantstringIndicates a Global (tenant) scope request
skipCountstringIf true, total number of items will not be calculated, which speeds up execution time.
scopesstringReturn only device rules in this scope. Example: "group".
actionsstringReturn device rules with the filtered action. Example: "Allow".
productIdsstringReturn device rules with the filtered product id. Example: "02".
deviceInformationServiceInfoKeysstringReturn device rules with the filtered device information service info keys.
serviceClassesstringReturn device rules with the filtered service class. Example: "02".
countOnlystringIf true, only total number of items will be returned, without any of the actual objects.
createdAt__gtstringReturn device rules created after this timestamp. Example: "2018-02-27T04:49:26.257525Z".
versionsstringReturn device rules with the filtered versions.

HEADERS

KeyDatatypeRequiredDescription
Content-Typenull