Verify the organisation's custom DNS zones
import requests
url = "https://platform.ankra.app/api/v1/org/custom-dns-zones/verification"
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/custom-dns-zones/verification', 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/custom-dns-zones/verification \
--header 'Authorization: Bearer <token>'{
"success": true,
"zones": [
{
"zone": "<string>",
"credential_name": "<string>",
"scope": "organisation",
"cluster_id": "<string>",
"cluster_name": "<string>",
"verdict": "verified",
"checks": [
{
"check": "credential",
"state": "passed",
"observed": "<string>",
"expected": "<string>",
"hostnames": [
{
"hostname": "<string>",
"cluster_name": "<string>",
"state": "resolved",
"observed_addresses": [
"<string>"
],
"expected_addresses": [
"<string>"
],
"required_record": {
"name": "<string>",
"type": "<string>",
"value": "<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"
}DNS
Verify the organisation's custom DNS zones
Probes what public DNS answers today for every custom DNS zone the organisation declares - organisation-wide and bound to single clusters - and reports an honest three-state verdict per zone: verified, misconfigured with the observed-vs-expected facts, or unknown when a probe could not be completed. Read-only end to end: it verifies what the customer’s DNS resolves and names the record they would need to create themselves; it never writes DNS records anywhere.
GET
/
api
/
v1
/
org
/
custom-dns-zones
/
verification
Verify the organisation's custom DNS zones
import requests
url = "https://platform.ankra.app/api/v1/org/custom-dns-zones/verification"
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/custom-dns-zones/verification', 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/custom-dns-zones/verification \
--header 'Authorization: Bearer <token>'{
"success": true,
"zones": [
{
"zone": "<string>",
"credential_name": "<string>",
"scope": "organisation",
"cluster_id": "<string>",
"cluster_name": "<string>",
"verdict": "verified",
"checks": [
{
"check": "credential",
"state": "passed",
"observed": "<string>",
"expected": "<string>",
"hostnames": [
{
"hostname": "<string>",
"cluster_name": "<string>",
"state": "resolved",
"observed_addresses": [
"<string>"
],
"expected_addresses": [
"<string>"
],
"required_record": {
"name": "<string>",
"type": "<string>",
"value": "<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.