List zones
GET https://{{host}}/config-dns/v2/zones
Get a list of all zones that the current user has access to manage. The response is paginated.
Body
PARAM
Key | Datatype | Required | Description |
contractIds
|
string | (Optional) Limits the list to those zones belonging to the specified contracts. | |
search
|
string | (Optional) Limits the list to those zones whose name matches the specified search string. | |
sortBy
|
string | (Optional) Sorts the list on the specified fields. You can specify multiple fields as a comma-separated list. Placing a dash before a field name sorts it in descending order. Sorting is ignored if used with `showAll` parameter. Valid sort keys include `zone`, `contractId`, `comment`, `endCustomerId`, `lastModifiedDate`, and `lastActivatedDate`. | |
subzoneGrant
|
string | (Optional) If included, limits the list of Edge DNS zones where `subzoneGrants` matches the specified boolean. | |
types
|
string | (Optional) If included, limits the list to one or more Edge DNS zone types, `PRIMARY`, `SECONDARY`, or `ALIAS`. Multiple types may be specified as a comma-separated list. | |
page
|
string | (Optional) Which page of results to return. The first page is page `1`, the default value. | |
pageSize
|
string | (Optional) The number of results per page to return, `25` by default. | |
showAll |