1. Packages
  2. Google Cloud Native
  3. API Docs
  4. storage
  5. storage/v1
  6. getObjectAccessControl

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.storage/v1.getObjectAccessControl

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Returns the ACL entry for the specified entity on the specified object.

Using getObjectAccessControl

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getObjectAccessControl(args: GetObjectAccessControlArgs, opts?: InvokeOptions): Promise<GetObjectAccessControlResult>
function getObjectAccessControlOutput(args: GetObjectAccessControlOutputArgs, opts?: InvokeOptions): Output<GetObjectAccessControlResult>
Copy
def get_object_access_control(bucket: Optional[str] = None,
                              entity: Optional[str] = None,
                              generation: Optional[str] = None,
                              object: Optional[str] = None,
                              user_project: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetObjectAccessControlResult
def get_object_access_control_output(bucket: Optional[pulumi.Input[str]] = None,
                              entity: Optional[pulumi.Input[str]] = None,
                              generation: Optional[pulumi.Input[str]] = None,
                              object: Optional[pulumi.Input[str]] = None,
                              user_project: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetObjectAccessControlResult]
Copy
func LookupObjectAccessControl(ctx *Context, args *LookupObjectAccessControlArgs, opts ...InvokeOption) (*LookupObjectAccessControlResult, error)
func LookupObjectAccessControlOutput(ctx *Context, args *LookupObjectAccessControlOutputArgs, opts ...InvokeOption) LookupObjectAccessControlResultOutput
Copy

> Note: This function is named LookupObjectAccessControl in the Go SDK.

public static class GetObjectAccessControl 
{
    public static Task<GetObjectAccessControlResult> InvokeAsync(GetObjectAccessControlArgs args, InvokeOptions? opts = null)
    public static Output<GetObjectAccessControlResult> Invoke(GetObjectAccessControlInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetObjectAccessControlResult> getObjectAccessControl(GetObjectAccessControlArgs args, InvokeOptions options)
public static Output<GetObjectAccessControlResult> getObjectAccessControl(GetObjectAccessControlArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:storage/v1:getObjectAccessControl
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Bucket This property is required. string
Entity This property is required. string
Object This property is required. string
Generation string
UserProject string
Bucket This property is required. string
Entity This property is required. string
Object This property is required. string
Generation string
UserProject string
bucket This property is required. String
entity This property is required. String
object This property is required. String
generation String
userProject String
bucket This property is required. string
entity This property is required. string
object This property is required. string
generation string
userProject string
bucket This property is required. str
entity This property is required. str
object This property is required. str
generation str
user_project str
bucket This property is required. String
entity This property is required. String
object This property is required. String
generation String
userProject String

getObjectAccessControl Result

The following output properties are available:

Bucket string
The name of the bucket.
Domain string
The domain associated with the entity, if any.
Email string
The email address associated with the entity, if any.
Entity string
The entity holding the permission, in one of the following forms:

  • user-userId
  • user-email
  • group-groupId
  • group-email
  • domain-domain
  • project-team-projectId
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user liz@example.com would be user-liz@example.com.
  • The group example@googlegroups.com would be group-example@googlegroups.com.
  • To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
EntityId string
The ID for the entity, if any.
Etag string
HTTP 1.1 Entity tag for the access-control entry.
Generation string
The content generation of the object, if applied to an object.
Kind string
The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
Object string
The name of the object, if applied to an object.
ProjectTeam Pulumi.GoogleNative.Storage.V1.Outputs.ObjectAccessControlProjectTeamResponse
The project team associated with the entity, if any.
Role string
The access permission for the entity.
SelfLink string
The link to this access-control entry.
Bucket string
The name of the bucket.
Domain string
The domain associated with the entity, if any.
Email string
The email address associated with the entity, if any.
Entity string
The entity holding the permission, in one of the following forms:

  • user-userId
  • user-email
  • group-groupId
  • group-email
  • domain-domain
  • project-team-projectId
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user liz@example.com would be user-liz@example.com.
  • The group example@googlegroups.com would be group-example@googlegroups.com.
  • To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
EntityId string
The ID for the entity, if any.
Etag string
HTTP 1.1 Entity tag for the access-control entry.
Generation string
The content generation of the object, if applied to an object.
Kind string
The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
Object string
The name of the object, if applied to an object.
ProjectTeam ObjectAccessControlProjectTeamResponse
The project team associated with the entity, if any.
Role string
The access permission for the entity.
SelfLink string
The link to this access-control entry.
bucket String
The name of the bucket.
domain String
The domain associated with the entity, if any.
email String
The email address associated with the entity, if any.
entity String
The entity holding the permission, in one of the following forms:

  • user-userId
  • user-email
  • group-groupId
  • group-email
  • domain-domain
  • project-team-projectId
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user liz@example.com would be user-liz@example.com.
  • The group example@googlegroups.com would be group-example@googlegroups.com.
  • To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
entityId String
The ID for the entity, if any.
etag String
HTTP 1.1 Entity tag for the access-control entry.
generation String
The content generation of the object, if applied to an object.
kind String
The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
object String
The name of the object, if applied to an object.
projectTeam ObjectAccessControlProjectTeamResponse
The project team associated with the entity, if any.
role String
The access permission for the entity.
selfLink String
The link to this access-control entry.
bucket string
The name of the bucket.
domain string
The domain associated with the entity, if any.
email string
The email address associated with the entity, if any.
entity string
The entity holding the permission, in one of the following forms:

  • user-userId
  • user-email
  • group-groupId
  • group-email
  • domain-domain
  • project-team-projectId
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user liz@example.com would be user-liz@example.com.
  • The group example@googlegroups.com would be group-example@googlegroups.com.
  • To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
entityId string
The ID for the entity, if any.
etag string
HTTP 1.1 Entity tag for the access-control entry.
generation string
The content generation of the object, if applied to an object.
kind string
The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
object string
The name of the object, if applied to an object.
projectTeam ObjectAccessControlProjectTeamResponse
The project team associated with the entity, if any.
role string
The access permission for the entity.
selfLink string
The link to this access-control entry.
bucket str
The name of the bucket.
domain str
The domain associated with the entity, if any.
email str
The email address associated with the entity, if any.
entity str
The entity holding the permission, in one of the following forms:

  • user-userId
  • user-email
  • group-groupId
  • group-email
  • domain-domain
  • project-team-projectId
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user liz@example.com would be user-liz@example.com.
  • The group example@googlegroups.com would be group-example@googlegroups.com.
  • To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
entity_id str
The ID for the entity, if any.
etag str
HTTP 1.1 Entity tag for the access-control entry.
generation str
The content generation of the object, if applied to an object.
kind str
The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
object str
The name of the object, if applied to an object.
project_team ObjectAccessControlProjectTeamResponse
The project team associated with the entity, if any.
role str
The access permission for the entity.
self_link str
The link to this access-control entry.
bucket String
The name of the bucket.
domain String
The domain associated with the entity, if any.
email String
The email address associated with the entity, if any.
entity String
The entity holding the permission, in one of the following forms:

  • user-userId
  • user-email
  • group-groupId
  • group-email
  • domain-domain
  • project-team-projectId
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user liz@example.com would be user-liz@example.com.
  • The group example@googlegroups.com would be group-example@googlegroups.com.
  • To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
entityId String
The ID for the entity, if any.
etag String
HTTP 1.1 Entity tag for the access-control entry.
generation String
The content generation of the object, if applied to an object.
kind String
The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
object String
The name of the object, if applied to an object.
projectTeam Property Map
The project team associated with the entity, if any.
role String
The access permission for the entity.
selfLink String
The link to this access-control entry.

Supporting Types

ObjectAccessControlProjectTeamResponse

ProjectNumber This property is required. string
The project number.
Team This property is required. string
The team.
ProjectNumber This property is required. string
The project number.
Team This property is required. string
The team.
projectNumber This property is required. String
The project number.
team This property is required. String
The team.
projectNumber This property is required. string
The project number.
team This property is required. string
The team.
project_number This property is required. str
The project number.
team This property is required. str
The team.
projectNumber This property is required. String
The project number.
team This property is required. String
The team.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi