Skip to main content

policies

Creates, updates, deletes, gets or lists a policies resource.

Overview

Namepolicies
TypeResource
Idgoogle.sasportal.policies

Fields

NameDatatypeDescription
assignmentsarrayList of assignments
etagstringThe 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.

Methods

NameAccessible byRequired ParamsDescription
policies_getSELECTGets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
policies_setEXECSets the access control policy on the specified resource. Replaces any existing policy.
policies_testEXECReturns permissions that a caller has on the specified resource.

SELECT examples

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

SELECT
assignments,
etag
FROM google.sasportal.policies
;