GET
/api/policies/{policyId}Get a policy
Retrieves a policy by its unique identifier. Use policyId to select the policy whose configuration you need.
policyIdstringrequired
The unique identifier of the policy to retrieve.
200Returns the policy object, including its name, enabled state, rules, and source posture checks.
descriptionstringoptional
Policy friendly description
enabledbooleanrequired
Policy status
namestringrequired
Policy name identifier
idstringoptional
Policy ID
rulesarray<object>required
Policy rule object for policy UI editor
source_posture_checksarray<string>required
Posture checks ID's applied to policy source groups
400Returned when the request is invalid.
401Returned when authentication is missing or invalid.
403Returned when the authenticated user is not permitted to retrieve the policy.
500Returned when an internal server error occurs.
Error handling
A 400 is returned when the request is invalid; a 401 is returned when authentication is missing or invalid; a 403 is returned when the authenticated user is not permitted to retrieve the policy; and a 500 is returned when an internal server error occurs. The policyId path parameter must identify the policy to retrieve.