Get detection rule counts

Retrieve counts of how many devices, detection rule sets, and policies that have a particular detection rule applied.

Service endpoint

/rules/v2/{rule_id}/counts

Optional query string parameters

Example

https://protectapi.cylance.com/rules/v2/c407f28a-3805-4014-b32c-0c2553ac1e10/counts

Method

HTTP/1.1 GET

Request headers

  • Accept: application/json
  • Authorization: Bearer JWT Token returned by Auth API with the opticsrule:read scope encoded

Request

None

Response

Please see the Response status codes for more information.

Response JSON schema

Field Name Description

DeviceCount

This is the number of devices that have the requested detection rule applied.

PolicyCount

This is the number of device policies that have the requested detection rule applied.

RulesetCount

This is the number of detection rule sets that have the requested detection rule enabled.