Skip to main content

changes

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

Overview

Namechanges
TypeResource
Idgoogle.dns.changes

Fields

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
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

NameAccessible byRequired ParamsDescription
getSELECTchangeId, managedZone, projectFetches the representation of an existing Change.
listSELECTmanagedZone, projectEnumerates Changes to a ResourceRecordSet collection.
createINSERTmanagedZone, projectAtomically updates the ResourceRecordSet collection.

SELECT examples

Enumerates Changes to a ResourceRecordSet collection.

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

INSERT example

Use the following StackQL query and manifest file to create a new changes resource.

/*+ create */
INSERT INTO google.dns.changes (
managedZone,
project,
additions,
deletions,
startTime,
status,
isServing
)
SELECT
'{{ managedZone }}',
'{{ project }}',
'{{ additions }}',
'{{ deletions }}',
'{{ startTime }}',
'{{ status }}',
{{ isServing }}
;