Modifies a speed limiting rule of a Quality of Service (QoS) policy.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
QosCarId String Yes qoscar-n5k8g97lihlph*****

The instance ID of the QoS speed limiting rule.

QosId String Yes qos-awfxl1adxeqyk*****

The instance ID of the QoS policy.

RegionId String Yes cn-hangzhou

The ID of the region to which the QoS policy belongs.

Action String No ModifyQosCar

The name of this action.

Value: ModifyQosCar.

Description String No QoS speed limiting rule description

The description of the QoS speed limiting rule.

LimitType String No Absolute

The speed limiting method. Valid values:

  • Absolute
  • Percent
MaxBandwidthAbs Integer No 6

The maximum bandwidth allowed for the stream specified in the quintuple rule. This parameter is required when the value of the LimitType is Absolute.

MaxBandwidthPercent Integer No 90

The maximum bandwidth percentage allowed for the stream specified in the quintuple rule. It is based on the maximum upstream bandwidth you set for the associated Smart Access Gateway (SAG) instance.

This parameter is required when the value of the LimitType parameter is Percent.

MinBandwidthAbs Integer No 2

The minimum bandwidth allowed for the stream specified in the quintuple rule. This parameter is required when the value of the LimitType parameter is Absolute.

MinBandwidthPercent Integer No 20

The minimum bandwidth percentage allowed for the stream specified in the quintuple rule. It is based on the maximum upstream bandwidth you set for the associated SAG instance.

This parameter is required when the value of the LimitType parameter is Percent.

PercentSourceType String No CcnBandwidth

The bandwidth type when the speed is limited based on percentage. Valid values:

  • CcnBandwidth
  • InternetUpBandwidth
Priority Integer No 2

The priority of the specified stream.

Response parameters

Parameter Type Example value Description
RequestId String 551CD836-9E46-4F2C-A167-B4363180A647

The ID of the request.

Examples

Request example


http(s)://[Endpoint]/? Action=ModifyQosCar
&QosCarId=qoscar-n5k8g97lihlph*****
&QosId=qos-awfxl1adxeqyk*****
&RegionId=cn-hangzhou
&<CommonParameters>

Response example

XML format

<ModifyQosCarResponse>
	  <RequestId>551CD836-9E46-4F2C-A167-B4363180A647</RequestId>
    </ModifyQosCarResponse>

JSON format

{
	"RequestId":"551CD836-9E46-4F2C-A167-B4363180A647"
}

Errors

HTTP status code Error code Error message Description
400 MissParameter.RegionId You must specify RegionId. You must specify the RegionId.
400 MissParameter.QosCarId You must specify QosCarId. You must specify the QosCarId.
400 MissParameter.QosId You must specify QosId. You must specify the QosId.
400 InvalidParameter.Description You must specify Description. You must specify the Description.
400 MissParameter.MaxBandwidthAbs You must specify MaxBandwidthAbs. You must specify the MaxBandwidthAbs.
400 MissParameter.MaxBandwidthPercent You must specify MaxBandwidthPercent. You must specify the MaxBandwidthPercent.
400 MissParameter.MinBandwidthAbs You must specify MinBandwidthAbs. You must specify the MinBandwidthAbs.
400 MissParameter.MinBandwidthPercent You must specify MinBandwidthPercent. You must specify the 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.
400 MissParameter.PercentSourceType You must specify PercentSourceType. You must specify the PercentSourceType.
400 InvalidParameter.Priority The specified Priority is invalid. The specified Priority is invalid.
400 InvalidParameter.PercentSourceType The specified PercentSourceType is invalid. The specified PercentSourceType is invalid.

For a list of error codes, visit the API Error Center.