policies

POST /v1alpha1/policies:set

Changed on

Sets the access control policy on the specified resource. Replaces any existing policy.

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 policy is being specified. This policy replaces any existing policy.

disableNotificationboolean

Optional. Set the field as true to disable the onboarding notification.

Response

Successful response

etagstring byte

The etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to GetPolicy, and systems are expected to put that etag in the request to SetPolicy to ensure that their change will be applied to the same version of the policy. If no etag is provided in the call to GetPolicy, then the existing policy is overwritten blindly.

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