ResponsePolicyRules

For a list of methods for this resource, see the end of this page.

Resource representations

A Response Policy Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the dns_name field with the longest matching suffix.

{
  "kind": "dns#responsePolicyRule",
  "ruleName": string,
  "dnsName": string,
  "localData": {
    "localDatas": [
      resourceRecordSets Resource
    ]
  },
  "behavior": string
}
Property name Value Description Notes
behavior string Answer this query with a behavior rather than DNS data.

Acceptable values are:
  • "behaviorUnspecified"
  • "bypassResponsePolicy"
dnsName string The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
kind string Identifies what kind of resource this is. Value: the fixed string "dns#responsePolicyRule".
localData nested object Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
localData.localDatas[] list All resource record sets for this selector, one per resource record type. The name must match the dns_name.
ruleName string An identifier for this rule. Must be unique with the ResponsePolicy.

Methods

create
Creates a new Response Policy Rule.
delete
Deletes a previously created Response Policy Rule.
get
Fetches the representation of an existing Response Policy Rule.
list
Enumerates all Response Policy Rules associated with a project.
patch
Applies a partial update to an existing Response Policy Rule.
update
Updates an existing Response Policy Rule.