v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-134069129.0 KB
policies

Creates a new policy.

post/dns/v1/projects/{project}/policies

Path parameters

projectstring required

Identifies the project addressed by this request.

Query parameters

clientOperationIdstring

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

Request body

idstring uint64

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

namestring

User-assigned name for this policy.

enableLoggingboolean

Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.

enableInboundForwardingboolean

Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.

descriptionstring

A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.

kindstring

Response

Successful response