Penalty box conditions

akamai_appsec_penalty_box_conditions

Create, update, or delete the conditions that trigger penalty box settings for a given security policy. To delete your settings, run terraform destroy.

resource "akamai_appsec_penalty_box_conditions" "my_conditions" {
  config_id = 12345
  security_policy_id = abcd_123456
  penalty_box_conditions = file("$path.root/conditions.json")
}

Arguments

ArgumentRequiredDescription
config_idA security configuration ID.
security_policy_idA security policy ID.
penalty_box_conditionsA pointer to a JSON file with your penalty box conditions.

Conditions JSON

ParameterDescription
conditionOperatorRequired. The logic to apply to a set of penalty box conditions. Value is one of:
  • AND
  • OR
conditionsRequired. An array of objects containing your penalty box's trigger conditions.
ObjectMatch condition typeDescription
caseSensitiveuriQueryMatchWhen set to true, triggers condition based on the case-sensitivity of the provided query
parameter value.

clientListsclientListMatchAn array of client lists that trigger the condition.
extensionsextensionMatchAn array of file extension types that trigger the condition.
filenamesfilenameMatchAn array of file names that trigger the condition.
headerrequestHeaderMatchThe HTTP header that triggers the condition.
hostshostMatchAn array of hostnames that trigger the condition.
ipsipMatchAn array of IPs that trigger the condition.
methodsrequestMethodMatchThe HTTP methods that trigger the condition. Possible values are:
  • GET
  • POST
  • PUT
  • DELETE
  • OPTIONS
  • TRACE
  • CONNECT
  • PATCH
nameuriQueryMatchThe query parameter that triggers the condition.
nameCaseuriQueryMatchWhen set to true, triggers condition based on the case-sensitivity of the provided query
parameter name.
pathspathMatchAn array of the paths that trigger the condition.
positiveMatchAllRequired. When set to true, the trigger is a match. Setting this to false triggers on the lack of match.
typeAllRequired. The condition type to match on. Possible values are:
  • clientListMatch
  • extensionMatch
  • filenameMatch
  • hostMatch
  • ipMatch
  • pathMatch
  • requestHeaderMatch
  • requestMethodMatch
  • uriQueryMatch
useHeadersipMatch
clientListMatch
When set to true, it includes the X-Forwarded-For header.
valueuriQueryMatch
requestHeaderMatch
Respectively, the query parameter or headervalue.
valueCaserequestHeaderMatchWhen set to true, triggers condition based on the case-sensitivity of the provided header value.
valueWildcardrequestHeaderMatchWhen set to true, sets the provided header value as a wildcard.
wildcarduriQueryMatchWhen set to true, sets the provided query parameter value as a wildcard.

Attributes

There is no standard output for this resource, but setting an output method returns these attributes.

AttributeDescription
config_idYour security configuration's ID.
idA concatenation of your security configuration and policy IDs.
jsonA JSON encoded representation of your condition details.
output_textA table representation of your condition details.
security_policy_idYour security policy's ID.
output_textA tabular report listing the name and ID of your endpoints.

Did this page help you?