changes
Creates, updates, deletes, gets or lists a changes
resource.
Overview
Name | changes |
Type | Resource |
Id | google.dns.changes |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Unique identifier for the resource; defined by the server (output only). |
additions | array | Which ResourceRecordSets to add? |
deletions | array | Which ResourceRecordSets to remove? Must match existing data exactly. |
isServing | boolean | If the DNS queries for the zone will be served. |
kind | string | |
startTime | string | The time that this operation was started by the server (output only). This is in RFC3339 text format. |
status | string | Status 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
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | changeId, managedZone, project | Fetches the representation of an existing Change. |
list | SELECT | managedZone, project | Enumerates Changes to a ResourceRecordSet collection. |
create | INSERT | managedZone, project | Atomically 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dns.changes (
managedZone,
project,
additions,
deletions,
startTime,
status,
isServing
)
SELECT
'{{ managedZone }}',
'{{ project }}',
'{{ additions }}',
'{{ deletions }}',
'{{ startTime }}',
'{{ status }}',
{{ isServing }}
;
- name: your_resource_model_name
props:
- name: additions
value:
- - name: name
value: string
- name: type
value: string
- name: ttl
value: integer
- name: rrdatas
value:
- string
- name: signatureRrdatas
value:
- string
- name: routingPolicy
value:
- name: geo
value:
- name: items
value:
- - name: location
value: string
- name: rrdatas
value:
- string
- name: signatureRrdatas
value:
- string
- name: healthCheckedTargets
value:
- name: internalLoadBalancers
value:
- - name: loadBalancerType
value: string
- name: ipAddress
value: string
- name: port
value: string
- name: ipProtocol
value: string
- name: networkUrl
value: string
- name: project
value: string
- name: region
value: string
- name: kind
value: string
- name: externalEndpoints
value:
- string
- name: kind
value: string
- name: enableFencing
value: boolean
- name: kind
value: string
- name: wrr
value:
- name: items
value:
- - name: weight
value: number
- name: rrdatas
value:
- string
- name: signatureRrdatas
value:
- string
- name: kind
value: string
- name: kind
value: string
- name: primaryBackup
value:
- name: trickleTraffic
value: number
- name: kind
value: string
- name: healthCheck
value: string
- name: kind
value: string
- name: kind
value: string
- name: deletions
value:
- - name: name
value: string
- name: type
value: string
- name: ttl
value: integer
- name: rrdatas
value:
- string
- name: signatureRrdatas
value:
- string
- name: kind
value: string
- name: startTime
value: string
- name: id
value: string
- name: status
value: string
- name: isServing
value: boolean
- name: kind
value: string