Menghapus kebijakan penandaan lalu lintas yang ditentukan.
Deskripsi operasi
-
DeleteTrafficMarkingPolicy adalah operasi asinkron. Setelah permintaan dikirim, sistem mengembalikan request ID dan menjalankan tugas di latar belakang. Anda dapat memanggil operasi ListTrafficMarkingPolicies untuk mengecek status kebijakan penandaan lalu lintas tersebut.
Jika kebijakan penandaan lalu lintas berada dalam status Deleting, artinya kebijakan tersebut sedang dalam proses penghapusan. Anda masih dapat menanyakan statusnya, tetapi tidak dapat melakukan operasi lain terhadap kebijakan tersebut.
Jika kebijakan penandaan lalu lintas tidak ditemukan, berarti kebijakan tersebut telah berhasil dihapus.
-
Sebelum menghapus kebijakan penandaan lalu lintas, Anda harus menghapus semua aturan klasifikasi lalu lintas dari kebijakan tersebut. Untuk informasi selengkapnya, lihat RemoveTrafficMatchRuleFromTrafficMarkingPolicy.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DeleteTrafficMarkingPolicy |
delete |
*CenInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Token client yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menghasilkan nilainya dari sisi client, tetapi harus memastikan bahwa nilainya unik di antara semua permintaan. Token client hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan nilai RequestId sebagai nilai ClientToken. Nilai RequestId untuk setiap permintaan API mungkin berbeda. |
123e4567-e89b-12d3-a456-426**** |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan dry run. Nilai yang valid:
|
false |
| TrafficMarkingPolicyId |
string |
Yes |
ID kebijakan penandaan lalu lintas. |
tm-u9nxup5kww5po8**** |
| Force |
boolean |
No |
Apakah akan memaksa penghapusan kebijakan penandaan lalu lintas. Nilai yang valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil yang dikembalikan. |
||
| RequestId |
string |
ID permintaan. |
5F1F3A57-A753-572B-8F71-4F964398C566 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "5F1F3A57-A753-572B-8F71-4F964398C566"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | AssociationExist.TransitQosRuleExist | The rule with the specified TrafficMarkingPolicy already exists. | The error message returned because the traffic marking policy contains rules. You must delete the rules before you delete the traffic marking policy. |
| 400 | IncorrectStatus.TrafficMarkingPolicy | The status of TrafficMarkingPolicy is incorrect. | The error message returned because the status of the traffic marking policy does not support this operation. Try again later. |
| 400 | InvalidTrafficMarkingPolicyId.NotFound | The specified TrafficMarkingPolicyId is not found. | The error message returned because the specified traffic marking policy ID (TrafficMarkingPolicyId) does not exist. |
| 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 | IncorrectStatus.TransitRouterInstance | The status of TransitRouter is incorrect. | The error message returned because the transit router is in an invalid state. |
| 400 | MissingParam.TrafficMarkingPolicyId | The parameter TrafficMarkingPolicyId is mandatory. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.