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"
}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.
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.
Path Parameters
The declared zone, in any spelling; it is normalised before the lookup.
Response
The withdrawn zone
Declare only: how the zone is published ('cloudflare', 'webhook' or 'avura').
Declare only: the external-dns policy ('upsert-only' for Cloudflare, 'sync' otherwise).
Declare of a Cloudflare-bound zone only: the Cloudflare zone the records land in.
Declare of a Cloudflare-bound zone only: 'granted' or 'unknown'.
granted, unknown