curl --request GET \
--url https://api.gcore.com/dns/v2/zones/{name} \
--header 'Authorization: <api-key>'
{
"Zone": {
"client_id": 123,
"contact": "<string>",
"dnssec_enabled": true,
"expiry": 123,
"id": 123,
"meta": {},
"name": "<string>",
"nx_ttl": 123,
"primary_server": "<string>",
"records": [
{
"name": "<string>",
"short_answers": [
"<string>"
],
"ttl": 123,
"type": "<string>"
}
],
"refresh": 123,
"retry": 123,
"rrsets_amount": {
"dynamic": {
"healthcheck": 123,
"total": 123
},
"static": 123,
"total": 123
},
"serial": 123,
"status": "<string>"
}
}
Zone info by zone name.
curl --request GET \
--url https://api.gcore.com/dns/v2/zones/{name} \
--header 'Authorization: <api-key>'
{
"Zone": {
"client_id": 123,
"contact": "<string>",
"dnssec_enabled": true,
"expiry": 123,
"id": 123,
"meta": {},
"name": "<string>",
"nx_ttl": 123,
"primary_server": "<string>",
"records": [
{
"name": "<string>",
"short_answers": [
"<string>"
],
"ttl": 123,
"type": "<string>"
}
],
"refresh": 123,
"retry": 123,
"rrsets_amount": {
"dynamic": {
"healthcheck": 123,
"total": 123
},
"static": 123,
"total": 123
},
"serial": 123,
"status": "<string>"
}
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
ItemZoneResponse
Complete zone info with all records included
Was this page helpful?