Withdraw a custom DNS zone from the cluster
import requests
url = "https://platform.ankra.app/api/v1/clusters/{cluster_id}/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/clusters/{cluster_id}/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/clusters/{cluster_id}/custom-dns-zones/{zone} \
--header 'Authorization: Bearer <token>'{
"success": true,
"zone": "<string>",
"credential_name": "<string>"
}{
"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"
}Clusters
Withdraw a custom DNS zone from the cluster
Withdraws the declaration. The scheduler’s next pass republishes the cluster’s custom-dns stack without it, which removes the external-dns deployment; the zone itself and the records already published into it are untouched.
DELETE
/
api
/
v1
/
clusters
/
{cluster_id}
/
custom-dns-zones
/
{zone}
Withdraw a custom DNS zone from the cluster
import requests
url = "https://platform.ankra.app/api/v1/clusters/{cluster_id}/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/clusters/{cluster_id}/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/clusters/{cluster_id}/custom-dns-zones/{zone} \
--header 'Authorization: Bearer <token>'{
"success": true,
"zone": "<string>",
"credential_name": "<string>"
}{
"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.