Skip to main content

managed_zone_operations

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

Overview

Namemanaged_zone_operations
TypeResource
Idgoogle.dns.managed_zone_operations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstringUnique identifier for the resource. This is the client_operation_id if the client specified it when the mutation was initiated, otherwise, it is generated by the server. The name must be 1-63 characters long and match the regular expression [-a-z0-9]? (output only)
dnsKeyContextobjectOnly populated if the operation targeted a DnsKey (output only). (id: OperationDnsKeyContext)
kindstring (default: dns#operation)
startTimestringThe time that this operation was started by the server. This is in RFC3339 text format (output only).
statusstringStatus of the operation. Can be one of the following: "PENDING" or "DONE" (output only). A status of "DONE" means that the request to update the authoritative servers has been sent, but the servers might not be updated yet.
typestringType of the operation. Operations include insert, update, and delete (output only).
userstringUser who requested the operation, for example: user@example.com. cloud-dns-system for operations automatically done by the system. (output only)
zoneContextobjectOnly populated if the operation targeted a ManagedZone (output only). (id: OperationManagedZoneContext)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, managedZone, operationclientOperationIdFetches the representation of an existing Operation.
listselectproject, managedZonemaxResults, pageToken, sortByEnumerates Operations for the given ManagedZone.

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
managedZonestring
operationstring
projectstring
clientOperationIdstring
maxResultsinteger (int32)
pageTokenstring
sortBystring

SELECT examples

Fetches the representation of an existing Operation.

SELECT
id,
dnsKeyContext,
kind,
startTime,
status,
type,
user,
zoneContext
FROM google.dns.managed_zone_operations
WHERE project = '{{ project }}' -- required
AND managedZone = '{{ managedZone }}' -- required
AND operation = '{{ operation }}' -- required
AND clientOperationId = '{{ clientOperationId }}';