Queries the quintuple rules 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
QosId String Yes qos-jdj************

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 DescribeQosPolicies

The name of this action.

Value: DescribeQosPolicies.

Description String No Quintuple

The description of the quintuple rule.

PageNumber Integer No 2

The number of rows per page in the case of a paged query result.

PageSize Integer No 2

The page number. Default value: 1

QosPolicyId String No qospy-xhwhyuo43l********

The ID of the quintuple rule.

Response parameters

Parameter Type Example value Description
PageNumber Integer 2

The number of rows per page in the case of a paged query result.

PageSize Integer 2

The page number. Default value: 1

QosPolicies

The details of the quintuple rule.

Description String Quintuple

The description of the quintuple rule.

DestCidr String 10.10.10.9/12

The destination CIDR block.

DestPortRange String 80/80

The destination port range.

EndTime String 2019-07-14T16:41:33+0800

The expiration time of the quintuple rule.

IpProtocol String tcp

The transport layer protocol.

Priority Integer 3

The priority of the quintuple rule.

QosId String qos-dw****************

The instance ID of the QoS policy.

QosPolicyId String qospy-xhwhyuo43l********

The ID of the quintuple rule.

SourceCidr String 10.0.0.0/24

The source CIDR block.

SourcePortRange String 80/80

The source port range.

StartTime String 2019-07-14T16:41:33+0800

The time when the quintuple rule takes effect.

RequestId String 97862812-2C7E-4D25-B0D5-B26DAC7FA293

The ID of the request.

TotalCount Integer 2

The total number of entries.

Examples

Request example


http(s)://[Endpoint]/? Action=DescribeQosPolicies
&QosId=qos-jdj************
&RegionId=cn-hangzhou
&<CommonParameters>

Response example

XML format

<DescribeQosPoliciesResponse>
	  <PageNumber>1</PageNumber>
	  <PageSize>10</PageSize>
	  <QosPolicies>
		    <QosPolicy>
			      <Description>bvt-test</Description>
			      <DestCidr>10.10.0.0/24</DestCidr>
			      <DestPortRange>-1/-1</DestPortRange>
			      <IpProtocol>ALL</IpProtocol>
			      <Priority>1</Priority>
			      <QosId>qos-awfxl1adxeqyk*****</QosId>
			      <QosPolicyId>qospy-7h91hp3h9ykd*****</QosPolicyId>
			      <SourceCidr>192.168.0.0/24</SourceCidr>
			      <SourcePortRange>-1/-1</SourcePortRange>
		    </QosPolicy>
		    <QosPolicy>
			      <Description>bvt-test</Description>
			      <DestCidr>10.10.2.0/24</DestCidr>
			      <DestPortRange>80/80</DestPortRange>
			      <IpProtocol>TCP</IpProtocol>
			      <Priority>3</Priority>
			      <QosId>qos-awfxl1adxeqy*****</QosId>
			      <QosPolicyId>qospy-3avavlksll******</QosPolicyId>
			      <SourceCidr>192.168.2.0/24</SourceCidr>
			      <SourcePortRange>1/65535</SourcePortRange>
		    </QosPolicy>
	  </QosPolicies>
	  <RequestId>A6B0BBEC-3101-4A98-9805-368B04956C02</RequestId>
	  <TotalCount>2</TotalCount>
    </DescribeQosPoliciesResponse>

JSON format

{
	"PageNumber":1,
	"QosPolicies":{
		"QosPolicy":[
			{
				"IpProtocol":"ALL",
				"SourceCidr":"192.168.0.0/24",
				"Description":"bvt-test",
				"SourcePortRange":"-1/-1",
				"DestPortRange":"-1/-1",
				"DestCidr":"10.10.0.0/24",
				"QosPolicyId":"qospy-7h91hp3h9ykd*****",
				"QosId":"qos-awfxl1adxeqyk*****",
				"Priority":1
			},
			{
				"IpProtocol":"TCP",
				"SourceCidr":"192.168.2.0/24",
				"Description":"bvt-test",
				"SourcePortRange":"1/65535",
				"DestPortRange":"80/80",
				"DestCidr":"10.10.2.0/24",
				"QosPolicyId":"qospy-3avavlksll******",
				"QosId":"qos-awfxl1adxeqy*****",
				"Priority":3
			}
		]
	},
	"TotalCount":2,
	"PageSize":10,
	"RequestId":"A6B0BBEC-3101-4A98-9805-368B04956C02"
}

Errors

HTTP status code Error code Error message Description
403 MissingParameter The input parameter is missing, please check your input. One or more required parameters are missing.
403 InvalidParameter The specified parameter is invalid. The specified parameter is invalid.
400 InvalidId.Qos The specified QosId is invalid. The specified QosId is invalid.
403 InternalError An internal server error occurred. An internal error occurred.

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