All Products
Search
Document Center

Smart Access Gateway:DescribeQosCars

Last Updated:Mar 29, 2024

Queries traffic throttling rules of a quality of service (QoS) policy.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
smartag:DescribeQosCarsRead
  • Qos
    acs:smartag:{#regionId}:{#accountId}:qos/{#QosId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region where the QoS policy is created.

You can call the DescribeRegions operation to query the most recent region list.

cn-shanghai
QosIdstringYes

The ID of the QoS policy.

qos-awfxl1adxeqyk****
QosCarIdstringNo

The ID of the traffic throttling rule.

qoscar-n5k8g97lihlph****
OrderstringNo

The sorting method of the traffic throttling rules. Valid values:

  • asc: sorted in ascending order. This is the default value.
  • desc: sorted in descending order.

By default, traffic throttling rules are sorted in ascending order of priority.

asc
DescriptionstringNo

The description of the traffic throttling rule.

testdesc
PageSizeintegerNo

The number of entries to return per page. Valid values: 1 to 50. Default value: 10.

10
PageNumberintegerNo

The number of the page to return. Default value: 1.

1

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of entries returned.

10
QosCarsobject []

The list of traffic throttling rules.

MaxBandwidthAbsinteger

The maximum bandwidth. Unit: Mbit/s.

6
PercentSourceTypestring

The bandwidth type when traffic is throttled based on bandwidth percentage.

  • CcnBandwidth: Cloud Connect Network (CCN) bandwidth.
  • InternetUpBandwidth: Internet upstream bandwidth.
CcnBandwidth
MinBandwidthAbsinteger

The minimum bandwidth. Unit: Mbit/s.

2
MaxBandwidthPercentinteger

The maximum bandwidth percentage.

90
Descriptionstring

The description of the traffic throttling rule.

des
QosIdstring

The ID of the QoS policy.

qos-awfxl1adxeqyk****
LimitTypestring

The type of traffic throttling. Valid values:

  • Absolute: throttles traffic based on a specific range of bandwidth.
  • Percent: throttles traffic based on a specific range of bandwidth percentage.
Absolute
Priorityinteger

The priority of the rule.

3
Namestring

The name of the traffic throttling rule.

name
MinBandwidthPercentinteger

The minimum bandwidth percentage.

20
QosCarIdstring

The ID of the traffic throttling rule.

qos-awfxl1adxeqyk****
PageSizeinteger

The number of entries returned on each page.

10
RequestIdstring

The ID of the request.

B7B758A9-009E-4C9D-9618-714EAE8BA5E9
PageNumberinteger

The number of the returned page.

1

Examples

Sample success responses

JSONformat

{
  "TotalCount": 10,
  "QosCars": {
    "QosCar": [
      {
        "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
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidId.QosThe specified QosId is invalid.The QosId parameter is set to an invalid value.
403MissingParameterThe input parameter is missing, please check your input.Missing parameters. Check whether all required parameters are set.
403InvalidParameterThe specified parameter is invalid.Invalid parameters.
403InternalErrorAn internal server error occurred.An internal server error occurred.

For a list of error codes, visit the Service error codes.