Google Cloud DNS Response Policies API

The ResponsePolicies API from Google Cloud DNS — 2 operation(s) for responsepolicies.

GitHub OpenAPI

Operations 6

PUT /dns/v1/projects/{project}/responsePolicies/{responsePolicy} Update responsePolicies #
GET /dns/v1/projects/{project}/responsePolicies/{responsePolicy} Get responsePolicies #
DELETE /dns/v1/projects/{project}/responsePolicies/{responsePolicy} Delete responsePolicies #
PATCH /dns/v1/projects/{project}/responsePolicies/{responsePolicy} Patch responsePolicies #
POST /dns/v1/projects/{project}/responsePolicies Create responsePolicies #
GET /dns/v1/projects/{project}/responsePolicies List responsePolicies #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-cloud-dns:google-cloud-dns-responsepolicies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-cloud-dns-responsepolicies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloud DNS Response Policies API
  version: v1
  description: Generated from Google's published Discovery document for Cloud DNS API (dns v1, revision 20261106). 6 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://dns.googleapis.com
tags:
- name: ResponsePolicies
paths:
  /dns/v1/projects/{project}/responsePolicies/{responsePolicy}:
    put:
      operationId: dns.responsePolicies.update
      summary: Update responsePolicies
      description: Updates an existing Response Policy.
      parameters:
      - name: project
        in: path
        required: true
        description: Identifies the project addressed by this request.
        schema:
          type: string
      - name: responsePolicy
        in: path
        required: true
        description: User assigned name of the Response Policy addressed by this request.
        schema:
          type: string
      - name: clientOperationId
        in: query
        required: false
        description: For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponsePolicy'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsePoliciesUpdateResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/ndev.clouddns.readwrite
      - apiKey: []
      tags:
      - ResponsePolicies
    get:
      operationId: dns.responsePolicies.get
      summary: Get responsePolicies
      description: Fetches the representation of an existing Response Policy.
      parameters:
      - name: project
        in: path
        required: true
        description: Identifies the project addressed by this request.
        schema:
          type: string
      - name: responsePolicy
        in: path
        required: true
        description: User assigned name of the Response Policy addressed by this request.
        schema:
          type: string
      - name: clientOperationId
        in: query
        required: false
        description: For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsePolicy'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/cloud-platform.read-only
        - https://www.googleapis.com/auth/ndev.clouddns.readonly
        - https://www.googleapis.com/auth/ndev.clouddns.readwrite
      - apiKey: []
      tags:
      - ResponsePolicies
    delete:
      operationId: dns.responsePolicies.delete
      summary: Delete responsePolicies
      description: Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.
      parameters:
      - name: project
        in: path
        required: true
        description: Identifies the project addressed by this request.
        schema:
          type: string
      - name: responsePolicy
        in: path
        required: true
        description: User assigned name of the Response Policy addressed by this request.
        schema:
          type: string
      - name: clientOperationId
        in: query
        required: false
        description: For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/ndev.clouddns.readwrite
      - apiKey: []
      tags:
      - ResponsePolicies
    patch:
      operationId: dns.responsePolicies.patch
      summary: Patch responsePolicies
      description: Applies a partial update to an existing Response Policy.
      parameters:
      - name: project
        in: path
        required: true
        description: Identifies the project addressed by this request.
        schema:
          type: string
      - name: responsePolicy
        in: path
        required: true
        description: User assigned name of the response policy addressed by this request.
        schema:
          type: string
      - name: clientOperationId
        in: query
        required: false
        description: For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponsePolicy'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsePoliciesPatchResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/ndev.clouddns.readwrite
      - apiKey: []
      tags:
      - ResponsePolicies
  /dns/v1/projects/{project}/responsePolicies:
    post:
      operationId: dns.responsePolicies.create
      summary: Create responsePolicies
      description: Creates a new Response Policy
      parameters:
      - name: project
        in: path
        required: true
        description: Identifies the project addressed by this request.
        schema:
          type: string
      - name: clientOperationId
        in: query
        required: false
        description: For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponsePolicy'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsePolicy'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/ndev.clouddns.readwrite
      - apiKey: []
      tags:
      - ResponsePolicies
    get:
      operationId: dns.responsePolicies.list
      summary: List responsePolicies
      description: Enumerates all Response Policies associated with a project.
      parameters:
      - name: project
        in: path
        required: true
        description: Identifies the project addressed by this request.
        schema:
          type: string
      - name: maxResults
        in: query
        required: false
        description: Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
        schema:
          type: integer
          format: int32
      - name: pageToken
        in: query
        required: false
        description: Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsePoliciesListResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/cloud-platform.read-only
        - https://www.googleapis.com/auth/ndev.clouddns.readonly
        - https://www.googleapis.com/auth/ndev.clouddns.readwrite
      - apiKey: []
      tags:
      - ResponsePolicies
components:
  schemas:
    ResponsePoliciesPatchResponse:
      type: object
      properties:
        responsePolicy:
          $ref: '#/components/schemas/ResponsePolicy'
    ResponsePoliciesListResponse:
      properties:
        nextPageToken:
          description: This field indicates that more results are available beyond the last page displayed. To fetch the results, make another list request and use this value as your page token. This lets you retrieve the complete contents of a very large collection one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You can't retrieve a consistent snapshot of a collection larger than the maximum page size.
          type: string
        responsePolicies:
          description: The Response Policy resources.
          type: array
          items:
            $ref: '#/components/schemas/ResponsePolicy'
      type: object
    ResponsePoliciesUpdateResponse:
      properties:
        responsePolicy:
          $ref: '#/components/schemas/ResponsePolicy'
      type: object
    ResponsePolicyNetwork:
      properties:
        kind:
          type: string
          readOnly: true
          default: dns#responsePolicyNetwork
        networkUrl:
          description: 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}`
          type: string
      type: object
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    ResponsePolicyGKECluster:
      type: object
      properties:
        kind:
          readOnly: true
          default: dns#responsePolicyGKECluster
          type: string
        gkeClusterName:
          description: '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'
          type: string
    ResponsePolicy:
      description: A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks.
      properties:
        id:
          description: Unique identifier for the resource; defined by the server (output only).
          type: string
          format: int64
        kind:
          type: string
          default: dns#responsePolicy
          readOnly: true
        labels:
          type: object
          description: User labels.
          additionalProperties:
            type: string
        networks:
          description: List of network names specifying networks to which this policy is applied.
          type: array
          items:
            $ref: '#/components/schemas/ResponsePolicyNetwork'
        description:
          description: User-provided description for this Response Policy.
          type: string
        gkeClusters:
          type: array
          description: The list of Google Kubernetes Engine clusters to which this response policy is applied.
          items:
            $ref: '#/components/schemas/ResponsePolicyGKECluster'
        responsePolicyName:
          description: User assigned name for this Response Policy.
          type: string
      type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/ndev.clouddns.readonly: View your DNS records hosted by Google Cloud DNS
            https://www.googleapis.com/auth/ndev.clouddns.readwrite: View and manage your DNS records hosted by Google Cloud DNS
            https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
            https://www.googleapis.com/auth/cloud-platform.read-only: View your data across Google Cloud services and see the email address of your Google Account
externalDocs:
  url: https://cloud.google.com/dns/docs
x-provenance:
  method: harvested
  publisher: Google
  source: https://dns.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)