All Products
Search
Document Center

Virtual Private Cloud:DescribeExpressConnectTrafficQos

Last Updated:Jan 03, 2025

Queries the quality of service (QoS) policies of Express Connect. The response can be displayed by page.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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
vpc:DescribeExpressConnectTrafficQoslist
*TrafficQos
acs:vpc:{#regionId}:{#accountId}:TrafficQos/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region in which the QoS policy is created.

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

cn-shanghai
ClientTokenstringYes

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.

Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
02fb3da4-130e-11e9-8e44-0016e04115b
QosIdListarrayNo

The IDs of QoS policies.

stringNo

The IDs of QoS policies.

qos-2giu0a6vd5x0mv4700
QosNameListarrayNo

The names of QoS policies.

stringNo

The names of QoS policies.

qos-test
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results.

  • If no value is returned for NetToken, you do not need to specify this parameter.
  • If a value is returned for NextToken, you must specify the token that is obtained from the previous query as the value of NextToken.
FFmyTO70tTpLG6I3FmYAXGKPd****
MaxResultsintegerNo

The maximum number of entries to return. Valid values: 1 to 100. Default value: 10.

20
ResourceGroupIdstringNo

The resource group ID.

rg-acfmxazfdgdg****
Tagsarray<object>No

The tags of the resource.

objectNo

The tags of the resource.

KeystringNo

The tag key. You must enter at least one tag key. You can specify up to 20 tag keys. The tag key cannot be an empty string.

A tag key can be at most 128 characters in length. It cannot start with aliyun or acs:, and cannot contain http:// or https://.

FinanceDept
ValuestringNo

The tag values of the resources. You can specify up to 20 tag values. The tag value can be an empty string.

The tag value can be up to 128 characters in length, and cannot contain http:// or https://. The tag value cannot start with aliyun or acs:.

FinanceJoshua

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

4CF20CC7-D1FC-425B-A15B-DF7C8E2131A7
NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

  • If NextToken is empty, no next page exists.
  • If a value is returned for NextToken, the value can be used in the next request to retrieve a new page of results.
FFmyTO70tTpLG6I3FmYAXGKPd****
MaxResultsinteger

The number of entries per page. Valid values: 1 to 100. Default value: 20.

20
TotalCountinteger

The number of returned entries.

10
Countstring

The total number of entries returned.

1
QosListarray<object>

The information about QoS policies.

qosListobject

The information about the QoS policies.

QosIdstring

The ID of the QoS policy.

qos-pksbqfmotl5hzq****
QosNamestring

The name of the QoS policy.

The name can be up to 128 characters in length and cannot start with http:// or https://.

qos-test
QosDescriptionstring

The description of the QoS policy.

The description can be up to 256 characters in length. It cannot start with http:// or https://.

qos-test
Statusstring

The state of the QoS policy. Valid values:

  • Normal: The QoS policy is available.
  • Configuring: The QoS policy is being configured.
Note If a QoS policy is in the Configuring state, you cannot perform most of the operations to create, update, or delete QoS policies, QoS queues, or QoS rules.
Normal
Progressinginteger

The configuration progress of the QoS policy. Valid values: 0 to 100.

100
AssociatedInstanceListarray<object>

The information about the instances to which the QoS policy is associated.

associatedInstanceListobject
InstanceIdstring

The ID of the instance to which the QoS policy is associated.

pc-bp159zj8zujwy3p07j83e
InstanceTypestring

The type of the instance to which the QoS policy is associated. Only PHYSICALCONNECTION is returned.

PHYSICALCONNECTION
InstanceStatusstring

The state of the instance to which the QoS policy is associated. Valid values:

  • Normal: The instance is available.
  • Configuring: The instance is being configured.
  • Deleting: The instance is being deleted.
Normal
InstanceProgressinginteger

The configuration progress of the instance to which the QoS policy is associated. Valid values: 0 to 100.

100
QueueListarray<object>

The information about the QoS queues.

queueListobject
QosIdstring

The ID of the QoS policy.

qos-pksbqfmotl5hzqmhf8
QueueIdstring

The ID of the QoS queue.

qos-queue-9nyx2u7n71s2rcy4n5
QueueTypestring

The type of the QoS queue. Valid values:

  • High: high-priority queue.
  • Medium: standard queue.
  • Default: default queue.
Note You cannot create a default queue.
High
BandwidthPercentstring

The percentage of bandwidth allocated to a QoS queue.

  • If QueueType is set to Medium, this parameter is required. Valid values: 1 to 100.
  • If QueueType is set to Default, a value of - is returned.
100
QueueNamestring

The name of the QoS queue.

The name can be up to 128 characters in length and cannot start with http:// or https://.

qos-queue-test
QueueDescriptionstring

The description of the QoS queue.

The description can be up to 256 characters in length. It cannot start with http:// or https://.

qos-queue-test
Statusstring

The state of the QoS queue. Valid values:

  • Normal: The QoS queue is available.
  • Configuring: The QoS queue is being configured.
  • Deleting: The QoS queue is being deleted.
Normal
ResourceGroupIdstring

The ID of the resource group.

rg-acfmz7vtyl4f***
Tagsarray<object>

The tag list.

tagsobject

The tag list.

Keystring

The tag key.

FinanceDept
Valuestring

The tag value.

FinanceJoshua

Examples

Sample success responses

JSONformat

{
  "RequestId": "4CF20CC7-D1FC-425B-A15B-DF7C8E2131A7",
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "MaxResults": 20,
  "TotalCount": 10,
  "Count": "1",
  "QosList": [
    {
      "QosId": "qos-pksbqfmotl5hzq****",
      "QosName": "qos-test",
      "QosDescription": "qos-test",
      "Status": "Normal",
      "Progressing": 100,
      "AssociatedInstanceList": [
        {
          "InstanceId": "pc-bp159zj8zujwy3p07j83e",
          "InstanceType": "PHYSICALCONNECTION",
          "InstanceStatus": "Normal",
          "InstanceProgressing": 100
        }
      ],
      "QueueList": [
        {
          "QosId": "qos-pksbqfmotl5hzqmhf8",
          "QueueId": "qos-queue-9nyx2u7n71s2rcy4n5",
          "QueueType": "High",
          "BandwidthPercent": "100",
          "QueueName": "qos-queue-test",
          "QueueDescription": "qos-queue-test",
          "Status": "Normal"
        }
      ],
      "ResourceGroupId": "rg-acfmz7vtyl4f***",
      "Tags": [
        {
          "Key": "FinanceDept",
          "Value": "FinanceJoshua"
        }
      ]
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParam.%sThe param of %s is illegal.The parameter is invalid.

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

Change history

Change timeSummary of changesOperation
2024-12-18The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details