ManagedZones: testiampermissions

Returns permissions that a caller has on the specified resource. If the resource does not exist, this returns an empty set of permissions, not a `NOT_FOUND` error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

Request

HTTP request

POST https://dns.googleapis.com/dns/v1beta2/managedZones/testiampermissions

Authorization

This request requires authorization with at least one of the following scopes:

Scope
https://www.googleapis.com/auth/ndev.clouddns.readonly
https://www.googleapis.com/auth/ndev.clouddns.readwrite
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-platform.read-only

Request body

In the request body, supply data with the following structure:

{
  "resource": string,
  "permissions": [
    string
  ]
}
Property name Value Description Notes
resource string
permissions[] list

Response

If successful, this method returns a response body with the following structure:

{
  "permissions": [
    string
  ]
}
Property name Value Description Notes
permissions[] list