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:
You must URL encode any signed header values that contain spaces. For example, if your header value is my file.txt, containing two spaces after my, you must URL encode this value to my%20%20file.txt.
Example
Use a bare-bones client and the command you need to make an API call.
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:GetObjectAclpermissions orREAD_ACPaccess to the object. For more information, see Mapping of ACL permissions and access policy permissions in the Amazon S3 User GuideThis 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-controlACL 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:GetObject
GetObjectAttributes
DeleteObject
PutObject
You must URL encode any signed header values that contain spaces. For example, if your header value is
my file.txt, containing two spaces aftermy, you must URL encode this value tomy%20%20file.txt.Example
Use a bare-bones client and the command you need to make an API call.
Param: GetObjectAclCommandInput
GetObjectAclCommandInput
Returns
GetObjectAclCommandOutput
See
inputshape.responseshape.configshape.Throws
NoSuchKey (client fault)
The specified key does not exist.
Throws
S3ServiceException
Base exception class for all service exceptions from S3 service.
Example: To retrieve object ACL