Enable Cluster Dns Zone Endpoint
import requests
url = "https://platform.ankra.app/api/v1/clusters/{cluster_id}/dns-zone"
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/clusters/{cluster_id}/dns-zone', 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/clusters/{cluster_id}/dns-zone \
--header 'Authorization: Bearer <token>'{
"fqdn": "<string>",
"state": "<string>",
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Clusters
Enable Cluster Dns Zone Endpoint
POST
/
api
/
v1
/
clusters
/
{cluster_id}
/
dns-zone
Enable Cluster Dns Zone Endpoint
import requests
url = "https://platform.ankra.app/api/v1/clusters/{cluster_id}/dns-zone"
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/clusters/{cluster_id}/dns-zone', 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/clusters/{cluster_id}/dns-zone \
--header 'Authorization: Bearer <token>'{
"fqdn": "<string>",
"state": "<string>",
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.