REST Resource: responsePolicies

Resource: ResponsePolicy

A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks.

JSON representation
{
  "id": string,
  "responsePolicyName": string,
  "description": string,
  "networks": [
    {
      object (Network)
    }
  ],
  "gkeClusters": [
    {
      object (GKECluster)
    }
  ],
  "labels": {
    string: string,
    ...
  },
  "kind": string
}
Fields
id

string (int64 format)

Unique identifier for the resource; defined by the server (output only).

responsePolicyName

string

User assigned name for this Response Policy.

description

string

User-provided description for this Response Policy.

networks[]

object (Network)

responsePolicies.list of network names specifying networks to which this policy is applied.

gkeClusters[]

object (GKECluster)

The list of Google Kubernetes Engine clusters to which this response policy is applied.

labels

map (key: string, value: string)

User labels.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

kind

string

Network

JSON representation
{
  "networkUrl": string,
  "kind": string
}
Fields
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}

kind

string

GKECluster

JSON representation
{
  "gkeClusterName": string,
  "kind": string
}
Fields
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

kind

string

Methods

create

Creates a new Response Policy

delete

Deletes a previously created Response Policy.

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.