Delete organisation DNS records in bulk
import requests
url = "https://platform.ankra.app/api/v1/org/dns/records/bulk-delete"
payload = { "ids": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['<string>']})
};
fetch('https://platform.ankra.app/api/v1/org/dns/records/bulk-delete', 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/records/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
]
}
'{
"deleted": 123,
"skipped": [
{
"id": "<string>",
"reason": "not_found"
}
]
}DNS
Delete organisation DNS records in bulk
Deletes up to 500 records of the organisation’s DNS zone at once and answers how many were deleted. Records Ankra Cloud manages, records a cluster’s external-dns publishes (it would write them back) and ids the zone does not hold are skipped and listed with their reason. Organisation admins only; answers 404 while the organisation’s edge_waf flag is off.
POST
/
api
/
v1
/
org
/
dns
/
records
/
bulk-delete
Delete organisation DNS records in bulk
import requests
url = "https://platform.ankra.app/api/v1/org/dns/records/bulk-delete"
payload = { "ids": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['<string>']})
};
fetch('https://platform.ankra.app/api/v1/org/dns/records/bulk-delete', 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/records/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
]
}
'{
"deleted": 123,
"skipped": [
{
"id": "<string>",
"reason": "not_found"
}
]
}Authorizations
Body
application/json