• Object Storage Service

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

Examples

Sample Request

GET /?notification HTTP/1.1 
User-Agent: curl/7.19.0 (x86_64-suse-linux-gnu) libcurl/7.19.0 OpenSSL/0.9.8{ zlib/1.2.3 libidn/1.10 
Host: bucketname.obs.example.com
Accept: */* 
Date: Tue, 28 Apr 2015 09:11:35 +0000 
Authorization: AWS D13E0C94E722DD69423C:FJt2xJ1gEnozLSdpRNTJUoy6344=

Sample Response

HTTP/1.1 200 OK 
x-amz-id-2: YgIPIfBiKa2bj0KMgUAdQkf3ShJTOOpXUueF6QKo
x-amz-request-id: 236A8905248E5A02 
Date: Wed, 15 Oct 2014 16:59:04 GMT 
Server: AmazonS3 

<?xml version="1.0" encoding="UTF-8"?> 
<NotificationConfiguration xmlns="http://obs.huawie.com/doc/2015-06-30/">
 <TopicConfiguration>
  <Id>id001</Id>
  <Topic>urn:smn:example:1236598854:topic1</Topic>
  <Event>s3:ObjectCreated:*</Event>
 </TopicConfiguration> 
</NotificationConfiguration>