Updating the Rate Limit Quota
Function
Updates the rate limit quota information of a tenant. Batch upsert operations are supported.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
workspace:sitesBandwidth:update
Write
-
-
-
-
URI
PUT /v2/{project_id}/sites/bandwidth-quota/configurations
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| speed_limit_quotas | Yes | Array of SpeedLimitQuotaItem objects | Rate limit quota list. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | No | String | Quota record ID. |
| site_id | Yes | String | Site ID. |
| site_name | No | String | Site name. |
| upload_speed_limit | Yes | Long | Upload rate limit (Mbit/s). |
| download_speed_limit | Yes | Long | Download rate limit (Mbit/s). |
| enabled | Yes | Boolean | Whether rate limiting is enabled. |
| create_time | No | String | Creation time (UTC). The format is RFC 3339, for example, 2024-01-01T00:00:00Z. |
| update_time | No | String | Update time (UTC). The format is RFC 3339, for example, 2024-01-01T00:00:00Z. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| speed_limit_quotas | Array of SpeedLimitQuotaItem objects | Rate limit quota list. |
| Parameter | Type | Description |
|---|---|---|
| id | String | Quota record ID. |
| site_id | String | Site ID. |
| site_name | String | Site name. |
| upload_speed_limit | Long | Upload rate limit (Mbit/s). |
| download_speed_limit | Long | Download rate limit (Mbit/s). |
| enabled | Boolean | Whether rate limiting is enabled. |
| create_time | String | Creation time (UTC). The format is RFC 3339, for example, 2024-01-01T00:00:00Z. |
| update_time | String | Update time (UTC). The format is RFC 3339, for example, 2024-01-01T00:00:00Z. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
| error_detail | String | Error details. |
| encoded_authorization_message | String | Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
| error_detail | String | Error details. |
| encoded_authorization_message | String | Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
| error_detail | String | Error details. |
| encoded_authorization_message | String | Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
| error_detail | String | Error details. |
| encoded_authorization_message | String | Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason. |
Example Requests
PUT /v2/fb2e5ec048384c8f9469d22db0037908/sites/bandwidth-quota/configurations
{
"speed_limit_quotas" : [ {
"site_id" : "147258369",
"upload_speed_limit" : 20,
"download_speed_limit" : 50,
"enabled" : true
} ]
} Example Responses
Status code: 200
{
"speed_limit_quotas" : [ {
"id" : "550e8400-e29b-41d4-a716-446655440000",
"site_id" : "147258369",
"upload_speed_limit" : 20,
"download_speed_limit" : 50,
"enabled" : true,
"create_time" : "2026-06-06T12:00:00Z",
"update_time" : "2026-06-06T12:00:00Z"
} ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Response to the request for updating the rate limit quota. |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 500 | Internal Server Error. For details, see the error code description. |
Error Codes
See Error Codes.
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