List DNS Zones

Use this API call to fetch a collection of DNS Zones.

Requires the dns-view permission.

query
  • include

    Accepted Values: creators

  • sort

    Sorts can be performed on any field - see sorting

  • filter

    Collections of resources can be filtered based on certain criteria - see filtering 

Returns

Get a group of DNS zone resources, otherwise returns an Error.

GET /v1/dns/zones

Example Request
$ curl https://api.cycle.io/v1/dns/zones \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-HUB-ID: HUB_ID"
Example Response
{
"data": [
{
"id": "5a14de0a78ecdb000128b9ec",
"hub_id": "6e43de0a78ecdb000129b8ec",
"origin": "domain.com",
"hosted": true,
"creator": {
"type": "account",
"id": "6e43de0a78ecdb000129b8ec"
},
"state": {
"changed": "2019-05-27T22:09:50.393Z",
"current": "live"
},
"events": {
"last_verification": "2019-05-27T22:09:50.375Z",
"verified": "2019-05-27T22:09:50.375Z",
"created": "2019-05-27T22:09:50.375Z",
"updated": "0001-01-01T00:00:00Z",
"deleted": "0001-01-01T00:00:00Z"
}
}
]
}