Skip to main content

dns_zones

Creates, updates, deletes, gets or lists a dns_zones resource.

Overview

Namedns_zones
TypeResource
Idgoogle.apigee.dns_zones

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Unique name for the resource. Defined by the server Format: "organizations/{organization}/dnsZones/{dns_zone}".
createTimestring (google-datetime)Output only. The time that this resource was created on the server.
descriptionstringRequired. Description of the resource. String of at most 1024 characters associated with this resource for the user's convenience.
domainstringRequired. The domain name for hosts in this private zone, for instance "example.com.".
peeringConfigobjectDNS PEERING zone configuration. (id: GoogleCloudApigeeV1DnsZonePeeringConfig)
statestringOutput only. State of the DNS Peering. Values other than ACTIVE mean the resource is not ready to use.
updateTimestring (google-datetime)Output only. The time that this resource was updated on the server.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_dns_zones_getselectorganizationsId, dnsZonesIdFetches the representation of an existing DNS zone.
organizations_dns_zones_listselectorganizationsIdpageSize, pageTokenEnumerates DNS zones that have been created but not yet deleted.
organizations_dns_zones_createinsertorganizationsIddnsZoneIdCreates a new DNS zone.
organizations_dns_zones_deletedeleteorganizationsId, dnsZonesIdDeletes a previously created DNS zone.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
dnsZonesIdstring
organizationsIdstring
dnsZoneIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Fetches the representation of an existing DNS zone.

SELECT
name,
createTime,
description,
domain,
peeringConfig,
state,
updateTime
FROM google.apigee.dns_zones
WHERE organizationsId = '{{ organizationsId }}' -- required
AND dnsZonesId = '{{ dnsZonesId }}' -- required;

INSERT examples

Creates a new DNS zone.

INSERT INTO google.apigee.dns_zones (
data__name,
data__description,
data__domain,
data__peeringConfig,
organizationsId,
dnsZoneId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ domain }}',
'{{ peeringConfig }}',
'{{ organizationsId }}',
'{{ dnsZoneId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a previously created DNS zone.

DELETE FROM google.apigee.dns_zones
WHERE organizationsId = '{{ organizationsId }}' --required
AND dnsZonesId = '{{ dnsZonesId }}' --required;