Skip to main content
POST
/
shield
/
shield-zone
cURL
curl --request POST \
  --url https://api.bunny.net/shield/shield-zone \
  --header 'Content-Type: application/json' \
  --data '
{
  "pullZoneId": 123,
  "shieldZone": {
    "shieldZoneId": 123,
    "premiumPlan": true,
    "planType": 0,
    "learningMode": true,
    "learningModeUntil": "2023-11-07T05:31:56Z",
    "wafEnabled": true,
    "wafExecutionMode": 0,
    "wafDisabledRules": [
      "<string>"
    ],
    "wafLogOnlyRules": [
      "<string>"
    ],
    "wafRequestHeaderLoggingEnabled": true,
    "wafRequestIgnoredHeaders": [
      "<string>"
    ],
    "wafRealtimeThreatIntelligenceEnabled": true,
    "wafProfileId": 123,
    "wafEngineConfig": [
      {
        "name": "<string>",
        "valueEncoded": "<string>"
      }
    ],
    "wafRequestBodyLimitAction": 0,
    "wafResponseBodyLimitAction": 0,
    "dDoSShieldSensitivity": 0,
    "dDoSExecutionMode": 0,
    "dDoSChallengeWindow": 123,
    "blockVpn": true,
    "blockTor": true,
    "blockDatacentre": true,
    "whitelabelResponsePages": true
  }
}
'
{
  "data": {
    "pullZoneId": 123,
    "shieldZone": {
      "shieldZoneId": 123,
      "premiumPlan": true,
      "planType": 0,
      "learningMode": true,
      "learningModeUntil": "2023-11-07T05:31:56Z",
      "wafEnabled": true,
      "wafExecutionMode": 0,
      "wafDisabledRules": [
        "<string>"
      ],
      "wafLogOnlyRules": [
        "<string>"
      ],
      "wafRequestHeaderLoggingEnabled": true,
      "wafRequestIgnoredHeaders": [
        "<string>"
      ],
      "wafRealtimeThreatIntelligenceEnabled": true,
      "wafProfileId": 123,
      "wafEngineConfig": [
        {
          "name": "<string>",
          "valueEncoded": "<string>"
        }
      ],
      "wafRequestBodyLimitAction": 0,
      "wafResponseBodyLimitAction": 0,
      "dDoSShieldSensitivity": 0,
      "dDoSExecutionMode": 0,
      "dDoSChallengeWindow": 123,
      "blockVpn": true,
      "blockTor": true,
      "blockDatacentre": true,
      "whitelabelResponsePages": true
    }
  },
  "error": {
    "statusCode": 100,
    "success": true,
    "message": "<string>",
    "errorKey": "<string>"
  }
}

Body

pullZoneId
integer<int64>
required
shieldZone
object

Response

OK

data
object
error
object

Generic response object containing status information for API operations.