resource_record_sets
Creates, updates, deletes, gets or lists a resource_record_sets
resource.
Overview
Name | resource_record_sets |
Type | Resource |
Id | google.dns.resource_record_sets |
Fields
Name | Datatype | Description |
---|---|---|
name | string | For example, www.example.com. |
kind | string | |
routingPolicy | object | A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection. |
rrdatas | array | As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. |
signatureRrdatas | array | As defined in RFC 4034 (section 3.2). |
ttl | integer | Number of seconds that this ResourceRecordSet can be cached by resolvers. |
type | string | The identifier of a supported record type. See the list of Supported DNS record types. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | managedZone, name, project, type | Fetches the representation of an existing ResourceRecordSet. |
list | SELECT | managedZone, project | Enumerates ResourceRecordSets that you have created but not yet deleted. |
create | INSERT | managedZone, project | Creates a new ResourceRecordSet. |
delete | DELETE | managedZone, name, project, type | Deletes a previously created ResourceRecordSet. |
patch | UPDATE | managedZone, name, project, type | Applies a partial update to an existing ResourceRecordSet. |
SELECT
examples
Enumerates ResourceRecordSets that you have created but not yet deleted.
SELECT
name,
kind,
routingPolicy,
rrdatas,
signatureRrdatas,
ttl,
type
FROM google.dns.resource_record_sets
WHERE managedZone = '{{ managedZone }}'
AND project = '{{ project }}';
INSERT
example
Use the following StackQL query and manifest file to create a new resource_record_sets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dns.resource_record_sets (
managedZone,
project,
name,
type,
ttl,
rrdatas,
signatureRrdatas,
routingPolicy
)
SELECT
'{{ managedZone }}',
'{{ project }}',
'{{ name }}',
'{{ type }}',
'{{ ttl }}',
'{{ rrdatas }}',
'{{ signatureRrdatas }}',
'{{ routingPolicy }}'
;
- name: your_resource_model_name
props:
- 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
UPDATE
example
Updates a resource_record_sets
resource.
/*+ update */
UPDATE google.dns.resource_record_sets
SET
name = '{{ name }}',
type = '{{ type }}',
ttl = '{{ ttl }}',
rrdatas = '{{ rrdatas }}',
signatureRrdatas = '{{ signatureRrdatas }}',
routingPolicy = '{{ routingPolicy }}'
WHERE
managedZone = '{{ managedZone }}'
AND name = '{{ name }}'
AND project = '{{ project }}'
AND type = '{{ type }}';
DELETE
example
Deletes the specified resource_record_sets
resource.
/*+ delete */
DELETE FROM google.dns.resource_record_sets
WHERE managedZone = '{{ managedZone }}'
AND name = '{{ name }}'
AND project = '{{ project }}'
AND type = '{{ type }}';