Verify a DNS zone claim
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/verify"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/dns/zones/{zone}/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/dns/zones/{zone}/verify \
--header 'Authorization: Bearer <token>'{
"zone": {
"id": "<string>",
"name": "<string>",
"status": "<string>"
}
}DNS
Verify a DNS zone claim
Checks the ownership TXT record of a zone the organisation’s Ankra Cloud account claimed and starts hosting it; an active zone is answered unchanged. 409 verification_record_not_found while Ankra Cloud cannot see the record yet. Organisation admins only; answers 404 while the organisation’s edge_waf flag is off.
POST
/
api
/
v1
/
org
/
dns
/
zones
/
{zone}
/
verify
Verify a DNS zone claim
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/verify"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/dns/zones/{zone}/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/dns/zones/{zone}/verify \
--header 'Authorization: Bearer <token>'{
"zone": {
"id": "<string>",
"name": "<string>",
"status": "<string>"
}
}