Skip to main content

changes

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

Overview

Namechanges
TypeResource
Idgoogle.dns.changes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstringUnique identifier for the resource; defined by the server (output only).
additionsarrayWhich ResourceRecordSets to add?
deletionsarrayWhich ResourceRecordSets to remove? Must match existing data exactly.
isServingbooleanIf the DNS queries for the zone will be served.
kindstring (default: dns#change)
startTimestringThe time that this operation was started by the server (output only). This is in RFC3339 text format.
statusstringStatus of the operation (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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, managedZone, changeIdclientOperationIdFetches the representation of an existing Change.
listselectproject, managedZonemaxResults, pageToken, sortBy, sortOrderEnumerates Changes to a ResourceRecordSet collection.
createinsertproject, managedZoneclientOperationIdAtomically updates the ResourceRecordSet collection.

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

SELECT examples

Fetches the representation of an existing Change.

SELECT
id,
additions,
deletions,
isServing,
kind,
startTime,
status
FROM google.dns.changes
WHERE project = '{{ project }}' -- required
AND managedZone = '{{ managedZone }}' -- required
AND changeId = '{{ changeId }}' -- required
AND clientOperationId = '{{ clientOperationId }}';

INSERT examples

Atomically updates the ResourceRecordSet collection.

INSERT INTO google.dns.changes (
data__additions,
data__deletions,
data__startTime,
data__id,
data__status,
data__isServing,
data__kind,
project,
managedZone,
clientOperationId
)
SELECT
'{{ additions }}',
'{{ deletions }}',
'{{ startTime }}',
'{{ id }}',
'{{ status }}',
{{ isServing }},
'{{ kind }}',
'{{ project }}',
'{{ managedZone }}',
'{{ clientOperationId }}'
RETURNING
id,
additions,
deletions,
isServing,
kind,
startTime,
status
;