Get project policy control
GET
/api/v1/projects/{projectId}/policies/{projectPolicyId}/controls/{controlId}
const
url
=
'
https://localhost:10001/api/v1/projects/1/policies/1/controls/1
'
;
const
options
= {method:
'
GET
'
, headers: {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/1/policies/1/controls/1
\
--header
'
Authorization:
'
Retrieve a control from a project policy by base control ID
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”
projectId
required
integer
Project ID
projectPolicyId
required
integer
Project Policy ID
controlId
required
integer
Control ID (the base control.id; the GET endpoint takes a base control id, unlike the POST endpoints)
Responses
Section titled “ Responses ”Project policy control
Media type
application/json
object
controlId
integer
createdAt
string
id
integer
indicators
Array