Cloud DNS API, REST: DnsZone.List
Retrieves the list of DNS zones in the specified folder.
HTTP request
GET https://dns.api.cloud.yandex.net/dns/v1/zones
Query parameters
Field |
Description |
folderId |
string Required field. ID of the folder to list DNS zones in. To get the folder ID use a yandex.cloud.resourcemanager.v1.FolderService.List request. |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
filter |
string A filter expression that filters DNS zones listed in the response. The expression must specify:
|
Response
HTTP Code: 200 - OK
{
"dnsZones": [
{
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "string",
"zone": "string",
"privateVisibility": {
"networkIds": [
"string"
]
},
"publicVisibility": "object",
"deletionProtection": "boolean"
}
],
"nextPageToken": "string"
}
Field |
Description |
dnsZones[] |
List of DNS zones in the specified folder. |
nextPageToken |
string Token for getting the next page of the list. If the number of results is greater than Each subsequent page will have its own |
DnsZone
A DNS zone. For details about the concept, see DNS zones.
Field |
Description |
id |
string ID of the DNS zone. Generated at creation time. |
folderId |
string ID of the folder that the DNS zone belongs to. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
name |
string Name of the DNS zone. |
description |
string Description of the DNS zone. |
labels |
string DNS zone labels as |
zone |
string DNS zone suffix. |
privateVisibility |
Privately visible zone settings. |
publicVisibility |
object Publicly visible zone settings. |
deletionProtection |
boolean Prevents accidental zone removal. |
PrivateVisibility
Configuration for privately visible zones.
Field |
Description |
networkIds[] |
string Network IDs. |