List the zones in the organisation's Ankra Cloud account
import requests
url = "https://platform.ankra.app/api/v1/org/ankra-cloud/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/org/ankra-cloud/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/org/ankra-cloud/dns-zones \
--header 'Authorization: Bearer <token>'{
"account": "linked",
"zones": [
{
"id": "<string>",
"name": "<string>",
"is_verified": true,
"is_in_use": true
}
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}DNS
List the zones in the organisation's Ankra Cloud account
The zones in the organisation’s own Ankra Cloud account, for declaring one as a custom DNS zone with nothing to connect (credential_name “ankra-cloud”, provider “ankracloud” on POST /api/v1/org/custom-dns-zones). account is “linked” when Ankra Cloud links an account to the organisation and “none” otherwise, with no zones; this read never creates an account. Every zone carries is_verified (Ankra Cloud serves it; a zone pending ownership verification cannot be declared) and is_in_use (the organisation already declares it as a custom DNS zone, organisation-wide or on a cluster). Answers 404 while Ankra Cloud custom domains are not enabled for the organisation.
GET
/
api
/
v1
/
org
/
ankra-cloud
/
dns-zones
List the zones in the organisation's Ankra Cloud account
import requests
url = "https://platform.ankra.app/api/v1/org/ankra-cloud/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/org/ankra-cloud/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/org/ankra-cloud/dns-zones \
--header 'Authorization: Bearer <token>'{
"account": "linked",
"zones": [
{
"id": "<string>",
"name": "<string>",
"is_verified": true,
"is_in_use": true
}
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}