• Object Storage Service

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

Requests

Syntax

PUT /?versioning HTTP/1.1 
 User-Agent: agnet
 Host: bucketname.obs.example.com
 Accept: */* 
 Date: date 
 Authorization: authorization 
 Content-Length: length 
 Expect: expect

 <VersioningConfiguration> 
 <Status>status</Status> 
 </VersioningConfiguration>

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

This request contains elements to configure the bucket versioning in the XML format. Table 1 describes the elements.

Table 1 Elements for configuring bucket versioning

Element

Description

Remarks

VersioningConfiguration

Indicates the container for the versioning state configuration.

Ancestor: None

Mandatory

Status

Specifies the versioning state of the bucket.

Type: Enumeration

Ancestor: VersioningConfiguration

Valid Values: Enabled, Suspended

Mandatory