Set an application's deploy provenance mode
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/provenance-policy"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/provenance-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/provenance-policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mode": "off",
"source": "application",
"application_mode": "off",
"organisation_mode": "off"
}Deploy Provenance
Set an application's deploy provenance mode
Stores the application’s own deploy provenance mode: off, warn (deploy and file a finding for an image without verified provenance) or enforce (refuse such a deploy and pin verified images to their digest). A mode of null clears the choice, so the application follows the organisation’s default. Recorded in the audit log. Requires security.manage.
PUT
/
api
/
v1
/
org
/
applications
/
{application_id}
/
provenance-policy
Set an application's deploy provenance mode
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/provenance-policy"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/provenance-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/provenance-policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mode": "off",
"source": "application",
"application_mode": "off",
"organisation_mode": "off"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
off, warn or enforce; null clears the choice.
Available options:
off, warn, enforce, null Response
The application's effective mode after the change.
The mode the application's deploys use.
Available options:
off, warn, enforce Available options:
application, organisation, default The application's own choice, null when none.
Available options:
off, warn, enforce, null The organisation's default, null when none.
Available options:
off, warn, enforce, null