指定されたインスタンスの WAF ルールセットの詳細を照会します。
操作説明
操作の説明
GetUserWafRuleset 操作を呼び出すことで、インスタンス ID とルールセット ID に基づいて特定の Web アプリケーションファイアウォール (WAF) ルールセットに関する情報を取得できます。返される情報には、ルールセットの位置、名前、説明、ステータス、および特定のルールが含まれますが、これらに限定されません。リクエストの失敗を避けるため、必須パラメーターを正しく指定してください。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:GetUserWafRuleset |
get |
*すべてのリソース。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| InstanceId |
string |
必須 |
インスタンスの ID。 |
esa-xxxxxxx |
| Id |
integer |
必須 |
WAF ルールセットの ID。 |
10000001 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ。 |
||
| RequestId |
string |
リクエストの ID。 |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| Ruleset |
object |
WAF ルールセット。 |
{} |
| Id |
integer |
WAF ルールセットの ID。 |
10000001 |
| Position |
integer |
WAF ルールセットの位置。 |
1 |
| Name |
string |
WAF ルールセットの名前。 |
example |
| Description |
string |
WAF ルールセットの説明。 |
example |
| Status |
string |
WAF ルールセットのステータス。 |
on |
| Expression |
string |
WAF ルールセットの式。 |
ip.src == 1.1.1.1 |
| Phase |
string |
WAF ルールが実行される位相。有効な値:
|
http_custom |
| Shared | WafBatchRuleShared |
WAF ルールセットの共有構成。 |
{} |
| Rules |
array<object> |
WAF ルールセット内のルール構成のリスト。 |
[{}] |
|
object |
WAF ルールセット内のルール構成。 |
{} |
|
| UpdateTime |
string |
WAF ルールが最後に更新された時間。 |
2025-07-07T15:00:00Z |
| RulesetId |
integer |
WAF ルールセットの ID。 |
10000001 |
| Id |
integer |
WAF ルールの ID。 |
20000001 |
| Position |
integer |
WAF ルールの位置。 |
1 |
| Phase |
string |
WAF ルールの評価フェーズ。有効な値:
|
http_custom |
| Type |
string |
WAF ルールのタイプ。 |
http_ratelimit |
| Name |
string |
WAF ルールの名前。 |
example |
| Status |
string |
WAF ルールのステータス。 |
on |
| Fields |
array |
WAF ルールの一致フィールドのリスト。 |
["ip.src"] |
|
string |
WAF ルールの一致フィールド。 |
ip.src |
|
| CharacteristicsFields |
array |
WAF ルールの統計フィールドのリスト。 |
["http.host"] |
|
string |
WAF ルールの統計フィールド。 |
http.host |
|
| Action |
string |
ルールのアクション。有効な値:
|
deny |
| Skip |
string |
WAF ルールのスキップモード。 |
all |
| Tags |
array |
ルールがスキップするフェーズ。 |
["http_custom"] |
|
string |
ルールがスキップするフェーズ。 |
http_custom |
|
| Config | WafRuleConfig |
WAF ルールの設定。 |
{ "Id": 20000001, "Name": "rule1", "Expression": "ip.src eq 1.1.1.1", "Action": "deny" } |
例
成功レスポンス
JSONJSON
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"Ruleset": {
"Id": 10000001,
"Position": 1,
"Name": "example",
"Description": "example",
"Status": "on",
"Expression": "ip.src == 1.1.1.1",
"Phase": "http_custom",
"Shared": {
"Target": "web",
"Mode": "automatic",
"CrossSiteId": 10000001,
"Name": "example",
"Match": {
"Logic": "and",
"Criteria": [
{
"Logic": "and",
"Criteria": [
{
"Logic": "and",
"Criteria": [
{
"MatchType": "ip.src",
"MatchOperator": "eq",
"MatchValue": "1.1.1.1",
"Negate": false,
"ConvertToLower": false
}
],
"MatchType": "ip.src",
"MatchOperator": "eq",
"MatchValue": "1.1.1.1",
"Negate": false,
"ConvertToLower": false
}
],
"MatchType": "ip.src",
"MatchOperator": "eq",
"MatchValue": "1.1.1.1",
"Negate": false,
"ConvertToLower": false
}
],
"MatchType": "ip.src",
"MatchOperator": "eq",
"MatchValue": "1.1.1.1",
"Negate": false,
"ConvertToLower": false
},
"Action": "deny",
"Actions": {
"Response": {
"Id": 50000001,
"Code": 403
}
},
"Expression": "ip.src eq 1.1.1.1"
},
"Rules": [
{
"UpdateTime": "2025-07-07T15:00:00Z",
"RulesetId": 10000001,
"Id": 20000001,
"Position": 1,
"Phase": "http_custom",
"Type": "http_ratelimit",
"Name": "example",
"Status": "on",
"Fields": [
"ip.src"
],
"CharacteristicsFields": [
"http.host"
],
"Action": "deny",
"Skip": "all",
"Tags": [
"http_custom"
],
"Config": {
"Status": "on",
"Action": "deny",
"Actions": {
"Response": {
"Id": 50000001,
"Code": 403
},
"Bypass": {
"Skip": "part",
"RegularRules": [
100001
],
"CustomRules": [
20000001
],
"RegularTypes": [
"sqli"
],
"Tags": [
"http_custom"
]
}
},
"ManagedList": "intelligence_crawler",
"ManagedRulesets": [
{
"ProtectionLevel": 4,
"Action": "deny",
"ManagedRules": [
{
"Status": "on",
"Action": "deny",
"Id": 100001
}
],
"AttackType": 11,
"NumberTotal": 100,
"NumberEnabled": 50
}
],
"Sigchl": [
"sig"
],
"Name": "example",
"AppSdk": {
"CustomSign": {
"Value": "examplesignvalue",
"Key": "sign"
},
"CustomSignStatus": "on",
"FeatureAbnormal": [
"wxbb_invalid_sign"
]
},
"RateLimit": {
"Characteristics": {
"Logic": "and",
"Criteria": [
{
"Logic": "and",
"Criteria": [
{
"Logic": "and",
"Criteria": [
{
"MatchType": "ip.src",
"MatchOperator": "eq",
"MatchValue": "1.1.1.1",
"Negate": false,
"ConvertToLower": false
}
],
"MatchType": "ip.src",
"MatchOperator": "eq",
"MatchValue": "1.1.1.1",
"Negate": false,
"ConvertToLower": false
}
],
"MatchType": "ip.src",
"MatchOperator": "eq",
"MatchValue": "1.1.1.1",
"Negate": false,
"ConvertToLower": false
}
],
"MatchType": "ip.src",
"MatchOperator": "eq",
"MatchValue": "1.1.1.1",
"Negate": false,
"ConvertToLower": false
},
"OnHit": true,
"TTL": 10,
"Threshold": {
"ManagedRulesBlocked": 10,
"DistinctManagedRules": 10,
"ResponseStatus": {
"Ratio": 10,
"Count": 10,
"Code": 404
},
"Traffic": "10Gb",
"Request": 10
},
"Interval": 10
},
"Type": "http_custom",
"AppPackage": {
"PackageSigns": [
{
"Sign": "sign",
"Name": "name"
}
]
},
"ManagedGroupId": 30000001,
"Timer": {
"Scopes": "permanent",
"Zone": 8,
"Periods": [
{
"Start": "2025-01-01T00:00:00Z",
"End": "2025-01-01T01:00:00Z"
}
],
"WeeklyPeriods": [
{
"Days": "1",
"DailyPeriods": [
{
"Start": "00:00:00",
"End": "01:00:00"
}
]
}
]
},
"Expression": "ip.src eq 10.0.0.1",
"SecurityLevel": {
"Value": "low"
},
"Value": "10.0.0.1",
"Id": 20000001,
"Notes": "example notes"
}
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | 入力パラメーターのフォーマット検証が失敗しました。有効な値を指定してください。 |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | サービスの呼び出しに失敗しました。後でもう一度お試しいただくか、詳細についてはカスタマーサポートにお問い合わせください。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。