Anda dapat memanggil operasi ListCenInterRegionTrafficQosPolicies untuk mengkueri Kebijakan Quality of Service (QoS).
Deskripsi operasi
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.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListCenInterRegionTrafficQosPolicies |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TransitRouterId |
string |
No |
ID instans TransitRouter. |
tr-bp1rmwxnk221e3fas**** |
| TransitRouterAttachmentId |
string |
No |
ID koneksi antar-wilayah. |
tr-attach-r6g0m3epjehw57**** |
| TrafficQosPolicyId |
string |
No |
ID Kebijakan QoS. |
qos-rnghap5gc8155x**** |
| TrafficQosPolicyName |
string |
No |
Nama Kebijakan QoS. Nama dapat kosong atau memiliki panjang 1 hingga 128 karakter. Nama tidak boleh dimulai dengan http:// atau https://. |
nametest |
| TrafficQosPolicyDescription |
string |
No |
Deskripsi Kebijakan QoS. Deskripsi dapat kosong atau memiliki panjang 1 hingga 256 karakter. Deskripsi tidak boleh dimulai dengan http:// atau https://. |
desctest |
| MaxResults |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman. Nilai valid: 1 hingga 100. Nilai default: 20. |
20 |
| NextToken |
string |
No |
Token untuk halaman hasil berikutnya. Nilai valid:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
Elemen respons
|
Element |
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. |
|
|
array<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*** |
Contoh
Respons sukses
JSONformat
{
"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***"
}
]
}
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.