Resource: AccessPolicy
An IAM access policy resource.
| JSON representation |
|---|
{
"name": string,
"uid": string,
"etag": string,
"displayName": string,
"annotations": {
string: string,
...
},
"createTime": string,
"updateTime": string,
"details": {
object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the access policy. The following formats are supported:
|
uid |
Output only. The globally unique ID of the access policy. |
etag |
Optional. The etag for the access policy. If this is provided on update, it must match the server's etag. |
displayName |
Optional. The description of the access policy. Must be less than or equal to 63 characters. |
annotations |
Optional. User defined annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations An object containing a list of |
createTime |
Output only. The time when the access policy was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The time when the access policy was most recently updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
details |
Optional. The details for the access policy. |
AccessPolicyDetails
Access policy details.
| JSON representation |
|---|
{
"rules": [
{
object ( |
| Fields | |
|---|---|
rules[] |
Required. A list of access policy rules. |
AccessPolicyRule
Access Policy Rule that determines the behavior of the policy.
| JSON representation |
|---|
{ "principals": [ string ], "excludedPrincipals": [ string ], "operation": { object ( |
| Fields | |
|---|---|
principals[] |
Required. The identities for which this rule's effect governs using one or more permissions on Google Cloud resources. This field can contain the following values:
If an identifier that was previously set on a policy is soft deleted, then calls to read that policy will return the identifier with a deleted prefix. Users cannot set identifiers with this syntax.
|
excludedPrincipals[] |
Optional. The identities that are excluded from the access policy rule, even if they are listed in the |
operation |
Required. Attributes that are used to determine whether this rule applies to a request. |
conditions |
Optional. The conditions that determine whether this rule applies to a request. Conditions are identified by their key, which is the FQDN of the service that they are relevant to. For example: Each rule is evaluated independently. If this rule does not apply to a request, other rules might still apply. Currently supported keys are as follows:
An object containing a list of |
description |
Optional. Customer specified description of the rule. Must be less than or equal to 256 characters. |
effect |
Required. The effect of the rule. |
Effect
An effect to describe the access relationship.
| Enums | |
|---|---|
EFFECT_UNSPECIFIED |
The effect is unspecified. |
DENY |
The policy will deny access if it evaluates to true. |
ALLOW |
The policy will grant access if it evaluates to true. |
Operation
Attributes that are used to determine whether this rule applies to a request.
| JSON representation |
|---|
{ "permissions": [ string ], "excludedPermissions": [ string ] } |
| Fields | |
|---|---|
permissions[] |
Optional. The permissions that are explicitly affected by this rule. Each permission uses the format
|
excludedPermissions[] |
Optional. Specifies the permissions that this rule excludes from the set of affected permissions given by The excluded permissions can be specified using the same syntax as |
Methods |
|
|---|---|
|
Creates an access policy, and returns a long running operation. |
|
Deletes an access policy. |
|
Gets an access policy. |
|
Lists access policies. |
|
Updates an access policy. |
|
Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings permission on that policy. |