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
{
"dnsZoneId": "string"
}
Field |
Description |
dnsZoneId |
string Required field. ID of the DNS zone to return. To get a DNS zone ID, make a DnsZoneService.List request. |
DnsZone
{
"id": "string",
"folderId": "string",
"createdAt": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "string",
"zone": "string",
"privateVisibility": {
"networkIds": [
"string"
]
},
"publicVisibility": "PublicVisibility",
"deletionProtection": "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. |
folderId |
string ID of the folder that the DNS zone belongs to. |
createdAt |
Creation timestamp. |
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 |
Publicly visible zone settings. |
deletionProtection |
bool Prevents accidental zone removal. |
PrivateVisibility
Configuration for privately visible zones.
Field |
Description |
networkIds[] |
string Network IDs. |
PublicVisibility
Configuration for publicly visible zones.
Field |
Description |
Empty |