Get applied policy control
const url = 'https://localhost:10001/api/v1/projects/example/policies/example/controls/example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:10001/api/v1/projects/example/policies/example/controls/example \ --header 'Authorization: <Authorization>'Retrieve a control from an applied policy by applied policy control ID
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Project ID, UUID (urn:uuid optional), or slug:my-project
Applied policy ID, slug:my-policy, or urn:cid:bafy…
Applied policy control ID, code:AC-1, or urn:cid:bafy…
Responses
Section titled “ Responses ”Applied policy control
A control within an applied policy, with its latest declaration and review state
object
An indicator bound to an applied policy control, defining how and when it is evaluated
object
Urn:uuid form
Custom indicators only
object
object
When to emit a declaration
Custom indicators only
object
Urn:uuid form
object
Example
{ "indicators": [ { "declarationProfile": { "emitOn": "pass" }, "status": "active", "triggerType": "event" } ]}Bad request - Invalid project ID, applied policy ID, or control ID
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Unauthorized - Authentication required
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Forbidden - No project access or insufficient permissions
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Applied policy control not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Internal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}