• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (OBS)
  4. Operations on Buckets
  5. GET Bucket tagging
  6. Responses

Responses

Syntax

HTTP/1.1 200 OK
Server: Server Name 
x-amz-request-id: request id 
x-amz-id-2: id 
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
Content-Type: application/xml 
Content-Length: 0 
Date: date
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
 
<Tagging xmlns="http://obs.example.com/doc/2015-06-30/"> 
    <TagSet> 
        <Tag> 
            <Key>TagNameJJ1</Key> 
            <Value>tytttasceettt</Value> 
        </Tag> 
</TagSet> 
</Tagging>

Response Headers

This response uses common headers. For details about common response headers, see section Common Response Headers.

Response Elements

This response contains elements to detail bucket lifecycle configuration. The following table describes the elements.

Table 1 Elements to be configured for bucket tags

Element

Description

Mandatory or Not

Tagging

Container for the TagSet and Tag elements

Type: Container

Ancestor: None

Yes

TagSet

Container for a set of tags

Type: Container

Ancestor: Tagging

Yes

Tag

Container for tag information

Type: Container. Each bucket supports a maximum of 10 tags.

Ancestor: TagSet

Yes

Key

Name of the tag

Type: String. It can contain a maximum of 36 characters, including A to Z, a to z, 0 to 9, hyphens (-), underscores (_), and Unicode(\u4E00-\u9FFF). In the same bucket, the key of a tag must be unique.

Ancestor: Tag

Yes

Value

Value of the tag

Type: String. It can contain a maximum of 43 characters, including A to Z, a to z, 0 to 9, hyphens (-), underscores (_), periods (.), and Unicode(\u4E00-\u9FFF). Note that periods (.) can be used for this parameter.

Ancestor: Tag

Yes

Error Responses

Except for common error responses, special error responses are also returned. The following table lists error responses and possible causes.

Table 2 Error responses and possible causes

Error Code

Possible Cause

HTTP Status Code

NoSuchTagSet

The specified bucket is not configured with a tag.

404 Not Found