Mengaktifkan atau menonaktifkan Simple Log Service untuk Web Application Firewall (WAF).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyUserWafLogStatus |
update |
*All Resource
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans WAF. Catatan
Panggil DescribeInstance untuk mengkueri ID instans WAF. |
waf-cn-mp9153**** |
| LogStatus |
integer |
Yes |
Apakah Simple Log Service diaktifkan. Nilai valid:
|
1 |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfm***q |
| LogRegionId |
string |
No |
ID wilayah penyimpanan log. Jika Anda tidak menentukan parameter ini, Simple Log Service diaktifkan di wilayah tempat instans WAF berada.
Catatan
Panggil DescribeUserSlsLogRegions untuk mengkueri wilayah penyimpanan log yang tersedia. |
cn-beijing |
| RegionId |
string |
No |
Wilayah tempat instans WAF berada. Nilai valid:
|
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D7861F61-5B61-****-A47C-6B19160***** |
| LogStoreName |
string |
The name of the Logstore in Simple Log Service (SLS). |
wafng-logstore |
| ProjectName |
boolean |
Indicates whether the Simple Log Service project is created. |
wafng-project-14316572********-cn-hangzhou |
Contoh
Respons sukses
JSONformat
{
"RequestId": "D7861F61-5B61-****-A47C-6B19160*****",
"LogStoreName": "wafng-logstore",
"ProjectName": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.