Delete a backup vault
import requests
url = "https://platform.ankra.app/api/v1/org/backup-vaults/{vault_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/backup-vaults/{vault_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/backup-vaults/{vault_id} \
--header 'Authorization: Bearer <token>'{
"detail": "<string>",
"code": "<string>",
"overridable": true,
"clusters": [
{}
]
}Backups
Delete a backup vault
Forgets a backup vault. The bucket and its data are kept unless destroy_provider_resources=true. Refused while a restore reads from one of its imports, or while it holds a stopped cluster’s state. Requires backups.manage, held organisation-wide for an organisation-wide vault.
DELETE
/
api
/
v1
/
org
/
backup-vaults
/
{vault_id}
Delete a backup vault
import requests
url = "https://platform.ankra.app/api/v1/org/backup-vaults/{vault_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/backup-vaults/{vault_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/backup-vaults/{vault_id} \
--header 'Authorization: Bearer <token>'{
"detail": "<string>",
"code": "<string>",
"overridable": true,
"clusters": [
{}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The backup vault.
Query Parameters
Also destroy the bucket Ankra provisioned. Only the value true turns it on.
Response
The vault was deleted.