Get a DNS zone
GET
/api/v2/organizations/{organization}/dns/zones/{zoneId}
const url = 'https://dashboard.quantcdn.io/api/v2/organizations/example/dns/zones/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.quantcdn.io/api/v2/organizations/example/dns/zones/example \ --header 'Authorization: Bearer <token>'Dns:read and browse_domains are required. The zone must belong to the organization.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organization
required
string
zoneId
required
string
Responses
Section titled “Responses”Success
Missing or invalid API token
Token scope, organization or role permission denied
Zone not found in this organization
A record already exists for this name
Invalid request
DNS service unavailable
