• Object Storage Service

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

Examples

Sample Request

PUT /?tagging HTTP/1.1 
User-Agent: curl/7.19.7 (x86_64-suse-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8j zlib/1.2.7 libidn/1.10 
Host: bucketname.obs.example.com
Accept: */* 
Date: Tue, 09 May 2017 02:41:20 +0000 
Authorization: authorization string 
Content-MD5: 5yPl6Bu6q5Z6vBItpJAqAQ== 
Content-Length: 544 
Expect: 100-continue
<Tagging> 
    <TagSet> 
        <Tag> 
            <Key>TagNameJJ1</Key> 
            <Value>tytttasceettt</Value> 
        </Tag> 
    </TagSet> 
</Tagging>

Sample Response

HTTP/1.1 204 No Content
Server: OBS 
x-amz-request-id: 0002B7532E0000015BEB146F2846E8E5 
x-amz-id-2: a68r9ufCPuQCBUcwv1clom3zy/LsP+Bp+JJccmsmy2ptuwV3g0YMu3FIoTaEWA02 
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc  
Date: Tue, 09 May 2017 02:40:37 GMT