You can call the ListCenInterRegionTrafficQosPolicies operation to query Quality of Service (QoS) policies.
Operation description
Take note of the following items when you call the ListCenInterRegionTrafficQosPolicies operation:
-
You must specify at least one of the TransitRouterId and TrafficQosPolicyId parameters.
-
If you do not specify the TrafficQosPolicyId parameter, the operation returns information about the QoS policy based on the values of the TransitRouterId, TransitRouterAttachmentId, TrafficQosPolicyName, and TrafficQosPolicyDescription parameters. In this case, information about the queues in the policy is not returned, and the TrafficQosQueues field is not included in the response.
-
If you specify the TrafficQosPolicyId parameter, the operation returns information about the QoS policy and its queues. The TrafficQosQueues field is included in the response. If the TrafficQosQueues field is an empty array, only the default queue exists in the QoS policy.
-
Make sure that you enter valid parameter values. If you enter an invalid parameter, the system returns a RequestId but does not return information about the QoS policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListCenInterRegionTrafficQosPolicies |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TransitRouterId |
string |
No |
The ID of the TransitRouter instance. |
tr-bp1rmwxnk221e3fas**** |
| TransitRouterAttachmentId |
string |
No |
The ID of the inter-region connection. |
tr-attach-r6g0m3epjehw57**** |
| TrafficQosPolicyId |
string |
No |
The ID of the QoS policy. |
qos-rnghap5gc8155x**** |
| TrafficQosPolicyName |
string |
No |
The name of the QoS policy. The name can be empty or 1 to 128 characters in length. It cannot start with http:// or https://. |
nametest |
| TrafficQosPolicyDescription |
string |
No |
The description of the QoS policy. The description can be empty or 1 to 256 characters in length. It cannot start with http:// or https://. |
desctest |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. |
20 |
| NextToken |
string |
No |
The token for the next page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response that is returned. |
||
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results.
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
The request ID. |
113BFD47-63DF-5D9D-972C-033FB9C360CD |
| TotalCount |
integer |
The number of entries returned. |
1 |
| MaxResults |
integer |
The number of entries returned per page. |
20 |
| TrafficQosPolicies |
array<object> |
The list of QoS policies. |
|
|
object |
The information about the QoS policy. |
||
| TrafficQosPolicyName |
string |
The name of the QoS policy. |
nametest |
| TrafficQosPolicyStatus |
string |
The status of the QoS policy.
|
Creating |
| TrafficQosPolicyId |
string |
The ID of the QoS policy. |
qos-rnghap5gc8155x**** |
| TrafficQosPolicyDescription |
string |
The description of the QoS policy. |
desctest |
| BandwidthGuaranteeMode |
string |
The bandwidth guarantee type.
|
byBandwidthPercent |
| TrafficQosQueues |
array<object> |
The list of queues. |
|
|
object |
The information about the queue. |
||
| QosQueueName |
string |
The name of the queue. |
namtest |
| RemainBandwidthPercent |
integer |
The percentage of the inter-region connection bandwidth that is used by the queue. This parameter is returned when the bandwidth guarantee type is byBandwidthPercent. |
1 |
| Bandwidth |
string |
The bandwidth value allocated to the queue of the inter-region connection. This parameter is returned when the bandwidth guarantee type is byBandwidth. |
1 |
| QosQueueId |
string |
The ID of the queue. |
qos-queue-njcrmr9fiu1jii**** |
| QosQueueDescription |
string |
The description of the queue. |
desctest |
| Dscps |
array |
The Differentiated Services Code Point (DSCP) values of the traffic messages that are matched by the queue. |
|
|
integer |
The DSCP value of a traffic message that is matched by the queue. |
5 |
|
| EffectiveBandwidth |
string |
The actual bandwidth of the queue. |
1.35 |
| TransitRouterId |
string |
The ID of the TransitRouter instance. |
tr-2ze4ta4v32umj0rb*** |
| TransitRouterAttachmentId |
string |
The ID of the network instance connection. |
tr-attach-q7ct7c06jpw*** |
Examples
Success response
JSON format
{
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "113BFD47-63DF-5D9D-972C-033FB9C360CD",
"TotalCount": 1,
"MaxResults": 20,
"TrafficQosPolicies": [
{
"TrafficQosPolicyName": "nametest",
"TrafficQosPolicyStatus": "Creating",
"TrafficQosPolicyId": "qos-rnghap5gc8155x****",
"TrafficQosPolicyDescription": "desctest",
"BandwidthGuaranteeMode": "byBandwidthPercent",
"TrafficQosQueues": [
{
"QosQueueName": "namtest",
"RemainBandwidthPercent": 1,
"Bandwidth": "1",
"QosQueueId": "qos-queue-njcrmr9fiu1jii****",
"QosQueueDescription": "desctest",
"Dscps": [
5
],
"EffectiveBandwidth": "1.35"
}
],
"TransitRouterId": "tr-2ze4ta4v32umj0rb***",
"TransitRouterAttachmentId": "tr-attach-q7ct7c06jpw***"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParam.TransitRouterIdOrTrafficQosPolicyId | Either TransitRouterId or TrafficQosPolicyId must be specified. | |
| 400 | InvalidDescription | Description is invalid. | The error message returned because the description is invalid. |
| 400 | InvalidName | Name is invalid. | The error message returned because the specified name is invalid. |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.