Method: policies.update

Updates an existing Policy.

HTTP request

PUT https://dns.googleapis.com/dns/v1/projects/{project}/policies/{policy}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Identifies the project addressed by this request.

policy

string

User given friendly name of the policy addressed by this request.

Query parameters

Parameters
clientOperationId

string

For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.

Request body

The request body contains an instance of Policy.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "policy": {
    object (Policy)
  }
}
Fields
policy

object (Policy)

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/ndev.clouddns.readwrite

For more information, see the Authentication Overview.