Anda dapat memanggil operasi ModifyDcdnWafPolicyDomains untuk mengubah domain yang ditautkan ke kebijakan mitigasi tertentu.
Deskripsi operasi
Batas throttling untuk operasi ini adalah 20 panggilan per detik per pengguna.
Operasi ini mendukung permintaan POST.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:ModifyDcdnWafPolicyDomains |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyId |
integer |
Yes |
ID kebijakan mitigasi. Anda hanya dapat menentukan satu ID. |
1000001 |
| Method |
integer |
No |
Metode binding. Nilai yang valid:
Catatan
|
0 |
| BindDomains |
string |
No |
Nama domain yang akan di-bind ke kebijakan mitigasi. Anda dapat menentukan hingga 50 nama domain. Pisahkan beberapa nama domain dengan koma (,). Catatan
Anda harus menentukan salah satu dari BindDomains atau UnbindDomains. |
example.com,example2.com |
| UnbindDomains |
string |
No |
Nama domain yang akan di-unbind dari kebijakan mitigasi. Anda dapat menentukan hingga 50 nama domain. Pisahkan beberapa nama domain dengan koma (,). Catatan
Anda harus menentukan salah satu dari BindDomains atau UnbindDomains. |
example3.com |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
CB1A380B-09F0-41BB-2B35-72F8FD6DA2FE |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CB1A380B-09F0-41BB-2B35-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.NotExist | The specified policy does not exist. | The specified protection policy does not exist. |
| 400 | DomainBindAndUnbind.Overlapped | The specified bind and unbind domain names overlap. | The domain name that you want to associate with and dissociate from are the same. |
| 400 | Domain.Bound.DefaultAndCustom | The specified domain name is bound to both default and custom policies. | The specified domain name is associated with both the default policy and a custom policy. |
| 400 | DefenseScene.MultiPolicies.NotSupport | The specified defense scene does not support multiple policies bound to the same domain name. | A domain name cannot be bound to multiple policies in the specified protection scenario. |
| 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.