Obtaining the QoS Configuration of a Bucket
Function
This API obtains a bucket's QoS configuration, including the QPS, BPS, and concurrent requests.
Constraints
- Bucket QoS is currently under closed beta test and is available only to invited tenants.
- Currently, only bucket-level QoS rules can be created by users. To adjust account-level QoS rules, submit a service ticket to contact technical support. If no bucket-level QoS rule is configured for a bucket, the bucket can use up to the maximum cluster resources available to the account.
- If there is no limit on the metrics of the cluster to which the bucket belongs, the maximum value that can be configured for the corresponding bucket-level metric is 263 – 1.
- Traffic control is triggered when either the QPS or bandwidth threshold is exceeded. When this happens, request latency increases, and the response includes the x-obs-qos-delay-time header, which indicates the duration for which the request was throttled, in milliseconds (ms). Upload requests (such as PUT uploads and part uploads) return the exact throttling duration. However, download requests (such as object downloads) only return an estimate based on the degree of throttling and the object size.
- Traffic control is triggered when the concurrent request threshold is exceeded. When this happens, requests fail immediately with HTTP 429. When QPS or bandwidth traffic control is triggered, the resulting increase in request latency can also lead to more concurrent requests.
Authorization
To call this API, you must be the bucket owner or have the permission to obtain the QoS configuration of a bucket. You are advised to use IAM or bucket policies for authorization.
- If you use IAM for authorization, you need to use either role/policy-based authorization or identity policy-based authorization and configure the required permissions:
- If you use role/policy-based authorization (IAM v3 APIs in the old IAM version), you must have the obs:bucket:GetBucketQosInfo permission. For details, see Creating a Custom IAM Policy.
- If you use identity policy-based authorization (IAM v5 APIs in the new IAM version), you must have the obs:bucket:getBucketQosInfo permission, as shown in the following table. For details, see Creating a Custom IAM Identity Policy.
Action
Access Level
Resource Type (*: Required)
Dependencies
obs:bucket:getBucketQosInfo
Read
bucket *
-
-
-
- obs:EpochTime
- obs:SourceIp
- obs:TlsVersion
- obs:CustomDomain
- If you use bucket policies for authorization, you must have the obs:bucket:GetBucketQosInfo permission. For details, see Creating a Custom Bucket Policy.
URI
GET /
Request Syntax
The following is an example request. Replace BucketName with your bucket name and RegionID with the ID of the region where your bucket resides. You can obtain the region ID by referring to Supported Regions.
GET /?x-obs-qosInfo HTTP/1.1 User-Agent: curl/7.29.0 Host: BucketName.obs.RegionID.myhuaweicloud.com Accept: */* Date: GMT Date Authorization: SignatureValue
URI Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| x-obs-qosInfo | Yes | String | Definition An identifier that marks this API as related to bucket QoS. Constraints When calculating the signature, add /BucketName/?x-obs-qosInfo to CanonicalizedResource. For details, see Using an Authorization Header. Range x-obs-qosInfo Default Value N/A |
Request Headers
This request uses common headers. For details, see Table 3.
Request Body
This request contains no request body parameters.
Response Syntax
HTTP/1.1 status_code
Server: OBS
x-obs-request-id: request id
x-obs-id-2: id
Content-Type: application/xml
Date: date
Content-Length: length
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GetBucketQoSResponse xmlns="http://obs.myhwclouds.com/doc/2015-06-30/">
<QoSConfiguration>
<QoSRule>
<NetworkType>total</NetworkType>
<ConcurrentRequestLimit>1000</ConcurrentRequestLimit>
<QpsLimit>
<Get>1000</Get>
<PutPostDelete>1000</PutPostDelete>
<List>1000</List>
<Total>1000</Total>
</QpsLimit>
<BpsLimit>
<Get>1000</Get>
<PutPost>1000</PutPost>
<Total>1000</Total>
</BpsLimit>
</QoSRule>
</QoSConfiguration>
<ResourceCluster>LZ1</ResourceCluster>
<ResourceClusterConfiguration>
<QoSRule>
<NetworkType>total</NetworkType>
<ConcurrentRequestLimit>2000</ConcurrentRequestLimit>
<QpsLimit>
<Get>15000</Get>
<PutPostDelete>15000</PutPostDelete>
<List>1000</List>
<Total>15000</Total>
</QpsLimit>
<BpsLimit>
<Get>21474836480</Get>
<PutPost>21474836480</PutPost>
<Total>32212254720</Total>
</BpsLimit>
</QoSRule>
</ResourceClusterConfiguration>
</GetBucketQoSResponse> Response Headers
This response uses common headers. For details, see Table 1.
Response Body
The response to the request for obtaining the bucket QoS configuration contains elements QoSConfiguration, ResourceCluster, and ResourceClusterConfiguration.
Table 2 describes the response elements.
| Parameter | Type | Description |
|---|---|---|
| GetBucketQoSResponse | Container | Definition Root element of the bucket QoS configuration. GetBucketQoSResponse is the parent element of QoSConfiguration, ResourceCluster, and ResourceClusterConfiguration. |
| QoSConfiguration | Container | Definition Sub-element of the bucket QoS configuration, which contains detailed QoS rules. For details, see Table 3. |
| ResourceCluster | String | Definition ID of the cluster to which the bucket belongs. Range N/A |
| ResourceClusterConfiguration | Container | Definition QoS quota of the current tenant in the cluster. For details, see ResourceClusterConfiguration. |
| Parameter | Type | Description |
|---|---|---|
| QoSRule | Container | Definition Bucket QoS rule. For details, see Table 5. |
| Parameter | Type | Description |
|---|---|---|
| QoSRule | Container | Definition QoS rule of the cluster where the account's bucket resides. For details, see Table 8. |
| Parameter | Type | Description |
|---|---|---|
| NetworkType | Enum | Definition QoS limit range of a bucket. Range
|
| ConcurrentRequestLimit | Integer | Definition QPS limit of requests for a bucket. Unit: requests/s. Range 0 to 9223372036854775807 |
| QpsLimit | Container | Definition QPS limit for bucket requests. For details, see Table 6. |
| BpsLimit | Container | Definition BPS limit for bucket requests. For details, see Table 7. |
| Parameter | Type | Description |
|---|---|---|
| Get | Integer | Definition QPS limit of bucket download requests. Unit: requests/s. Range 0 to 9223372036854775807 |
| PutPostDelete | Integer | Definition QPS limit of bucket upload requests. Unit: requests/s. Range 0 to 9223372036854775807 |
| List | Integer | Definition QPS limit of bucket listing requests. Unit: requests/s. Range 0 to 9223372036854775807 |
| Total | Integer | Definition QPS limit of total requests for a bucket. Unit: requests/s. List requests are not included. Range 0 to 9223372036854775807 |
| Parameter | Type | Description |
|---|---|---|
| Get | Integer | Definition Bandwidth limit of bucket download requests. Unit: Byte/s. Range 0 to 9223372036854775807 |
| PutPost | Integer | Definition Bandwidth limit for bucket upload requests. Unit: Byte/s. Range 0 to 9223372036854775807 |
| Total | Integer | Definition Maximum total bandwidth of bucket requests. Unit: Byte/s. Range 0 to 9223372036854775807 |
| Parameter | Type | Description |
|---|---|---|
| NetworkType | Enum | Definition Restriction scope of the account in the cluster to which the bucket belongs. Range
|
| ConcurrentRequestLimit | Integer | Definition Request QPS limit for an account in the cluster to which the bucket belongs. Unit: requests/s. Range 0 to 9223372036854775807 |
| QpsLimit | Container | Definition Request QPS limit rule for an account in the cluster to which the bucket belongs. Range For details, see Table 9. |
| BpsLimit | Container | Definition Request bandwidth limit rule for an account in the cluster to which the bucket belongs. Range For details, see Table 10. |
| Parameter | Type | Description |
|---|---|---|
| Get | Integer | Definition Download request QPS limit for an account in the cluster to which the bucket belongs. Unit: requests/s. Range 0 to 9223372036854775807 |
| PutPostDelete | Integer | Definition Upload request QPS limit for an account in the cluster to which the bucket belongs. Unit: requests/s. Range 0 to 9223372036854775807 |
| List | Integer | Definition Listing request QPS limit for an account in the cluster to which the bucket belongs. Unit: requests/s. Range 0 to 9223372036854775807 |
| Total | Integer | Definition Total request QPS limit for an account in the cluster to which the bucket belongs. Unit: requests/s. Range 0 to 9223372036854775807 |
| Parameter | Type | Description |
|---|---|---|
| Get | Integer | Definition Download request bandwidth limit for an account in the cluster to which the bucket belongs. Unit: Byte/s. Range 0 to 9223372036854775807 |
| PutPost | Integer | Definition Upload request bandwidth limit for an account in the cluster to which the bucket belongs. Unit: Byte/s. Range 0 to 9223372036854775807 |
| Total | Integer | Definition Total request bandwidth limit for an account in the cluster to which the bucket belongs. Unit: Byte/s. Range 0 to 9223372036854775807 |
Error Responses
No special errors. You can find all errors in Error Code Overview.
Sample Request
GET /?x-obs-qosInfo HTTP/1.1 User-Agent: curl/7.29.0 Host: bucketname.obs.region.myhuaweicloud.com Accept: */* Date: Thu, 22 May 2025 01:46:15 +0000 Authorization: OBS UDSIAMSTUBTEST000254:ydH8ffpcbS6YpeOMcEZfn0wE90c=
Sample Response
HTTP/1.1 200 OK
x-obs-request-id: 00000196F5AB71675306486100049006
x-obs-id-2: 36AAAQAAEAABAAAQAAEAABAAAQAAEAABAAAaI=AAAAAAAAAAAAAAAAAAAAAAAAAA
Content-Type: application/xml
Date: Thu, 22 May 2025 01:46:15 GMT
Content-Length: 822
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GetBucketQoSResponse xmlns="http://obs.myhwclouds.com/doc/2015-06-30/">
<QoSConfiguration>
<QoSRule>
<NetworkType>total</NetworkType>
<ConcurrentRequestLimit>1000</ConcurrentRequestLimit>
<QpsLimit>
<Get>1000</Get>
<PutPostDelete>1000</PutPostDelete>
<List>1000</List>
<Total>1000</Total>
</QpsLimit>
<BpsLimit>
<Get>512000</Get>
<PutPost>512000</PutPost>
<Total>512000</Total>
</BpsLimit>
</QoSRule>
</QoSConfiguration>
<ResourceCluster>LZ1</ResourceCluster>
<ResourceClusterConfiguration>
<QoSRule>
<NetworkType>extranet</NetworkType>
<BpsLimit>
<Get>21474836480</Get>
<PutPost>21474836480</PutPost>
</BpsLimit>
</QoSRule>
<QoSRule>
<NetworkType>total</NetworkType>
<ConcurrentRequestLimit>2000</ConcurrentRequestLimit>
<QpsLimit>
<Get>15000</Get>
<PutPostDelete>15000</PutPostDelete>
<List>1000</List>
</QpsLimit>
<BpsLimit>
<Get>21474836480</Get>
<PutPost>21474836480</PutPost>
</BpsLimit>
</QoSRule>
</ResourceClusterConfiguration>
</GetBucketQoSResponse> What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot