List policies for a specific agent or server.
Note: You must provide either agent_id or server_id (or both).
Returns a list of policy IDs that match the filter criteria.
JWT token obtained through Auth0 OAuth 2.0 flow with PKCE.
The token should be included in the Authorization header:
Authorization: Bearer <your-jwt-token>
Use the Barndoor SDK's loginInteractive() function to obtain tokens automatically.
Filter policies by agent ID. Required if server_id is not provided.
Filter policies by server ID. Required if agent_id is not provided.
Include disabled policies in the results
List of policy IDs
Response containing a list of policy IDs
List of policy IDs matching the query
[
"resource.server-uuid.vdefault/agent-uuid",
"resource.server-uuid.vdefault"
]