Membuat antrian dalam kebijakan Quality of Service (QoS) untuk mengelola lalu lintas jaringan dengan granularitas lebih halus, meningkatkan performa layanan, serta memenuhi service-level agreements (SLAs).
Deskripsi operasi
Operasi CreateCenInterRegionTrafficQosQueue merupakan operasi asinkron. Setelah Anda mengirim permintaan, sistem akan mengembalikan ID permintaan dan menjalankan tugas tersebut di latar belakang. Anda dapat memanggil operasi ListCenInterRegionTrafficQosPolicies untuk mengecek status kebijakan QoS guna menentukan status antrian. Saat memanggil operasi ini, Anda harus menetapkan parameter TrafficQosPolicyId.
Jika kebijakan QoS berada dalam status Modifying, antrian sedang dalam proses pembuatan. Dalam kasus ini, Anda dapat mengecek kebijakan QoS dan antrian, tetapi tidak dapat melakukan operasi lainnya.
Jika kebijakan QoS berada dalam status Active, antrian telah berhasil dibuat.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:CreateCenInterRegionTrafficQosQueue |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Token client yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan client untuk menghasilkan token, tetapi harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan ID permintaan sebagai client token. ID permintaan mungkin berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426**** |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan dry run. Nilai yang valid:
|
false |
| QosQueueName |
string |
No |
Nama antrian. Nama bisa kosong atau terdiri dari 1 hingga 128 karakter, dan tidak boleh diawali dengan http:// atau https://. |
nametest |
| QosQueueDescription |
string |
No |
Deskripsi antrian. Parameter ini opsional. Jika Anda memasukkan deskripsi, panjangnya harus antara 1 hingga 256 karakter dan tidak boleh diawali dengan http:// atau https://. |
desctest |
| RemainBandwidthPercent |
string |
No |
Persentase maksimum bandwidth cross-region 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) yang sesuai 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 |
Nilai DSCP yang sesuai dengan antrian saat ini. Anda dapat menentukan paling banyak 20 nilai DSCP untuk satu antrian dalam setiap panggilan. Pisahkan nilai DSCP dengan koma (,). |
5 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Respons. |
||
| QosQueueId |
string |
ID antrian. |
qos-queue-irqhi8k5fdyuu5**** |
| RequestId |
string |
ID permintaan. |
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. | The error message returned because the RemainBandwidthPercent parameter is set to invalid value. |
| 400 | IncorrectStatus.TrafficQosPolicy | The status of TrafficQosPolicy is incorrect. | The error message returned because the status of the specified QoS policy does not support the operation. |
| 400 | Duplicated.Dscps | The parameter Dscps are duplicated. | The error message returned because the descriptions are duplicate. |
| 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 | MissingParam.Bandwidth | The parameter Bandwidth is mandatory. | The error message returned because no bandwidth value is specified. You must specify a bandwidth value. |
| 400 | IllegalParam.BandwidthGuaranteeModeMismatch | The BandwidthGuaranteeMode does not match the Bandwidth or RemainBandwidthPercent. | 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. | The entered bandwidth causes the total QoS guaranteed bandwidth to exceed the cross-region bandwidth allocation value. |
| 400 | MissingParam.RemainBandwidthPercent | RemainBandwidthPercent is missing. | RemainBandwidthPercent is missing. |
| 400 | IllegalParam.Bandwidth | Bandwidth is illegal | The error message returned because the specified bandwidth value 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. |
| 400 | MissingParam.TrafficQosPolicyId | The parameter TrafficQosPolicyId is mandatory. | |
| 400 | Forbidden.CDTServiceExpired | The CDT service is out of service. | The cloud data transfer service has been suspended due for payment. Please renew the service and try again. |
| 404 | InvalidTrafficQosPolicyId.NotFound | The specified TrafficQosPolicyId is not found. | The error message returned because the specified QoS policy ID (TrafficQosPolicyId) does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.