policy_policy_assignments__list_policy_assignments
Retrieve policy assignments available to the caller, with optional filters by policy, device, device group, or subscription. Supports pagination and field selection to limit response size.
Instructions
List policy assignments - (GET /v2/policy-assignments) - List all the policy assignments available to the caller.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Optional server-side projection: return only these keys for each list-item in the response. Reduces token usage on large list endpoints. Example: ['uuid','displayName']. Top-level fields (e.g. nextPageToken) are always preserved. Not forwarded to ESET - applied locally after fetch. | |
| pageSize | No | Limit for pagination purposes. If unspecified or 0, the default value is 50. The maximum value is 1000; values above 1000 will be coerced to 1000. > **Info:** > For more information, refer to [Paginating Requests in APIs](https://medium.com/@ignaciochiazzo/paginating-requests-in-apis-d4883d4c1c4c) > > or [Design Patterns: Pagination](https://google.aip.dev/158) | |
| pageToken | No | Page token of the current page. If not given or "", the first page is returned. > **Info:** > For more information, refer to [Paginating Requests in APIs](https://medium.com/@ignaciochiazzo/paginating-requests-in-apis-d4883d4c1c4c) > > or [Design Patterns: Pagination](https://google.aip.dev/158) | |
| policyUuid | No | If filled, only assignments of the given policy will be included in the response. This filter is merged with `policy uuids` if those are filled. type: Policy | |
| policyUuids | No | If filled, only assignments of any of the given policies will be included in the response. If also `policy uuid` is filled, it is added to this list. type: Policy | |
| target.deviceUuid | No | Policy is assigned to [device]. type: device_management.v1.Device | |
| target.deviceGroupUuid | No | Policy is assigned to [device group]. type: device_management.v1.DeviceGroup | |
| target.subscriptionUuid | No | Policy is assigned to [subscription]. type: subscription_provisioning.v2.Subscription |