List controls for a policy
const url = 'https://localhost:10001/api/v1/organizations/example/policies/example/controls';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/organizations/example/policies/example/controls \ --header 'Authorization: <Authorization>'List all controls under a specific policy
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Organization ID or UUID (urn:uuid optional)
Policy ID, slug:my-policy@1.2.0, or urn:cid:bafy…
Responses
Section titled “ Responses ”Controls
A single requirement within a policy template, identified by its control code
object
Assigned by the integrity service at creation
object
Alphanumeric, . and -; upper-cased
Assigned from the parent policy
Example generated
[ { "citations": [ { "title": "example", "url": "example" } ], "controlCode": "example", "description": "example", "title": "example" }]Bad request - Invalid organization ID or policy 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 organization access
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Policy 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"}