Cloud DNS API, gRPC: DnsZoneService.Get
Returns the specified DNS zone.
To get the list of all available DNS zones, make a List request.
gRPC request
rpc Get (GetDnsZoneRequest) returns (DnsZone)
GetDnsZoneRequest
{
"dns_zone_id": "string"
}
Field |
Description |
dns_zone_id |
string Required field. ID of the DNS zone to return. To get a DNS zone ID, make a DnsZoneService.List request. |
DnsZone
{
"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"
}
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 |