List the cluster's custom DNS zones
import requests
url = "https://platform.ankra.app/api/v1/clusters/{cluster_id}/custom-dns-zones"
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/{cluster_id}/custom-dns-zones', 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/{cluster_id}/custom-dns-zones \
--header 'Authorization: Bearer <token>'{
"success": true,
"zones": [
{
"credential_name": "<string>",
"zone": "<string>",
"source": "cluster"
}
]
}{
"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
List the cluster's custom DNS zones
The DNS zones this cluster serves with the organisation’s own external-dns webhook credential, alongside the delegated zone Ankra serves itself. Ankra’s own Avura token is pinned to Ankra’s account, so ingress hosts on a zone the customer holds in their own provider account are dropped server-side and publish nothing. Declaring the zone here has Ankra render and own an external-dns deployment for it, pinned to that zone with its own txt owner id.
GET
/
api
/
v1
/
clusters
/
{cluster_id}
/
custom-dns-zones
List the cluster's custom DNS zones
import requests
url = "https://platform.ankra.app/api/v1/clusters/{cluster_id}/custom-dns-zones"
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/{cluster_id}/custom-dns-zones', 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/{cluster_id}/custom-dns-zones \
--header 'Authorization: Bearer <token>'{
"success": true,
"zones": [
{
"credential_name": "<string>",
"zone": "<string>",
"source": "cluster"
}
]
}{
"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.