PUT Bucket Quota

Using this operation, an active bucket owner can modify the bucket quota. A bucket quota must be a non-negative integer expressed in bytes. The maximum allowed quota is (263 - 1) bytes. If a bucket quota is set to 0, the quota has no upper limit.

Request Syntax

PUT /?quota HTTP/1.1
Host: bucketname.obs.cn-north-1.myhwclouds.com
Date: date
Content-Length: length
Authorization: authorization

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Quota xmlns="http://obs.cn-north-1.myhwclouds.com/doc/2015-06-30/">
    <StorageQuota>value</StorageQuota>
</Quota>

Request Parameters

This request contains no parameter.

Request Headers

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

Request Elements

This request contains an additional element to specify the bucket quota, as described in Table 1.

Table 1 Additional request element

Element

Description

Required or Optional

StorageQuota

Specifies the bucket space quota. The unit is byte.

Type: integer

Required

Response Syntax

HTTP/1.1 status_code
Date: date

Content-Length: length

Response Headers

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

Response Elements

This response contains no element.

Error Responses

No special error responses are returned. For details about error responses, see Table 1.

Registration