Get control
const url = 'https://localhost:10001/api/v1/organizations/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/organizations/example/policies/example/controls/example \ --header 'Authorization: <Authorization>'Retrieve a specific control by ID
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…
Control ID, code:AC-1, or urn:cid:bafy…
Responses
Section titled “ Responses ”Control
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 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 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"}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"}