This operation is not supported for directory buckets.
Returns the tag-set of an object. You send the GET request against the tagging subresource
associated with the object.
To use this operation, you must have permission to perform the s3:GetObjectTagging
action. By default, the GET action returns information about current version of an object. For a
versioned bucket, you can have multiple versions of an object in your bucket. To retrieve tags of any
other version, use the versionId query parameter. You also need permission for the
s3:GetObjectVersionTagging action.
By default, the bucket owner has this permission and can grant this permission to others.
For information about the Amazon S3 object tagging feature, see Object Tagging.
The following actions are related to GetObjectTagging:
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.
Base exception class for all service exceptions from S3 service.
Example: To retrieve tag set of a specific object version
// The following example retrieves tag set of an object. The request specifies object version. constinput = { Bucket:"examplebucket", Key:"exampleobject", VersionId:"ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" }; constcommand = newGetObjectTaggingCommand(input); constresponse = awaitclient.send(command); /* response is { TagSet: [ { Key: "Key1", Value: "Value1" } ], VersionId: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" } */
Example: To retrieve tag set of an object
// The following example retrieves tag set of an object. constinput = { Bucket:"examplebucket", Key:"HappyFace.jpg" }; constcommand = newGetObjectTaggingCommand(input); constresponse = awaitclient.send(command); /* response is { TagSet: [ { Key: "Key4", Value: "Value4" }, { Key: "Key3", Value: "Value3" } ], VersionId: "null" } */
This operation is not supported for directory buckets.
Returns the tag-set of an object. You send the GET request against the tagging subresource associated with the object.
To use this operation, you must have permission to perform the
s3:GetObjectTaggingaction. By default, the GET action returns information about current version of an object. For a versioned bucket, you can have multiple versions of an object in your bucket. To retrieve tags of any other version, use the versionId query parameter. You also need permission for thes3:GetObjectVersionTaggingaction.By default, the bucket owner has this permission and can grant this permission to others.
For information about the Amazon S3 object tagging feature, see Object Tagging.
The following actions are related to
GetObjectTagging:DeleteObjectTagging
GetObjectAttributes
PutObjectTagging
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: GetObjectTaggingCommandInput
GetObjectTaggingCommandInput
Returns
GetObjectTaggingCommandOutput
See
inputshape.responseshape.configshape.Throws
S3ServiceException
Base exception class for all service exceptions from S3 service.
Example: To retrieve tag set of a specific object version
Example: To retrieve tag set of an object