输入示例
POST https://waf.volcengineapi.com/?Action=CreateCustomPage&Version=2023-12-25
{
"Host": "example.volcwaf001.com",
"Policy": 1,
"ClientIp": "ALL",
"Name": "自定义规则1",
"Description": "增加一条自定义响应拦截规则。",
"Url": "/test",
"Enable": 1,
"Code": 403,
"PageMode": 0,
"ContentType": "text/html",
"Body": "<!DOCTYPE html> <html> <meta charset=\"utf-8\"> <body> <p> !!! 系统禁止访问 </p> </body> </html>",
"Advanced": 1,
"RedirectUrl": "/test/path1",
"ProjectName": "default",
"Accurate": {
"Logic": 1,
"AccurateRules": [
{
"HttpObj": "request.schema",
"ObjType": 0,
"Opretar": 2,
"Property": 0,
"ValueString": "http"
}
]
}
}输出示例
{
"ResponseMetadata": {
"RequestId": "20230604110420****100232280022D31",
"Action": "CreateCustomPage",
"Version": "2023-12-25",
"Service": "waf",
"Region": "cn-beijing"
},
"Result": {
"Id": 1876
}
}