For a list of methods for this resource, see the end of this page.
Resource representations
A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks.
{ "kind": "dns#responsePolicy", "id": long, "responsePolicyName": string, "description": string, "networks": [ { "kind": "dns#responsePolicyNetwork", "networkUrl": string } ], "gkeClusters": [ { "kind": "dns#responsePolicyGKECluster", "gkeClusterName": string } ], "labels": { (key): string } }
Property name | Value | Description | Notes |
---|---|---|---|
description |
string |
User-provided description for this Response Policy. | |
gkeClusters[] |
list |
The list of Google Kubernetes Engine clusters to which this response policy is applied. | |
gkeClusters[].gkeClusterName |
string |
The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects/*/locations/*/clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get | |
gkeClusters[].kind |
string |
Identifies what kind of resource this is. Value: the fixed string "dns#responsePolicyGKECluster" . |
|
id |
long |
Unique identifier for the resource; defined by the server (output only). | |
kind |
string |
Identifies what kind of resource this is. Value: the fixed string "dns#responsePolicy" . |
|
labels |
object |
User labels. | |
labels.(key) |
string |
||
networks[] |
list |
List of network names specifying networks to which this policy is applied. | |
networks[].kind |
string |
Identifies what kind of resource this is. Value: the fixed string "dns#responsePolicyNetwork" . |
|
networks[].networkUrl |
string |
The fully qualified URL of the VPC network to bind to. This should be formatted like https://!www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} | |
responsePolicyName |
string |
User assigned name for this Response Policy. |
Methods
- create
- Creates a new Response Policy
- delete
- Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.
- get
- Fetches the representation of an existing Response Policy.
- list
- Enumerates all Response Policies associated with a project.
- patch
- Applies a partial update to an existing Response Policy.
- update
- Updates an existing Response Policy.