List Cloudflare domains
import requests
url = "https://platform.ankra.app/api/v1/org/cloudflare/domains"
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', 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 \
--header 'Authorization: Bearer <token>'{
"items": [
{
"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>"
}
],
"is_truncated": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Cloudflare
List Cloudflare domains
Lists the Cloudflare domains the organisation’s credential reaches, optionally filtered by name; pick a credential with credential_name. is_truncated is true when the list was cut short.
GET
/
api
/
v1
/
org
/
cloudflare
/
domains
List Cloudflare domains
import requests
url = "https://platform.ankra.app/api/v1/org/cloudflare/domains"
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', 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 \
--header 'Authorization: Bearer <token>'{
"items": [
{
"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>"
}
],
"is_truncated": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}