AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This operation is not supported for directory buckets.

Returns the access control list (ACL) of an object. To use this operation, you must have s3:GetObjectAcl permissions or READ_ACP access to the object. For more information, see Mapping of ACL permissions and access policy permissions in the Amazon S3 User Guide

This functionality is not supported for Amazon S3 on Outposts.

By default, GET returns ACL information about the current version of an object. To return ACL information about a different version, use the versionId subresource.

If your bucket uses the bucket owner enforced setting for S3 Object Ownership, requests to read ACLs are still supported and return the bucket-owner-full-control ACL with the owner being the account that created the bucket. For more information, see Controlling object ownership and disabling ACLs in the Amazon S3 User Guide.

The following operations are related to GetObjectAcl:

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to GetObjectAclAsync.

Namespace: Amazon.S3
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z

Syntax

C#
public abstract GetObjectAclResponse GetObjectAcl(
         GetObjectAclRequest request
)

Parameters

request
Type: Amazon.S3.Model.GetObjectAclRequest

Container for the necessary parameters to execute the GetObjectAcl service method.

Return Value


The response from the GetObjectAcl service method, as returned by S3.

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also