Cloud DNS API, gRPC: DnsZoneService.List
Retrieves the list of DNS zones in the specified folder.
gRPC request
rpc List (ListDnsZonesRequest) returns (ListDnsZonesResponse)
ListDnsZonesRequest
{
"folder_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string"
}
Field |
Description |
folder_id |
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. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
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:
|
ListDnsZonesResponse
{
"dns_zones": [
{
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"zone": "string",
"private_visibility": {
"network_ids": [
"string"
]
},
"public_visibility": "PublicVisibility",
"deletion_protection": "bool"
}
],
"next_page_token": "string"
}
Field |
Description |
dns_zones[] |
List of DNS zones in the specified folder. |
next_page_token |
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. |
folder_id |
string ID of the folder that the DNS zone belongs to. |
created_at |
Creation timestamp. |
name |
string Name of the DNS zone. |
description |
string Description of the DNS zone. |
labels |
object (map<string, string>) DNS zone labels as |
zone |
string DNS zone suffix. |
private_visibility |
Privately visible zone settings. |
public_visibility |
Publicly visible zone settings. |
deletion_protection |
bool Prevents accidental zone removal. |
PrivateVisibility
Configuration for privately visible zones.
Field |
Description |
network_ids[] |
string Network IDs. |
PublicVisibility
Configuration for publicly visible zones.
Field |
Description |
Empty |