response_policy_rules
Creates, updates, deletes, gets or lists a response_policy_rules
resource.
Overview
Name | response_policy_rules |
Type | Resource |
Id | google.dns.response_policy_rules |
Fields
Name | Datatype | Description |
---|---|---|
behavior | string | Answer this query with a behavior rather than DNS data. |
dnsName | string | The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule. |
kind | string | |
localData | object | |
ruleName | string | An identifier for this rule. Must be unique with the ResponsePolicy. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | project, responsePolicy, responsePolicyRule | Fetches the representation of an existing Response Policy Rule. |
list | SELECT | project, responsePolicy | Enumerates all Response Policy Rules associated with a project. |
create | INSERT | project, responsePolicy | Creates a new Response Policy Rule. |
delete | DELETE | project, responsePolicy, responsePolicyRule | Deletes a previously created Response Policy Rule. |
patch | UPDATE | project, responsePolicy, responsePolicyRule | Applies a partial update to an existing Response Policy Rule. |
update | REPLACE | project, responsePolicy, responsePolicyRule | Updates an existing Response Policy Rule. |
SELECT
examples
Enumerates all Response Policy Rules associated with a project.
SELECT
behavior,
dnsName,
kind,
localData,
ruleName
FROM google.dns.response_policy_rules
WHERE project = '{{ project }}'
AND responsePolicy = '{{ responsePolicy }}';
INSERT
example
Use the following StackQL query and manifest file to create a new response_policy_rules
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dns.response_policy_rules (
project,
responsePolicy,
ruleName,
dnsName,
localData,
behavior
)
SELECT
'{{ project }}',
'{{ responsePolicy }}',
'{{ ruleName }}',
'{{ dnsName }}',
'{{ localData }}',
'{{ behavior }}'
;
- name: your_resource_model_name
props:
- name: ruleName
value: string
- name: dnsName
value: string
- name: localData
value:
- name: localDatas
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: behavior
value: string
- name: kind
value: string
UPDATE
example
Updates a response_policy_rules
resource.
/*+ update */
UPDATE google.dns.response_policy_rules
SET
ruleName = '{{ ruleName }}',
dnsName = '{{ dnsName }}',
localData = '{{ localData }}',
behavior = '{{ behavior }}'
WHERE
project = '{{ project }}'
AND responsePolicy = '{{ responsePolicy }}'
AND responsePolicyRule = '{{ responsePolicyRule }}';
REPLACE
example
Replaces all fields in the specified response_policy_rules
resource.
/*+ update */
REPLACE google.dns.response_policy_rules
SET
ruleName = '{{ ruleName }}',
dnsName = '{{ dnsName }}',
localData = '{{ localData }}',
behavior = '{{ behavior }}'
WHERE
project = '{{ project }}'
AND responsePolicy = '{{ responsePolicy }}'
AND responsePolicyRule = '{{ responsePolicyRule }}';
DELETE
example
Deletes the specified response_policy_rules
resource.
/*+ delete */
DELETE FROM google.dns.response_policy_rules
WHERE project = '{{ project }}'
AND responsePolicy = '{{ responsePolicy }}'
AND responsePolicyRule = '{{ responsePolicyRule }}';