Tagging
DELETE/?tagging
DeleteBucketTagging
Deletes the tags from the bucket.
Request Properties
- Name
BucketRequiredPath- Description
- Name
x-amz-expected-bucket-ownerHeader- Description
- The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
Request
DELETE
/?taggingDELETE /?tagging HTTP/1.1
Host: Bucket.Endpoint
x-amz-expected-bucket-owner: ExpectedBucketOwnerResponse
HTTP/1.1 204DELETE/:Key?tagging
DeleteObjectTagging
Removes the entire tag set from the specified object.
Request Properties
- Name
BucketRequiredPath- Description
- The bucket name containing the objects from which to remove the tags.
- Name
KeyRequiredPath- Description
- The key that identifies the object in the bucket from which to remove all tags.
- Name
x-amz-expected-bucket-ownerNot SupportedHeader- Description
- The account ID of the expected bucket owner.
- Name
versionIdQuery- Description
- The versionId of the object that the tag-set will be removed from.
Response Properties
- Name
x-amz-version-idHeader- Description
- The versionId of the object the tag-set was removed from.
Request
DELETE
/:Key?taggingDELETE /{Key+}?tagging&versionId=VersionId HTTP/1.1
Host: Bucket.Endpoint
x-amz-expected-bucket-owner: ExpectedBucketOwnerResponse
HTTP/1.1 204
x-amz-version-id: VersionIdGET/?tagging
GetBucketTagging
Returns the tag set associated with the bucket.
Request Properties
- Name
BucketSupportedRequiredPath- Description
- The name of the bucket for which to get the tagging information.
- Name
x-amz-expected-bucket-ownerNot SupportedHeader- Description
- The account ID of the expected bucket owner.
Response Properties
- Name
TagSetSupportedBody- Description
- Contains the tag set.
- Name
TaggingSupportedBody- Description
- Root level tag for the Tagging parameters.
Request
GET
/?taggingGET /?tagging HTTP/1.1
Host: Bucket.Endpoint
x-amz-expected-bucket-owner: ExpectedBucketOwnerResponse
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<Tagging>
<TagSet>
<Tag>
<Key>string</Key>
<Value>string</Value>
</Tag>
</TagSet>
</Tagging>GET/?tagging
GetBucketTagging
Returns the tag set associated with the bucket.
Request Properties
- Name
BucketSupportedRequiredPath- Description
- The name of the bucket for which to get the tagging information.
- Name
x-amz-expected-bucket-ownerNot SupportedHeader- Description
- The account ID of the expected bucket owner.
Response Properties
- Name
TagSetSupportedBody- Description
- Contains the tag set.
- Name
TaggingSupportedBody- Description
- Root level tag for the Tagging parameters.
Request
GET
/?taggingGET /?tagging HTTP/1.1
Host: Bucket.Endpoint
x-amz-expected-bucket-owner: ExpectedBucketOwnerResponse
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<Tagging>
<TagSet>
<Tag>
<Key>string</Key>
<Value>string</Value>
</Tag>
</TagSet>
</Tagging>GET/:Key?tagging
GetObjectTagging
Returns the tag-set of an object. You send the GET request against the tagging subresource associated with the object.
Request Properties
- Name
BucketSupportedRequiredPath- Description
- The bucket name containing the object for which to get the tagging information.
- Name
KeySupportedRequiredPath- Description
- Object key for which to get the tagging information.
- Name
x-amz-expected-bucket-ownerNot SupportedHeader- Description
- The account ID of the expected bucket owner.
- Name
x-amz-request-payerNot SupportedHeader- Description
- Confirms that the requester knows that they will be charged for the request.
- Name
VersionIdNot SupportedQuery- Description
- The versionId of the object for which to get the tagging information.
Response Properties
- Name
x-amz-version-idNot SupportedHeader- Description
- The versionId of the object for which you got the tagging information.
- Name
TagSetSupportedBody- Description
- Contains the tag set.
- Name
TaggingSupportedBody- Description
- Root level tag for the Tagging parameters.
Request
GET
/:Key?taggingGET /{Key+}?tagging&versionId=VersionId HTTP/1.1
Host: Bucket.Endpoint
x-amz-expected-bucket-owner: ExpectedBucketOwner
x-amz-request-payer: RequestPayerResponse
HTTP/1.1 200
x-amz-version-id: VersionId
<?xml version="1.0" encoding="UTF-8"?>
<Tagging>
<TagSet>
<Tag>
<Key>string</Key>
<Value>string</Value>
</Tag>
</TagSet>
</Tagging>PUT/?tagging
PutBucketTagging
Sets the tags for a bucket.
Request Properties
- Name
BucketSupportedRequiredPath- Description
- The bucket name.
- Name
Content-MD5SupportedHeader- Description
- The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit.
- Name
x-amz-expected-bucket-ownerNot SupportedHeader- Description
- The account ID of the expected bucket owner.
- Name
x-amz-sdk-checksum-algorithmNot SupportedHeader- Description
- Indicates the algorithm used to create the checksum for the object when you use the SDK.
- Name
TagSetSupportedRequiredBody- Description
- A collection for a set of tags
- Name
TaggingSupportedRequiredBody- Description
- Root level tag for the Tagging parameters.
Request
PUT
/?taggingPUT /?tagging HTTP/1.1
Host: Bucket.Endpoint
Content-MD5: ContentMD5
x-amz-sdk-checksum-algorithm: ChecksumAlgorithm
x-amz-expected-bucket-owner: ExpectedBucketOwner
<?xml version="1.0" encoding="UTF-8"?>
<Tagging>
<TagSet>
<Tag>
<Key>string</Key>
<Value>string</Value>
</Tag>
</TagSet>
</Tagging>Response
HTTP/1.1 200PUT/:key?tagging
PutObjectTagging
Sets the supplied tag-set to an object that already exists in a bucket. A tag is a key-value pair.
Request Properties
- Name
BucketSupportedRequiredPath- Description
- The bucket name containing the object.
- Name
KeySupportedRequiredPath- Description
- Name of the object key.
- Name
Content-MD5SupportedHeader- Description
- The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit.
- Name
x-amz-expected-bucket-ownerNot SupportedHeader- Description
- The account ID of the expected bucket owner.
- Name
x-amz-request-payerNot SupportedHeader- Description
- Confirms that the requester knows that they will be charged for the request.
- Name
x-amz-sdk-checksum-algorithmNot SupportedHeader- Description
- Indicates the algorithm used to create the checksum for the object when you use the SDK.
- Name
VersionIdNot SupportedQuery- Description
- The versionId of the object that the tag-set will be added to.
- Name
TagSetSupportedRequiredBody- Description
- A collection for a set of tags
- Name
TaggingSupportedRequiredBody- Description
- Root level tag for the Tagging parameters.
Response Properties
- Name
x-amz-version-idNot SupportedHeader- Description
- The versionId of the object the tag-set was added to.
Request
PUT
/:key?taggingPUT /{Key+}?tagging&versionId=VersionId HTTP/1.1
Host: Bucket.Endpoint
Content-MD5: ContentMD5
x-amz-sdk-checksum-algorithm: ChecksumAlgorithm
x-amz-expected-bucket-owner: ExpectedBucketOwner
x-amz-request-payer: RequestPayer
<?xml version="1.0" encoding="UTF-8"?>
<Tagging>
<TagSet>
<Tag>
<Key>string</Key>
<Value>string</Value>
</Tag>
</TagSet>
</Tagging>Response
HTTP/1.1 200
x-amz-version-id: VersionId