GET Bucket Quota

Using this operation, an active bucket owner can obtain its quota. A bucket quota is expressed in bytes. If the quota is set to 0, the quota has no upper limit.

Request Syntax

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

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 no element.

Response Syntax

HTTP/1.1 status_code
Date: date
Content-Type: application/xml
Content-Length: length

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

Response Headers

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

Response Elements

This response contains elements to provide details about a bucket quota. Table 1 describes the elements.

Table 1 Response elements

Element

Description

Quota

Indicates bucket quota details. This element contains the StorageQuota element.

Type: XML

StorageQuota

Indicates the bucket quota value. The unit is byte.

Type: string

Error Responses

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

Registration