• Object Storage Service

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

Requests

Syntax

PUT /?policy HTTP/1.1 
 User-Agent: agent
 Host: bucketname.obs.example.com
 Accept: */*
 Date: date 
 Authorization: signatureValue
 Content-Length: length 

 Policy written in JSON

Request Parameters

This request involves no parameters.

Request Headers

This request uses common headers. For details about common request headers, see section Common Request Headers.

Request Elements

The request body is a JSON string containing bucket policies. For details about JSON elements, see Bucket Policy.