Move proxied DNS records to another load balancer
import requests
url = "https://platform.ankra.app/api/v1/org/dns/load-balancers/{load_balancer_id}/proxied-records/repoint"
payload = { "target_load_balancer_id": "<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({target_load_balancer_id: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/dns/load-balancers/{load_balancer_id}/proxied-records/repoint', 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/load-balancers/{load_balancer_id}/proxied-records/repoint \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_load_balancer_id": "<string>"
}
'{
"records": [
{
"zone_id": "<string>",
"record_id": "<string>",
"name": "<string>"
}
],
"count": 1
}DNS
Move proxied DNS records to another load balancer
Moves every proxied DNS record whose origin is the load balancer to another load balancer of the organisation’s Ankra Cloud account, records a cluster’s external-dns publishes included, since public DNS keeps answering the edge relay. Idempotent. Organisation admins only; answers 404 while the organisation’s edge_waf flag is off.
POST
/
api
/
v1
/
org
/
dns
/
load-balancers
/
{load_balancer_id}
/
proxied-records
/
repoint
Move proxied DNS records to another load balancer
import requests
url = "https://platform.ankra.app/api/v1/org/dns/load-balancers/{load_balancer_id}/proxied-records/repoint"
payload = { "target_load_balancer_id": "<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({target_load_balancer_id: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/dns/load-balancers/{load_balancer_id}/proxied-records/repoint', 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/load-balancers/{load_balancer_id}/proxied-records/repoint \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_load_balancer_id": "<string>"
}
'{
"records": [
{
"zone_id": "<string>",
"record_id": "<string>",
"name": "<string>"
}
],
"count": 1
}Authorizations
Body
application/json