Withdraw an organisation-wide custom DNS zone
import requests
url = "https://platform.ankra.app/api/v1/org/custom-dns-zones/{zone}"
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/custom-dns-zones/{zone}', 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/custom-dns-zones/{zone} \
--header 'Authorization: Bearer <token>'{
"success": true,
"zone": "<string>",
"credential_name": "<string>",
"provider": "<string>",
"policy": "<string>",
"cloudflare_zone": "<string>",
"dns_edit_access": "granted"
}{
"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"
}DNS
Withdraw an organisation-wide custom DNS zone
Withdraws the organisation-wide declaration. The scheduler’s next pass republishes every affected cluster’s custom-dns stack without it, which removes those external-dns deployments; clusters that declared the zone themselves keep it, and the zone and the records already published into it are untouched.
DELETE
/
api
/
v1
/
org
/
custom-dns-zones
/
{zone}
Withdraw an organisation-wide custom DNS zone
import requests
url = "https://platform.ankra.app/api/v1/org/custom-dns-zones/{zone}"
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/custom-dns-zones/{zone}', 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/custom-dns-zones/{zone} \
--header 'Authorization: Bearer <token>'{
"success": true,
"zone": "<string>",
"credential_name": "<string>",
"provider": "<string>",
"policy": "<string>",
"cloudflare_zone": "<string>",
"dns_edit_access": "granted"
}{
"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"
}Authorizations
Path Parameters
Response
The withdrawn zone