Membuat kebijakan mitigasi WAF.
Deskripsi operasi
Jumlah maksimum panggilan operasi ini oleh setiap pengguna per detik: 20.
Metode permintaan: Permintaan POST didukung.
Proteksi Edge WAF menambahkan parameter ke Cookie, Query String, dan Header permintaan klien untuk menerapkan verifikasi JavaScript dan verifikasi slider Uji Turing Publik Otomatis Lengkap untuk membedakan Komputer dan Manusia. Pastikan server origin Anda dapat menerima parameter yang ditambahkan. Untuk informasi lebih lanjut, lihat Detail injeksi parameter.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:CreateDcdnWafPolicy |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyName |
string |
Yes |
Nama kebijakan mitigasi. Nama dapat berisi karakter bahasa Mandarin, huruf (huruf besar dan kecil), angka (0 hingga 9), dan garis bawah (_). Panjang nama dapat mencapai 64 karakter. |
policy_test |
| PolicyType |
string |
Yes |
Apakah kebijakan saat ini merupakan kebijakan default. Nilai valid:
|
default |
| PolicyStatus |
string |
Yes |
Status kebijakan mitigasi. Nilai valid:
|
on |
| DefenseScene |
string |
Yes |
Tipe kebijakan mitigasi WAF. Nilai valid:
|
waf_group |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PolicyId |
integer |
ID kebijakan mitigasi yang dibuat. |
10000001 |
| RequestId |
string |
ID permintaan. |
CB1A380B-09F0-41BB-A198-72F8FD6DA2FE |
Contoh
Respons sukses
JSONformat
{
"PolicyId": 10000001,
"RequestId": "CB1A380B-09F0-41BB-A198-72F8FD6DA2FE"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | A parameter is set to an invalid value. |
| 400 | Policy.DefaultExisted | The default policy is existed in specified defense scene. | The specified protection scenario already has a default policy. |
| 400 | PolicyName.AlreadyExists | The specified policy name already exists. | The specified policy name is already used by another policy. |
| 500 | InternalError | An internal error occurred; please try again later. | An internal error occurred. Try again later. If the error persists, submit a ticket. |
| 403 | %s.NotSupport | The specified resource type %s is not supported. | The specified resource type is not supported. To use this type of resource, contact us. |
| 403 | %s.OverQuota | The quantity of %s exceeds the quota. | The number of resources exceeds the quota. If you want to apply for more resources, contact us. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.