Mengkueri satu konfigurasi pengiriman log untuk cloud hibrida.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeLogDeliveryConfig |
get |
*全部资源
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Web Application Firewall (WAF). Catatan
Panggil operasi DescribeInstance untuk mengkueri ID instans WAF. |
waf_elasticity-***** |
| DeliveryName |
string |
Yes |
Nama konfigurasi pengiriman log. |
test1 |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya Alibaba Cloud. |
rg-acfm***q |
| RegionId |
string |
No |
Wilayah tempat instans WAF berada. Nilai valid:
|
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
66A98669-CC6E-4F3E-80A6-****** |
| DeliveryConfig |
object |
The log delivery configuration. |
|
| DeliveryName |
string |
The name of the log delivery configuration. |
test1 |
| DeliveryType |
string |
The type of the log delivery configuration. Valid values:
|
syslog |
| DeliveryDetail |
string |
The details of the log delivery configuration, in JSON format. Catatan
This parameter is the same as the DeliveryDetail parameter of the CreateLogDeliveryConfig operation. For more information, see CreateLogDeliveryConfig. |
{ "rfcVersion": "rfc3164", "protocol": "tcp", "servers": [ { "address": "1.1.1.1", "port": 20 } ] } |
Contoh
Respons sukses
JSONformat
{
"RequestId": "66A98669-CC6E-4F3E-80A6-******",
"DeliveryConfig": {
"DeliveryName": "test1",
"DeliveryType": "syslog",
"DeliveryDetail": "{\n \"rfcVersion\": \"rfc3164\",\n \"protocol\": \"tcp\",\n \"servers\": [\n {\n \"address\": \"1.1.1.1\",\n \"port\": 20\n }\n ]\n}"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.