Cloud DNS API, REST: DnsZone.Get
Returns the specified DNS zone.
To get the list of all available DNS zones, make a List request.
HTTP request
GET https://dns.api.cloud.yandex.net/dns/v1/zones/{dnsZoneId}
Path parameters
Field |
Description |
dnsZoneId |
string Required field. ID of the DNS zone to return. To get a DNS zone ID, make a DnsZoneService.List request. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"zone": "string",
"privateVisibility": {
"networkIds": [
"string"
]
},
"publicVisibility": "object",
"deletionProtection": "boolean"
}
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 |
object (map<string, 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. |