Mengambil detail aturan WAF tertentu, termasuk konfigurasi dan statusnya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetWafRule |
get |
*Site
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
ID aturan WAF. Anda dapat memperoleh ID ini dengan memanggil operasi ListWafRules. |
20000001 |
| SiteId |
integer |
Yes |
ID situs. Anda dapat memperoleh ID ini dengan memanggil operasi ListSites. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Objek respons. |
||
| RequestId |
string |
ID permintaan. |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| UpdateTime |
string |
Waktu terakhir aturan diperbarui. |
2024-01-01T00:00:00Z |
| Id |
integer |
ID aturan WAF. Anda dapat memperoleh ID ini dengan memanggil operasi ListWafRules. |
2000001 |
| Position |
integer |
Posisi aturan dalam ruleset. |
1 |
| Name |
string |
Nama aturan. |
example |
| Status |
string |
Status aturan. |
on |
| Phase |
string |
Fase eksekusi aturan WAF.
|
http_custom |
| Config | WafRuleConfig |
Konfigurasi aturan. |
|
| RulesetId |
integer |
ID ruleset WAF. Anda dapat memperoleh ID ini dengan memanggil operasi ListWafRulesets. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"UpdateTime": "2024-01-01T00:00:00Z",
"Id": 2000001,
"Position": 1,
"Name": "example",
"Status": "on",
"Phase": "http_custom",
"Config": {
"Status": "",
"Action": "",
"Actions": {
"Response": {
"Id": 0,
"Code": 0
},
"Bypass": {
"Skip": "",
"RegularRules": [
0
],
"CustomRules": [
0
],
"RegularTypes": [
""
],
"Tags": [
""
]
}
},
"ManagedList": "",
"ManagedRulesets": [
{
"ProtectionLevel": 0,
"Action": "",
"ManagedRules": [
{
"Status": "",
"Action": "",
"Id": 0
}
],
"AttackType": 0,
"NumberTotal": 0,
"NumberEnabled": 0
}
],
"Sigchl": [
""
],
"Name": "",
"AppSdk": {
"CustomSign": {
"Value": "",
"Key": ""
},
"CustomSignStatus": "",
"FeatureAbnormal": [
""
]
},
"RateLimit": {
"Characteristics": {
"Logic": "",
"Criteria": [
{
"Logic": "",
"Criteria": [
{
"Logic": "",
"Criteria": [
{
"MatchType": "",
"MatchOperator": "",
"MatchValue": "",
"Negate": true,
"ConvertToLower": true
}
],
"MatchType": "",
"MatchOperator": "",
"MatchValue": "",
"Negate": true,
"ConvertToLower": true
}
],
"MatchType": "",
"MatchOperator": "",
"MatchValue": "",
"Negate": true,
"ConvertToLower": true
}
],
"MatchType": "",
"MatchOperator": "",
"MatchValue": "",
"Negate": true,
"ConvertToLower": true
},
"OnHit": true,
"TTL": 0,
"Threshold": {
"ManagedRulesBlocked": 0,
"DistinctManagedRules": 0,
"ResponseStatus": {
"Ratio": 0,
"Count": 0,
"Code": 0
},
"Traffic": "",
"Request": 0
},
"Interval": 0
},
"Type": "",
"AppPackage": {
"PackageSigns": [
{
"Sign": "",
"Name": ""
}
]
},
"ManagedGroupId": 0,
"Timer": {
"Scopes": "",
"Zone": 0,
"Periods": [
{
"Start": "",
"End": ""
}
],
"WeeklyPeriods": [
{
"Days": "",
"DailyPeriods": [
{
"Start": "",
"End": ""
}
]
}
]
},
"Expression": "",
"SecurityLevel": {
"Value": ""
},
"Value": "",
"Id": 0,
"Notes": ""
},
"RulesetId": 0
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.