Get project policy
curl --request GET \
--url http://127.0.0.1:4100/api/projects/{id}/policy \
--header 'x-alibi-api-key: <api-key>'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/policy"
headers = {"x-alibi-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-alibi-api-key': '<api-key>'}};
fetch('http://127.0.0.1:4100/api/projects/{id}/policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"projectId": "<string>",
"retentionDays": 123,
"piiScrub": true,
"piiPaths": [
"<string>"
],
"approveRoles": [
"admin"
],
"envPromotion": [
"<string>"
],
"currentEnv": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Policy
Get project policy
GET
/
projects
/
{id}
/
policy
Get project policy
curl --request GET \
--url http://127.0.0.1:4100/api/projects/{id}/policy \
--header 'x-alibi-api-key: <api-key>'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/policy"
headers = {"x-alibi-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-alibi-api-key': '<api-key>'}};
fetch('http://127.0.0.1:4100/api/projects/{id}/policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"projectId": "<string>",
"retentionDays": 123,
"piiScrub": true,
"piiPaths": [
"<string>"
],
"approveRoles": [
"admin"
],
"envPromotion": [
"<string>"
],
"currentEnv": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth