Membuat Antrian dalam Kebijakan quality of service (QoS) untuk mengelola lalu lintas jaringan berdasarkan granularitas yang lebih halus, meningkatkan performa layanan, dan memenuhi service-level agreement (SLA).
Deskripsi operasi
The CreateCenInterRegionTrafficQosQueue operation is an asynchronous operation. After you send a request, the system returns a request ID and runs the task in the background. You can call the ListCenInterRegionTrafficQosPolicies operation to query the status of the QoS policy to determine the status of the queue. When you call this operation, you must set the TrafficQosPolicyId parameter.
-
If a QoS policy is in the Modifying state, the queue is being created. In this case, you can query the QoS policy and queue but cannot perform other operations.
-
If a QoS policy is in the Active state, the queue is created.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:CreateCenInterRegionTrafficQosQueue |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
token Klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan Klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. token hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan ID permintaan sebagai token Klien. ID permintaan dapat berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426**** |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid:
|
false |
| QosQueueName |
string |
No |
Nama Antrian. Nama dapat kosong atau memiliki panjang 1 hingga 128 karakter, dan tidak dapat dimulai dengan http:// atau https://. |
nametest |
| QosQueueDescription |
string |
No |
Deskripsi Antrian. Parameter ini opsional. Jika Anda memasukkan deskripsi, deskripsi harus memiliki panjang 1 hingga 256 karakter dan tidak dapat dimulai dengan http:// atau https://. |
desctest |
| RemainBandwidthPercent |
string |
No |
Persentase maksimum bandwidth antar-wilayah yang dapat dialokasikan ke Antrian.
|
20 |
| Bandwidth |
integer |
No |
Nilai bandwidth absolut maksimum yang dapat dialokasikan ke Antrian. Unit: Mbit/s.
|
20 |
| TrafficQosPolicyId |
string |
Yes |
ID Kebijakan QoS. |
qos-qdvybn468kaoxx**** |
| Dscps |
array |
Yes |
Nilai differentiated services code point (DSCP) atau titik kode layanan terdiferensiasi yang cocok dengan Antrian saat ini. Anda dapat menentukan paling banyak 20 nilai DSCP untuk satu Antrian dalam setiap panggilan. Pisahkan nilai DSCP dengan koma (,). |
|
|
integer |
No |
The DSCP value that matches the current queue. You can specify at most 20 DSCP values for a queue in each call. Separate DSCP values with commas (,). |
5 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| QosQueueId |
string |
The ID of the queue. |
qos-queue-irqhi8k5fdyuu5**** |
| RequestId |
string |
The ID of the request. |
845F66F6-5C27-53A1-9428-B859086237B2 |
Contoh
Respons sukses
JSONformat
{
"QosQueueId": "qos-queue-irqhi8k5fdyuu5****",
"RequestId": "845F66F6-5C27-53A1-9428-B859086237B2"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.RemainBandwidthPercent | The specified RemainBandwidthPercent is invalid. | |
| 400 | IncorrectStatus.TrafficQosPolicy | The status of TrafficQosPolicy is incorrect. | |
| 400 | Duplicated.Dscps | The parameter Dscps are duplicated. | |
| 400 | InvalidDescription | Description is invalid. | |
| 400 | InvalidName | Name is invalid. | |
| 400 | MissingParam.Bandwidth | The parameter Bandwidth is mandatory. | |
| 400 | IllegalParam.BandwidthGuaranteeModeMismatch | The BandwidthGuaranteeMode does not match the Bandwidth or RemainBandwidthPercent. | |
| 400 | IllegalParam.AttachmentBandwidthExceed | The entered bandwidth causes the total QoS guaranteed bandwidth to exceed the cross-region bandwidth allocation value. | |
| 400 | MissingParam.RemainBandwidthPercent | RemainBandwidthPercent is missing. | |
| 400 | IllegalParam.Bandwidth | Bandwidth is illegal | |
| 400 | InvalidParameter | Invalid parameter. | |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | |
| 400 | MissingParam.TrafficQosPolicyId | The parameter TrafficQosPolicyId is mandatory. | |
| 400 | Forbidden.CDTServiceExpired | The CDT service is out of service. | |
| 400 | ParamMismatch.QueueSchedulingModeAndQueueType | The parameters QueueSchedulingMode and QueueType are incompatible. | |
| 400 | ParamMismatch.QueueSchedulingModeAndBandwidth | The parameters QueueSchedulingMode and Bandwidth are incompatible. | |
| 400 | InvalidOperation.QueuesExceeded | The operation is invalid because the maximum queue quota for HierarchicalQoS has been exceeded. | |
| 400 | ParamMismatch.QueueTypeAndBandwidthPercent | The parameters QueueType and BandwidthPercent are incompatible. | |
| 400 | InvalidOperation.PriorityQueueExceeded | The operation is invalid because HierarchicalQoS supports only one priority queue. | |
| 404 | InvalidTrafficQosPolicyId.NotFound | The specified TrafficQosPolicyId is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.