调用DescribeQosCars接口查询QoS策略实例的限速规则信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeQosCars |
要执行的操作。取值:DescribeQosCars。 |
RegionId | String | 是 | cn-shanghai |
QoS策略实例所属地域ID。 您可以通过调用DescribeRegions接口获取地域ID。 |
QosId | String | 是 | qos-awfxl1adxeqyk**** |
QoS策略实例ID。 |
QosCarId | String | 否 | qoscar-n5k8g97lihlph**** |
QoS策略实例的限速规则ID。 |
Order | String | 否 | asc |
限速规则的排序方式。取值:
默认按照限速规则的优先级升序排列。 |
Description | String | 否 | testdesc |
限速规则的描述信息。 |
PageSize | Integer | 否 | 10 |
分页查询时每页显示的最大条目数。取值范围:1~50。默认值为10。 |
PageNumber | Integer | 否 | 1 |
查询页码。默认值为1。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
TotalCount | Integer | 10 |
总条目数。 |
QosCars | Array of QosCar |
限速规则信息列表。 |
|
QosCar | |||
MaxBandwidthAbs | Integer | 6 |
最大带宽。单位:Mbps。 |
PercentSourceType | String | CcnBandwidth |
按百分比限速时的带宽类型:
|
MinBandwidthAbs | Integer | 2 |
最小带宽。单位:Mbps。 |
MaxBandwidthPercent | Integer | 90 |
最大带宽百分比。 |
Description | String | des |
限速规则的描述信息。 |
QosId | String | qos-awfxl1adxeqyk**** |
QoS策略实例ID。 |
LimitType | String | Absolute |
限速类型:
|
Priority | Integer | 3 |
限速规则优先级。 |
Name | String | name |
限速规则的名称。 |
MinBandwidthPercent | Integer | 20 |
最小带宽百分比。 |
QosCarId | String | qos-awfxl1adxeqyk**** |
限速规则ID。 |
PageSize | Integer | 10 |
分页查询时,每页显示的最大条目数。 |
RequestId | String | B7B758A9-009E-4C9D-9618-714EAE8BA5E9 |
请求ID。 |
PageNumber | Integer | 1 |
查询页码。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeQosCars
&RegionId=cn-shanghai
&QosId=qos-awfxl1adxeqyk****
&QosCarId=qoscar-n5k8g97lihlph****
&Order=asc
&Description=testdesc
&PageSize=10
&PageNumber=1
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeQosCarsResponse>
<TotalCount>10</TotalCount>
<QosCars>
<MaxBandwidthAbs>6</MaxBandwidthAbs>
<PercentSourceType>CcnBandwidth</PercentSourceType>
<MinBandwidthAbs>2</MinBandwidthAbs>
<MaxBandwidthPercent>90</MaxBandwidthPercent>
<Description>des</Description>
<QosId>qos-awfxl1adxeqyk****</QosId>
<LimitType> Absolute</LimitType>
<Priority>3</Priority>
<Name>name</Name>
<MinBandwidthPercent>20</MinBandwidthPercent>
<QosCarId>qos-awfxl1adxeqyk****</QosCarId>
</QosCars>
<PageSize>10</PageSize>
<RequestId>B7B758A9-009E-4C9D-9618-714EAE8BA5E9</RequestId>
<PageNumber>1</PageNumber>
</DescribeQosCarsResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"TotalCount" : 10,
"QosCars" : [ {
"MaxBandwidthAbs" : 6,
"PercentSourceType" : "CcnBandwidth",
"MinBandwidthAbs" : 2,
"MaxBandwidthPercent" : 90,
"Description" : "des",
"QosId" : "qos-awfxl1adxeqyk****",
"LimitType" : " Absolute",
"Priority" : 3,
"Name" : "name",
"MinBandwidthPercent" : 20,
"QosCarId" : "qos-awfxl1adxeqyk****"
} ],
"PageSize" : 10,
"RequestId" : "B7B758A9-009E-4C9D-9618-714EAE8BA5E9",
"PageNumber" : 1
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidId.Qos | The specified QosId is invalid. | 您输入的参数QosId不合法。 |
403 | MissingParameter | The input parameter is missing, please check your input. | 输入参数缺失,请检查您的输入。 |
403 | InvalidParameter | The specified parameter is invalid. | 非法参数。 |
403 | InternalError | An internal server error occurred. | 内部服务错误。 |
访问错误中心查看更多错误码。