Search
Search policies based on filters specified in the request body.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Body
Search Policies by a few properties.
Search for policies with a case insensitive match on the display name.
The policy IDs to exclude from the search.
The includeDeleted field.
The pageSize where 0 <= pageSize <= 100. Values < 10 will be set to 10. A value of 0 returns the default page size (currently 25)
The pageToken field.
The policy type to search on. This can be POLICY_TYPE_GRANT, POLICY_TYPE_REVOKE, POLICY_TYPE_CERTIFY, POLICY_TYPE_ACCESS_REQUEST, or POLICY_TYPE_PROVISION.
POLICY_TYPE_UNSPECIFIED, POLICY_TYPE_GRANT, POLICY_TYPE_REVOKE, POLICY_TYPE_CERTIFY, POLICY_TYPE_ACCESS_REQUEST, POLICY_TYPE_PROVISION Query the policies with a fuzzy search on display name and description.
The refs field.
When scope_view is POLICY_SCOPE_VIEW_SCOPED, only return policies scoped to this entitlement.
When scope_view is POLICY_SCOPE_VIEW_SCOPED, only return policies scoped to this app.
When scope_view is POLICY_SCOPE_VIEW_SCOPED, narrow local policies to a coarse object type (app-local vs entitlement-local).
POLICY_SCOPE_OBJECT_TYPE_UNSPECIFIED, POLICY_SCOPE_OBJECT_TYPE_APP, POLICY_SCOPE_OBJECT_TYPE_ENTITLEMENT When scope_view narrows to one object, only return that object's local policies in this slot. Ignored when no object is identified by scope_app_id, which lists every local policy regardless of slot.
POLICY_SCOPE_SLOT_UNSPECIFIED, POLICY_SCOPE_SLOT_EMERGENCY Which policies to return based on scope. Defaults to global-only, so app/entitlement-scoped policies never appear unless explicitly requested. Ignored when refs are provided (explicit ID lookups always resolve).
POLICY_SCOPE_VIEW_UNSPECIFIED, POLICY_SCOPE_VIEW_GLOBAL, POLICY_SCOPE_VIEW_SCOPED, POLICY_SCOPE_VIEW_ALL, POLICY_SCOPE_VIEW_GLOBAL_AND_OBJECT