curl --request PATCH \
--url https://api.bunny.net/shield/shield-zone \
--header 'Content-Type: application/json' \
--data '
{
"shieldZoneId": 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": {
"shieldZoneId": 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>"
}
}curl --request PATCH \
--url https://api.bunny.net/shield/shield-zone \
--header 'Content-Type: application/json' \
--data '
{
"shieldZoneId": 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": {
"shieldZoneId": 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>"
}
}Was this page helpful?