Flood Shield 2.0

ListNonSharedWAFRuleExceptionsForWAFRules

更新時間: 2025-10-14 14:14:16

Get a list of exceptions for the WAF rules.

  • 単一ユーザーの使用頻度: 300/5min
  • 使用できるプロダクト: Cloud Security 2.0,Flood Shield 2.0
API認証の詳細については、以下を参照してください:API認証の概要

リクエストパラメータ

リクエストヘッダ

パラメータ名説明
serviceTypeString
Security service type. Please enter a specific service type, if you purchase multiple security services.

Body パラメータ

パラメータ名説明
*domainListList
Domain list.
*ruleIdListList
WAF rule ID list.

レスポンスパラメータ

Body パラメータ

パラメータ名説明
codeString
Please refer to the error code for exceptions.
msgString
Description.
dataList
Data.
idString
Rule exception ID.
domainString
Domain.
ruleIdInteger
WAF rule ID.
typeString
選択可能な値:ippathuriurlParamNameurlParamValueuserAgenthttpHeaderNamehttpHeaderValuecookiebodybodyParamNamebodyParamValue
Matching conditions. ip: IP path: Path uri: URI urlParamName: URI Parameter Name urlParamValue: URI Parameter Value userAgent: User Agent httpHeaderName: Request Header Name httpHeaderValue: Request Header Value cookie: Cookie body: Body bodyParamName: Body Parameter Name bodyParamValue: Body Parameter Value
matchTypeString
選択可能な値:EQUALCONTAINREGEX
Match type,IP can only be EQUAL. EQUAL: Equal CONTAIN: Contains REGEX: Regular match
contentListList
Rule exceptions. When matchType=EQUAL, case-sensitive.

エラーコード

エラーコード(code)説明(message)HTTPステータスコード意味
40010Request\nparameter\nerror.200Request\nparameter\nerror.
500Server\nerror.200Server\nerror.

入力例

JSON
JSON
リクエスト例
コピー コピー完了
#!/bin/bash
username="example_username"
# Note that this must be a single quote to avoid the special $ character
apiKey='example_apiKey'
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`

curl -i --url "https://api.cdnetworks.com/api/v1/waf/rule-exception/list-normal" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
    "domainList": [
        "waap.example.com"
    ],
    "ruleIdList": [
        5005
    ]
}'
レスポンス例
コピー コピー完了
{
    "code": 200,
    "msg": "Success",
    "data": [
        {
            "id": "1234567890123456789",
            "domain": "waap.example.com",
            "ruleId": 5005,
            "type": "ip",
            "matchType": "EQUAL",
            "contentList": [
                "1.1.1.1"
            ]
        }
    ]
}