policies

POST /v1alpha1/policies:test

Changed on

Returns permissions that a caller has on the specified resource.

Request

  • Base URL
    https://prod-tt-sasportal.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/sasportal
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/sasportal
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Request body

resourcestring

Required. The resource for which the permissions are being requested.

permissionsstring[]

The set of permissions to check for the resource.

Response

Successful response

permissionsstring[]

A set of permissions that the caller is allowed.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/sasportal was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/sasportal was removed from the endpoint's security scheme Oauth2c