- Resource: ManagedZone
- Methods
Resource: ManagedZone
A zone is a subtree of the DNS namespace under one administrative responsibility. A ManagedZone is a resource that represents a DNS zone hosted by the Cloud DNS service.
JSON representation |
---|
{ "name" : string , "dnsName" : string , "description" : string , "id" : string , "nameServers" : [ string ] , "creationTime" : string , "dnssecConfig" : { object ( |
Fields | |
---|---|
name
|
User assigned name for this resource. Must be unique within the project. The name must be 1-63 characters long, must begin with a letter, end with a letter or digit, and only contain lowercase letters, digits or dashes. |
dns
|
The DNS name of this managed zone, for instance "example.com.". |
description
|
A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the managed zone's function. |
id
|
Unique identifier for the resource; defined by the server (output only) |
name
|
Delegate your managedZone to these virtual name servers; defined by the server (output only) |
creation
|
The time that this resource was created on the server. This is in RFC3339 text format. Output only. |
dnssec
|
DNSSEC configuration. |
name
|
Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet is a set of DNS name servers that all host the same ManagedZones. Most users leave this field unset. If you need to use this field, contact your account team. |
visibility
|
The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources. |
private
|
For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from. |
forwarding
|
The presence for this field indicates that outbound forwarding is enabled for this zone. The value of this field contains the set of destinations to forward to. |
labels
|
User labels. An object containing a list of |
peering
|
The presence of this field indicates that DNS Peering is enabled for this zone. The value of this field contains the network to peer with. |
reverse
|
The presence of this field indicates that this is a managed reverse lookup zone and Cloud DNS resolves reverse lookup queries using automatically configured records for VPC resources. This only applies to networks listed under privateVisibilityConfig. |
service
|
This field links to the associated service directory namespace. Do not set this field for public zones or forwarding zones. |
cloud
|
|
kind
|
|
DnsSecConfig
JSON representation |
---|
{ "state" : enum ( |
Fields | |
---|---|
state
|
Specifies whether DNSSEC is enabled, and what mode it is in. |
default
|
Specifies parameters for generating initial DnsKeys for this ManagedZone. Can only be changed while the state is OFF. |
non
|
Specifies the mechanism for authenticated denial-of-existence responses. Can only be changed while the state is OFF. |
kind
|
|
State
Enums | |
---|---|
off
|
DNSSEC is disabled; the zone is not signed. |
on
|
DNSSEC is enabled; the zone is signed and fully managed. |
transfer
|
DNSSEC is enabled, but in a "transfer" mode. |
NonExistenceType
Enums | |
---|---|
nsec
|
Indicates that Cloud DNS will sign records in the managed zone according to RFC 4034 and respond with NSEC records for names that do not exist. |
nsec3
|
Indicates that Cloud DNS will sign records in the managed zone according to RFC 5155 and respond with NSEC3 records for names that do not exist. |
Visibility
Enums | |
---|---|
public
|
Indicates that records in this zone can be queried from the public internet. |
private
|
Indicates that records in this zone cannot be queried from the public internet. Access to private zones depends on the zone configuration. |
PrivateVisibilityConfig
JSON representation |
---|
{ "networks" : [ { object ( |
Fields | |
---|---|
networks[]
|
The list of VPC networks that can see this zone. |
gke
|
The list of Google Kubernetes Engine clusters that can see this zone. |
kind
|
|
Network
JSON representation |
---|
{ "networkUrl" : string , "kind" : string } |
Fields | |
---|---|
network
|
The fully qualified URL of the VPC network to bind to. Format this URL like |
kind
|
|
GKECluster
JSON representation |
---|
{ "gkeClusterName" : string , "kind" : string } |
Fields | |
---|---|
gke
|
The resource name of the cluster to bind this ManagedZone to. This should be specified in the format like: projects/*/locations/*/clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get |
kind
|
|
ForwardingConfig
JSON representation |
---|
{
"targetNameServers"
:
[
{
object (
|
Fields | |
---|---|
target
|
managedZones.list of target name servers to forward to. Cloud DNS selects the best available name server if more than one target is given. |
kind
|
|
NameServerTarget
JSON representation |
---|
{
"ipv4Address"
:
string
,
"forwardingPath"
:
enum (
|
Fields | |
---|---|
ipv4
|
IPv4 address of a target name server. |
forwarding
|
Forwarding path for this NameServerTarget. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on IP address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target. |
ipv6
|
IPv6 address of a target name server. Does not accept both fields (ipv4 & ipv6) being populated. Public preview as of November 2022. |
kind
|
|
ForwardingPath
Enums | |
---|---|
default
|
Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses forward to the target through the VPC and non-RFC1918 addresses forward to the target through the internet |
private
|
Cloud DNS always forwards to this target through the VPC. |
PeeringConfig
JSON representation |
---|
{
"targetNetwork"
:
{
object (
|
Fields | |
---|---|
target
|
The network with which to peer. |
kind
|
|
TargetNetwork
JSON representation |
---|
{ "networkUrl" : string , "deactivateTime" : string , "kind" : string } |
Fields | |
---|---|
network
|
The fully qualified URL of the VPC network to forward queries to. This should be formatted like |
deactivate
|
The time at which the zone was deactivated, in RFC 3339 date-time format. An empty string indicates that the peering connection is active. The producer network can deactivate a zone. The zone is automatically deactivated if the producer network that the zone targeted is deleted. Output only. |
kind
|
|
ReverseLookupConfig
JSON representation |
---|
{ "kind" : string } |
Fields | |
---|---|
kind
|
|
ServiceDirectoryConfig
Contains information about Service Directory-backed zones.
JSON representation |
---|
{
"namespace"
:
{
object (
|
Fields | |
---|---|
namespace
|
Contains information about the namespace associated with the zone. |
kind
|
|
Namespace
JSON representation |
---|
{ "namespaceUrl" : string , "deletionTime" : string , "kind" : string } |
Fields | |
---|---|
namespace
|
The fully qualified URL of the namespace associated with the zone. Format must be |
deletion
|
The time that the namespace backing this zone was deleted; an empty string if it still exists. This is in RFC3339 text format. Output only. |
kind
|
|
CloudLoggingConfig
Cloud Logging configurations for publicly visible zones.
JSON representation |
---|
{ "enableLogging" : boolean , "kind" : string } |
Fields | |
---|---|
enable
|
If set, enable query logging for this ManagedZone. False by default, making logging opt-in. |
kind
|
|
Methods |
|
---|---|
|
Creates a new ManagedZone. |
|
Deletes a previously created ManagedZone. |
|
Fetches the representation of an existing ManagedZone. |
|
Gets the access control policy for a resource. |
|
Enumerates ManagedZones that have been created but not yet deleted. |
|
Applies a partial update to an existing ManagedZone. |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |
|
Updates an existing ManagedZone. |