The persistent volumes deleting an AWS cluster removes
import requests
url = "https://platform.ankra.app/api/v1/clusters/aws/{cluster_id}/deprovision-volumes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/aws/{cluster_id}/deprovision-volumes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/clusters/aws/{cluster_id}/deprovision-volumes \
--header 'Authorization: Bearer <token>'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "present",
"volume_count": 123,
"volumes": [
{
"volume_id": "<string>",
"persistent_volume": "<string>",
"claim": "<string>",
"storage_class": "<string>",
"capacity": "<string>"
}
],
"kept_volumes": [
{
"volume_id": "<string>",
"persistent_volume": "<string>",
"claim": "<string>",
"storage_class": "<string>",
"capacity": "<string>"
}
],
"retention_policy": "retain",
"warning": "<string>",
"consent_required": true
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}AWS Clusters
The persistent volumes deleting an AWS cluster removes
What deleting the cluster does to its persistent volumes: the cloud volumes its CSI driver provisioned that DELETE /api/v1/clusters/aws/{cluster_id} deletes with the cluster, or keeps when the cluster’s retention_policy retains them. Read it before the delete to name the volumes and ask for accept_volume_data_loss. A cluster whose inventory was never synced, or could not be read, is unknown, never none. Answers 404 while the organisation’s aws_provider feature flag is off.
GET
/
api
/
v1
/
clusters
/
aws
/
{cluster_id}
/
deprovision-volumes
The persistent volumes deleting an AWS cluster removes
import requests
url = "https://platform.ankra.app/api/v1/clusters/aws/{cluster_id}/deprovision-volumes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/aws/{cluster_id}/deprovision-volumes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/clusters/aws/{cluster_id}/deprovision-volumes \
--header 'Authorization: Bearer <token>'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "present",
"volume_count": 123,
"volumes": [
{
"volume_id": "<string>",
"persistent_volume": "<string>",
"claim": "<string>",
"storage_class": "<string>",
"capacity": "<string>"
}
],
"kept_volumes": [
{
"volume_id": "<string>",
"persistent_volume": "<string>",
"claim": "<string>",
"storage_class": "<string>",
"capacity": "<string>"
}
],
"retention_policy": "retain",
"warning": "<string>",
"consent_required": true
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Response
What the delete does to the cluster's volumes.
What deleting a self-managed cluster does to its persistent volumes (the cloud volumes its CSI driver provisioned).