Get a Cloudflare domain
import requests
url = "https://platform.ankra.app/api/v1/org/cloudflare/domains/{zone_id}"
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/cloudflare/domains/{zone_id}', 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/cloudflare/domains/{zone_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"is_active": true,
"paused": true,
"type": "<string>",
"credential_name": "<string>",
"name_servers": [
"<string>"
],
"account_id": "<string>",
"account_name": "<string>",
"created_on": "<string>",
"modified_on": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Cloudflare
Get a Cloudflare domain
Returns one Cloudflare domain by zone id, with its status and name servers. Answers 404 for a domain the organisation’s credential cannot reach.
GET
/
api
/
v1
/
org
/
cloudflare
/
domains
/
{zone_id}
Get a Cloudflare domain
import requests
url = "https://platform.ankra.app/api/v1/org/cloudflare/domains/{zone_id}"
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/cloudflare/domains/{zone_id}', 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/cloudflare/domains/{zone_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"is_active": true,
"paused": true,
"type": "<string>",
"credential_name": "<string>",
"name_servers": [
"<string>"
],
"account_id": "<string>",
"account_name": "<string>",
"created_on": "<string>",
"modified_on": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Which connected Cloudflare credential to use. Omit when the organisation has exactly one.