列举指定站点的WAF运行阶段及其关联的规则集信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
SiteId | long | 是 | 站点 ID,可通过调用 ListSites 接口获取。 | 1 |
SiteVersion | integer | 否 | 站点版本。 | 0 |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"Phases": [
{
"Phase": "http_custom",
"Rulesets": [
{
"Id": 10000001,
"Name": "example",
"Shared": {
"Target": "",
"Mode": "",
"CrossSiteId": 0,
"Name": "",
"Match": {
"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
},
"Action": "",
"Actions": {
"Response": {
"Id": 0,
"Code": 0
}
},
"Expression": ""
},
"Rules": [
{
"Id": 20000001,
"Name": "example",
"Status": "on",
"Type": "http_custom",
"Match": {
"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
},
"Action": "deny",
"Actions": {
"Response": {
"Id": 50000001,
"Code": 403
},
"Bypass": {
"Skip": "part",
"Tags": [
"http_custom"
],
"RegularTypes": [
"sqli"
],
"RegularRules": [
100001
],
"CustomRules": [
20000001
]
}
},
"ManagedGroupId": 30000001,
"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
},
"Threshold": {
"Request": 10,
"Traffic": "10Gb",
"ManagedRulesBlocked": 10,
"DistinctManagedRules": 10,
"ResponseStatus": {
"Code": 404,
"Count": 10,
"Ratio": 10
}
},
"Interval": 10,
"TTL": 10,
"OnHit": true
},
"ManagedList": "intelligence_crawler",
"Timer": {
"Scopes": "",
"Zone": 0,
"Periods": [
{
"Start": "",
"End": ""
}
],
"WeeklyPeriods": [
{
"Days": "",
"DailyPeriods": [
{
"Start": "",
"End": ""
}
]
}
]
},
"Sigchl": [
"sig"
],
"AppSdk": {
"FeatureAbnormal": [
"wxbb_invalid_sign"
],
"CustomSignStatus": "on",
"CustomSign": {
"Key": "sign",
"Value": "examplesignvalue"
}
},
"AppPackage": {
"PackageSigns": [
{
"Name": "name",
"Sign": "sign"
}
]
},
"Expression": "ip.src eq 10.0.0.1",
"ManagedRulesets": [
{
"AttackType": 11,
"NumberTotal": 100,
"NumberEnabled": 50,
"ProtectionLevel": 4,
"Action": "deny",
"ManagedRules": [
{
"Id": 100001,
"Status": "on",
"Action": "deny"
}
]
}
],
"Value": "10.0.0.1",
"Notes": "example notes"
}
]
}
]
}
]
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParameter | The specified parameter is invalid. | 输入参数规范校验失败。 |
400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-09-25 | OpenAPI 错误码发生变更 | 查看变更详情 |
2024-09-18 | OpenAPI 错误码发生变更 | 查看变更详情 |