policies
Creates, updates, deletes, gets or lists a policies
resource.
Overview
Name | policies |
Type | Resource |
Id | google.prod_tt_sasportal.policies |
Fields
Name | Datatype | Description |
---|---|---|
assignments | array | List of assignments |
etag | string | 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. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
policies_get | SELECT |
| Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. |
policies_set | EXEC |
| Sets the access control policy on the specified resource. Replaces any existing policy. |
policies_test | EXEC |
| Returns 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.prod_tt_sasportal.policies
;