调用ModifyQosCar接口修改QoS限速规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyQosCar |
系统规定参数。取值:ModifyQosCar。 |
Description | String | 否 | Qostest |
QoS限速规则描述。 |
RegionId | String | 是 | cn-hangzhou |
QoS策略实例所属的地域ID。 |
QosId | String | 是 | qos-awfxl1adxeqyk**** |
QoS策略的实例ID。 |
QosCarId | String | 是 | qoscar-n5k8g97lihlph**** |
QoS限速规则的实例ID。 |
Priority | Integer | 否 | 2 |
设置限速规则的优先级,数值越小,优先级越高,同优先级时先下发的规则优先生效。 优先级范围:1~7。 |
LimitType | String | 否 | Absolute |
限速类型,取值:
|
MinBandwidthAbs | Integer | 否 | 2 |
最小带宽,带宽值需要输入整数,单位:Mbps。 LimitType是Absolute时必填。 |
MaxBandwidthAbs | Integer | 否 | 6 |
最大带宽,带宽值需要输入整数,单位:Mbps。 LimitType是Absolute时必填。 说明 输入的最大带宽值必须大于最小带宽值。
|
MinBandwidthPercent | Integer | 否 | 20 |
最小带宽百分比,单位:百分比(%),取值范围:1~100。 LimitType是Percent时必填。 |
MaxBandwidthPercent | Integer | 否 | 90 |
最大带宽百分比,单位:百分比(%),取值范围:1~100。 LimitType是Percent时必填。 说明 输入的最大带宽百分比必须大于最小带宽百分比。
|
PercentSourceType | String | 否 | CcnBandwidth |
百分比限速时的带宽类型,取值:
|
Name | String | 否 | nametest |
QoS限速规则名称。 长度为2~128,以字母或中文开头,且只包含中文、字母、数字、半角句号(.)、下划线(_)和短划线(-)。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 551CD836-9E46-4F2C-A167-B4363180A647 |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=ModifyQosCar
&Description=Qostest
&RegionId=cn-hangzhou
&QosId=qos-awfxl1adxeqyk****
&QosCarId=qoscar-n5k8g97lihlph****
&Priority=2
&LimitType=Absolute
&MinBandwidthAbs=2
&MaxBandwidthAbs=6
&MinBandwidthPercent=20
&MaxBandwidthPercent=90
&PercentSourceType=CcnBandwidth
&Name=nametest
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyQosCarResponse>
<RequestId>551CD836-9E46-4F2C-A167-B4363180A647</RequestId>
</ModifyQosCarResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "551CD836-9E46-4F2C-A167-B4363180A647"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissParameter.RegionId | You must specify RegionId. | 您的输入中缺少必填参数RegionId。 |
400 | MissParameter.QosCarId | You must specify QosCarId. | 您的输入中缺少必填参数"QosCarId"。 |
400 | MissParameter.QosId | You must specify QosId. | 您的输入中缺少必填参数QosId。 |
400 | InvalidParameter.Description | You must specify Description. | 您的输入中缺少必填参数Description。 |
400 | MissParameter.MaxBandwidthAbs | You must specify MaxBandwidthAbs. | 您的输入中缺少必填参数"MaxBandwidthAbs"。 |
400 | MissParameter.MaxBandwidthPercent | You must specify MaxBandwidthPercent. | 您的输入中缺少必填参数"MaxBandwidthPercent"。 |
400 | MissParameter.MinBandwidthAbs | You must specify MinBandwidthAbs. | 您的输入中缺少必填参数"MinBandwidthAbs"。 |
400 | MissParameter.MinBandwidthPercent | You must specify MinBandwidthPercent. | 您的输入中缺少必填参数"MinBandwidthPercent"。 |
400 | InvalidBandwidthCompare | The specified maximum bandwidth is smaller than the minimum bandwidth. Please check your input. | 您输入的参数中最大带宽值小于最小带宽值,请检查您的输入。 |
400 | MissParameter.PercentSourceType | You must specify PercentSourceType. | 您的输入中缺少必填参数"PercentSourceType"。 |
400 | InvalidParameter.Priority | The specified Priority is invalid. | 您输入的参数Priority不合法。 |
400 | InvalidParameter.PercentSourceType | The specified PercentSourceType is invalid. | 您输入的参数"PercentSourceType"不合法。 |
400 | InvalidParameter.Name | The specified Name is invalid. | 您输入的参数Name不合法。 |
400 | InvalidParameter.Description | The specified Description is invalid. | 您输入的参数Description不合法。 |
访问错误中心查看更多错误码。