Get policies

Request a page with a list of device policies belonging to a tenant, sorted in descending chronological order based on last modified date.

The page number and page size parameters are optional. When the values are not specified, these default to 1 and 10 respectively.

When a device policy is created, the modified date is the same as the created date until the policy is modified.

Service endpoint

/policies/v2?page=m&page_size=n

Optional query string parameters

  • page: This is the page number to request.
  • page_size: This is the number of device records to retrieve per page.

Example

Return the first page with up to 100 policies: https://protectapi.cylance.com/policies/v2?page=1&page_size=100

Method

HTTP/1.1 GET

Request headers

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

Request

None

Response

For more information, see Response status codes.

Response JSON schema

Field Name Description

date_added

The date and time when the device policy was created, in UTC.

date_modified

The date and time when the device policy was last modified, in UTC.

device_count

The number of devices assigned to the device policy.

id

The device policy ID.

name

The device policy name.

page_number

The page number requested.

page_size

The page size requested.

total_number_of_items

The total number of device policies.

total_pages

The total number of pages that can be retrieved based on the page size specified.

zone_count

The number of zones assigned to the device policy.