Modifies a traffic throttling rule in a quality of service (QoS) policy.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
smartag:ModifyQosCar | Write |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Description | string | No | The description of the traffic throttling rule. | Qostest |
RegionId | string | Yes | The ID of the region to which the QoS policy belongs. | cn-hangzhou |
QosId | string | Yes | The ID of the QoS policy. | qos-awfxl1adxeqyk**** |
QosCarId | string | Yes | The ID of the traffic throttling rule. | qoscar-n5k8g97lihlph**** |
Priority | integer | No | The priority value of the traffic throttling rule. A smaller value specifies a higher priority. If multiple rules have the same priority, the rule that is applied first takes effect. Valid values: 1 to 7. | 2 |
LimitType | string | No | The type of the traffic throttling rule. Valid values:
| Absolute |
MinBandwidthAbs | integer | No | The minimum bandwidth value. The value must be an integer. Unit: Mbit/s. This parameter is required when you set LimitType to Absolute. | 2 |
MaxBandwidthAbs | integer | No | The maximum bandwidth value. The value must be an integer. Unit: Mbit /s. This parameter is required when you set LimitType to Absolute. Note
The maximum bandwidth value must be greater than the minimum bandwidth value.
| 6 |
MinBandwidthPercent | integer | No | The minimum bandwidth percentage. Unit: percent (%). Valid values: 1 to 100. This parameter is required when you set LimitType to Percent. | 20 |
MaxBandwidthPercent | integer | No | The maximum bandwidth percentage. Unit: percent (%). Valid values: 1 to 100. This parameter is required when you set LimitType to Percent. Note
The maximum bandwidth percentage must be greater than the minimum bandwidth percentage.
| 90 |
PercentSourceType | string | No | The type of bandwidth when traffic is throttled based on bandwidth percentage. Valid values:
| CcnBandwidth |
Name | string | No | The name of the traffic throttling rule. The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter. | nametest |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "551CD836-9E46-4F2C-A167-B4363180A647"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissParameter.RegionId | You must specify RegionId. | You must set the RegionId parameter. |
400 | MissParameter.QosCarId | You must specify QosCarId. | You must specify QosCarId. |
400 | MissParameter.QosId | You must specify QosId. | You must set the QosId parameter. |
400 | InvalidParameter.Description | You must specify Description. | You must set the Description parameter. |
400 | MissParameter.MaxBandwidthAbs | You must specify MaxBandwidthAbs. | You must specify MaxBandwidthAbs. |
400 | MissParameter.MaxBandwidthPercent | You must specify MaxBandwidthPercent. | You must specify MaxBandwidthPercent. |
400 | MissParameter.MinBandwidthAbs | You must specify MinBandwidthAbs. | You must specify MinBandwidthAbs. |
400 | MissParameter.MinBandwidthPercent | You must specify MinBandwidthPercent. | You must specify MinBandwidthPercent. |
400 | InvalidBandwidthCompare | The specified maximum bandwidth is smaller than the minimum bandwidth. Please check your input. | The specified maximum bandwidth is smaller than the minimum bandwidth. Please check your input. |
400 | MissParameter.PercentSourceType | You must specify PercentSourceType. | You must specify PercentSourceType. |
400 | InvalidParameter.Priority | The specified Priority is invalid. | The Priority parameter is set to an invalid value. |
400 | InvalidParameter.PercentSourceType | The specified PercentSourceType is invalid. | The specified PercentSourceType is invalid. |
400 | InvalidParameter.Name | The specified Name is invalid. | The Name parameter is set to an invalid value. |
400 | InvalidParameter.Description | The specified Description is invalid. | The Description parameter is set to an invalid value. |
For a list of error codes, visit the Service error codes.