GET Bucket Tagging¶
The GET Bucket Tagging operation returns the tags associated with an S3 bucket.
You send the GET request against the tagging subresource
associated with the bucket.
To use this operation, you must have permission to perform the
s3:GetBucketTagging action. By default, the bucket owner has this
permission and can grant this permission to others.
Requests¶
Request¶
GET /?tagging HTTP/1.1
Host: {{BucketName}}.{{StorageService}}.com
Date: {{date}}
Authorization: {{authorizationString}}
Parameters¶
The GET Bucket Tagging operation does not use request parameters.
Headers¶
The GET Bucket Tagging operation uses only request headers that are common to all operations (refer to Common Request Headers).
Elements¶
The GET Bucket Tagging operation does not use request elements.
Responses¶
Headers¶
The GET Bucket Tagging operation uses only response headers common to all responses (refer to Common Response Headers).
Elements¶
The GET Bucket Tagging operation can return the following XML elements in its response (includes XML containers):
Element |
Type |
Description |
|---|---|---|
|
container |
Container for the |
|
container |
Contains the tag set Ancestor: |
|
container |
Contains the tag information Ancestor: |
|
string |
Name of the tag Ancestor: |
|
string |
Value of the tag Ancestor: |
Special Errors¶
NoSuchTagSet— There is no tag set associated with the bucket.
Examples¶
Request¶
The following request returns the tag set of the specified bucket.
GET ?tagging HTTP/1.1
Host: {{BucketName}}.s3.example.com
Date: Wed, 28 Oct 2009 22:32:00 GMT
Authorization: {{authorizationString}}
Response¶
HTTP/1.1 200 OK
Date: Thu, 22 Sep 2016 21:33:08 GMT
Connection: close
Server: ScalityS3
<?xml version="1.0" encoding="UTF-8"?>
<Tagging xmlns="http://s3.example.com/doc/2006-03-01/">
<TagSet>
<Tag>
<Key>tag1</Key>
<Value>val1</Value>
</Tag>
<Tag>
<Key>tag2</Key>
<Value>val2</Value>
</Tag>
</TagSet>
</Tagging>

