Call the PutResourcePoolPriorityQosConfiguration operation to modify the priority and Quality of Service (QoS) configurations for buckets and bucket groups in a resource pool.
Precautions
The number of priority levels must be between 3 and 10.
Priority levels start from 1. A higher number indicates a higher priority.
If you do not configure a default minimum bandwidth commitment (DefaultGuaranteedQosConfiguration), you must configure one for each priority level. If a default is configured, any priority level without a specific commitment will use the default value.
The sum of a minimum bandwidth commitment item (such as TotalUploadBandwidth) across all priority levels cannot exceed the value of the corresponding item in the resource pool.
A minimum bandwidth commitment for a priority level can be set to -1 only if the value of the corresponding item in the resource pool is -1.
If a bucket and its bucket group have different priority configurations, the bucket group's priority takes precedence.
Request syntax
PUT /?priorityQos&resourcePool=ResourcePoolName
Host: oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Content-Type: application/xml
Content-Length: content lengthRequest elements
Name | Type | Parameter Position | Description |
resourcePool | string | Query | The name of the target resource pool. |
PriorityQosConfiguration | container | Body | A container for the priority throttling configuration of the resource pool. |
PriorityCount | Integer | - | The number of priority levels. |
DefaultPriorityLevel | Integer | - | The default priority level. |
DefaultGuaranteedQosConfiguration | container | - | The default minimum bandwidth commitment. If this node is not configured, you must configure a minimum bandwidth commitment for each priority level. If this node is configured, priority levels without a specific commitment will use this default value. |
QosPriorityLevelConfiguration | container | - | A container for the throttling configuration of a specific priority level. |
PriorityLevel | Integer | - | The priority level. |
GuaranteedQosConfiguration | container | - | A container for the minimum bandwidth commitment of a specific priority level. |
TotalUploadBandwidth | Integer | - | The total minimum upload bandwidth commitment. Unit: Gbps. |
IntranetUploadBandwidth | Integer | - | The minimum upload bandwidth commitment for the internal network. Unit: Gbps. This includes requests from internal networks such as classic network and VPC. |
ExtranetUploadBandwidth | Integer | - | The minimum upload bandwidth commitment for the public network. Unit: Gbps. This includes requests from public networks such as the Internet and CDN. |
TotalDownloadBandwidth | Integer | - | The total minimum download bandwidth commitment. Unit: Gbps. |
IntranetDownloadBandwidth | Integer | - | The minimum download bandwidth commitment for the internal network. Unit: Gbps. This includes requests from internal networks such as classic network and VPC. |
ExtranetDownloadBandwidth | Integer | - | The minimum download bandwidth commitment for the public network. Unit: Gbps. This includes requests from public networks such as the Internet and CDN. |
Subjects | container | - | A container for the throttling objects. Throttling objects include buckets and bucket groups. |
Bucket | string | - | The bucket name. |
BucketGroup | string | - | The bucket group name. |
Examples
Request example
PUT /?priorityQos&resourcePool=ResoucePoolName Host: oss-cn-shanghai.aliyuncs.com Date: Fri, 10 Oct 2025 07:38:42 GMT Content-Type: application/xml Content-Length: content length <PriorityQosConfiguration> <PriorityCount>4</PriorityCount> <DefaultPriorityLevel>3</DefaultPriorityLevel> <DefaultGuaranteedQosConfiguration> <TotalUploadBandwidth>10</TotalUploadBandwidth> <IntranetUploadBandwidth>20</IntranetUploadBandwidth> <ExtranetUploadBandwidth>30</ExtranetUploadBandwidth> <TotalDownloadBandwidth>40</TotalDownloadBandwidth> <IntranetDownloadBandwidth>50</IntranetDownloadBandwidth> <ExtranetDownloadBandwidth>60</ExtranetDownloadBandwidth> </DefaultGuaranteedQosConfiguration> <QosPriorityLevelConfiguration> <PriorityLevel>1</PriorityLevel> <GuaranteedQosConfiguration> <TotalUploadBandwidth>20</TotalUploadBandwidth> <ToTalDownloadBandwidth>20</ToTalDownloadBandwidth> <ExtranetUploadBandwidth>10</ExtranetUploadBandwidth> <IntranetUploadBandwidth>10</IntranetUploadBandwidth> <ExtranetDownloadBandwidth>10</ExtranetDownloadBandwidth> <IntranetDownloadBandwidth>10</IntranetDownloadBandwidth> </GuaranteedQosConfiguration> </QosPriorityLevelConfiguration> <QosPriorityLevelConfiguration> <PriorityLevel>2</PriorityLevel> <GuaranteedQosConfiguration> <TotalUploadBandwidth>20</TotalUploadBandwidth> <ToTalDownloadBandwidth>20</ToTalDownloadBandwidth> <ExtranetUploadBandwidth>10</ExtranetUploadBandwidth> <IntranetUploadBandwidth>10</IntranetUploadBandwidth> <ExtranetDownloadBandwidth>10</ExtranetDownloadBandwidth> <IntranetDownloadBandwidth>10</IntranetDownloadBandwidth> </GuaranteedQosConfiguration> <Subjects> <BucketGroup>bucketGroup-02</BucketGroup> <Bucket>bucket-02</Bucket> </Subjects> </QosPriorityLevelConfiguration> </PriorityQosConfiguration>Response example
HTTP/1.1 200 OK Date: Fri, 10 Oct 2025 07:38:42 GMT Content-Length: 0
SDK
The PutResourcePoolPriorityQosConfiguration operation is available in the following SDKs:
ossutil command line tool
For more information about the corresponding ossutil command, see put-resource-pool-priority-qos-configuration.