Delete a cluster mesh
import requests
url = "https://platform.ankra.app/api/v1/org/cluster-meshes/{mesh_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/cluster-meshes/{mesh_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/cluster-meshes/{mesh_id} \
--header 'Authorization: Bearer <token>'{
"success": true
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Cluster Meshes
Delete a cluster mesh
Deletes a cluster mesh. Requires clusters.write at organisation scope. An unknown mesh answers 404; a mesh the usecase cannot delete yet (for example one that still has members) answers 409 with the reason. Answers 404 while the organisation’s cluster_mesh feature flag is off.
DELETE
/
api
/
v1
/
org
/
cluster-meshes
/
{mesh_id}
Delete a cluster mesh
import requests
url = "https://platform.ankra.app/api/v1/org/cluster-meshes/{mesh_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/cluster-meshes/{mesh_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/cluster-meshes/{mesh_id} \
--header 'Authorization: Bearer <token>'{
"success": true
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}