Membuat kebijakan Web Application Firewall (WAF).
Deskripsi operasi
Batas throttling untuk satu pengguna adalah 20 panggilan per detik.
Hanya permintaan POST yang didukung.
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 perlindungan. Nama dapat terdiri dari hingga 64 karakter dan boleh mengandung huruf, angka, serta garis bawah (_). |
policy_test |
| PolicyType |
string |
Yes |
Jenis kebijakan. Nilai yang valid:
|
default |
| PolicyStatus |
string |
Yes |
Status kebijakan perlindungan. Nilai yang valid:
|
on |
| DefenseScene |
string |
Yes |
Jenis kebijakan perlindungan WAF. Nilai yang valid:
|
waf_group |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PolicyId |
integer |
ID kebijakan perlindungan. |
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.