指定されたインスタンスの WAF ルールセット構成 (位置、名前、その他のプロパティなど) を変更します。
操作説明
リクエストの説明
この操作は、既存の WAF ルールセットを更新します。ルールセットの位置、名前、説明、ステータス、式を変更できます。
変更したいパラメーターのみを含めてください。変更しないパラメーターは省略してください。
注意:この操作を呼び出す前に、
InstanceIdとIdの値が正しいことを確認してください。そうでない場合、リクエストが失敗する可能性があります。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:UpdateUserWafRuleset |
none |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| InstanceId |
string |
必須 |
インスタンス ID。 |
esa-xxxxxxx |
| 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 |
| Shared | WafBatchRuleShared |
任意 |
WAF ルールセットの共有構成。 |
|
| Rules |
array |
任意 |
WAF ルールセット内のルール構成のリスト。 |
[ { "Id": 20000001, "Name": "rule1", "Expression": "ip.src eq 1.1.1.1", "Action": "deny" } |
| WafRuleConfig |
任意 |
WAF ルールセット内のルール構成。 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答スキーマ。 |
||
| RequestId |
string |
リクエスト ID。 |
xxxx-xxxx-xxxx-xxxx |
例
成功レスポンス
JSONJSON
{
"RequestId": "xxxx-xxxx-xxxx-xxxx"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | InstanceNotExist | The instance does not exist. Check whether the specified instance ID is correct or whether the instance belongs to your account. | |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 403 | Rule.Config.Noncompliance | The specified rule configuration does not meet the compliance requirements.Check and adjust your configurations. | |
| 403 | Rule.Config.Malformed | The format of the rule configuration is invalid.Check the configuration for syntax errors or structural inconsistencies and correct them to meet the requirements. | |
| 403 | %s.NotSupport | The specified resource type %s is not supported. | |
| 403 | %s.OverQuota | The quantity of %s exceeds the quota. | |
| 403 | %s.WrongValueMatched | The value of specified parameter %s can not pass the matching check. | 需要手动添加日文描述 |
| 403 | Ruleset.NotExist | The specified rule set does not exist or has not been registered in the system.Check whether the specified rule set identifier is valid and matches a rule set that has been correctly defined and maintained by the system's rule set registry.If you want to add a new rule set, make sure that the creation and registration process is complete to bring the rule set into effect. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。