Memblokir atau membuka blokir alamat IP. Pengaturan ini berlaku untuk semua nama domain di akun Anda.
Deskripsi operasi
-
To use this operation, submit a ticket.
-
This operation is suitable for blocking or unblocking a maximum of 1,000 IP addresses or CIDR blocks at a time.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:SetCdnFullDomainsBlockIP |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| IPList |
string |
Yes |
Alamat IP yang akan diblokir atau dibuka blokirnya. Pisahkan beberapa alamat IP dengan koma (,). Anda dapat menentukan hingga 1.000 alamat IP. |
1.XXX.XXX.1,2.XXX.XXX.2 |
| OperationType |
string |
Yes |
Tipe operasi.
|
block |
| BlockInterval |
integer |
No |
Durasi pemblokiran alamat IP atau blok CIDR. Unit: detik. Nilai 0 menentukan bahwa alamat IP atau blok CIDR diblokir secara permanen. Parameter ini hanya tersedia jika Anda menetapkan OperationType ke block. |
3000 |
| UpdateType |
string |
No |
Tipe Durasi pemblokiran. Parameter ini hanya tersedia jika Anda menetapkan OperationType ke block. Nilai valid:
|
cover |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Code |
integer |
The status code. The status code 0 indicates that the call is successful. If another status code is returned, the call fails. |
0 |
| Message |
string |
The additional information returned. If the request was successful, OK is returned. If the request failed, an error message is returned. |
OK |
| RequestId |
string |
The request ID. |
23ACE7E2-2302-42E3-98F8-E5E697FD86C3 |
Contoh
Respons sukses
JSONformat
{
"Code": 0,
"Message": "OK",
"RequestId": "23ACE7E2-2302-42E3-98F8-E5E697FD86C3"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | QuotaExceeded | The quota is exceeded. | The quota is exhausted. |
| 403 | OperationDenied | You do not have access to this operation. | You are not authorized to operate the specified resource; please check your authorization using RAM. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.