Panggil operasi DescribeDcdnFullDomainsBlockIPConfig untuk mengkueri konfigurasi daftar blokir alamat IP.
Deskripsi operasi
Operasi ini mengembalikan alamat IP yang sedang berlaku beserta waktu kedaluwarsanya untuk alamat IP atau Blok CIDR (Classless Inter-Domain Routing) tertentu. Jika Anda tidak menentukan alamat IP apa pun, semua alamat IP yang sedang berlaku beserta waktu kedaluwarsanya akan dikembalikan.
Hasilnya ditulis ke objek Object Storage Service (OSS), dan URL OSS dikembalikan. Konten dalam objek OSS menggunakan format
ip-waktu kedaluwarsa. Waktunya dalam format YYYY-MM-DD hh:mm:ss.URL bersama dari objek OSS berlaku selama 3 hari.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:DescribeDcdnFullDomainsBlockIPConfig |
none |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| IPList |
string |
No |
Daftar alamat IP atau Blok CIDR yang akan dikueri. Pisahkan multiple alamat IP dengan koma (,). Anda dapat menentukan hingga 50 alamat IP. |
10.XX.XX.10/24 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| RequestId |
string |
ID permintaan. |
0C58632F-BA12-1A1E-986D-09285752B42C |
| Message |
string |
Pesan hasil. Jika permintaan berhasil, URL OSS dikembalikan. Jika permintaan gagal, pesan error dikembalikan. |
http://xxxx-api.oss-cn-hangzhou.aliyuncs.com/blocklist%2Fxxxxxxxxxxxx.txt?Expires=1682663947&OSSAccessKeyId=xxxxxxxxxx&Signature=xxxxxx |
| Code |
integer |
Kode hasil. Nilai selain 0 dapat menunjukkan salah satu error berikut:
|
0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0C58632F-BA12-1A1E-986D-09285752B42C",
"Message": "http://xxxx-api.oss-cn-hangzhou.aliyuncs.com/blocklist%2Fxxxxxxxxxxxx.txt?Expires=1682663947&OSSAccessKeyId=xxxxxxxxxx&Signature=xxxxxx",
"Code": 0
}
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. |
| 500 | InternalError | An internal error occurred; please try again later. | An internal error occurred. Try again later. If the error persists, submit a ticket. |
| 406 | InvalidKey.QuotaFull | The maximum number of keys is exceeded. | The number of keys has reached the upper limit. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.