Set the organisation's deploy provenance default
import requests
url = "https://platform.ankra.app/api/v1/org/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/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/provenance/policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"mode": "off"
}Deploy Provenance
Set the organisation's deploy provenance default
Stores the deploy provenance mode applications follow when they choose none: off, warn or enforce. A mode of null clears the default. Recorded in the audit log. Requires security.manage.
PUT
/
api
/
v1
/
org
/
provenance
/
policy
Set the organisation's deploy provenance default
import requests
url = "https://platform.ankra.app/api/v1/org/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/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/provenance/policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"mode": "off"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
off, warn or enforce; null clears the choice.
Available options:
off, warn, enforce, null Response
The organisation's default as stored.
The organisation's default, or null when it chose none.
Available options:
off, warn, enforce, null