API request constraints

appsec_api_request_constraints

Modifies the action taken when an API request constraint triggers.

To use this operation, call the akamai_appsec_api_endpoints data source to list the names of your API endpoints, then apply a constraint (and an accompanying action) to one of those endpoints.

resource "akamai_appsec_api_request_constraints" "my_api_request_constraints" {
  config_id          = 12345
  security_policy_id = "abcd_123456"
  api_endpoint_id    = 12345
  action             = "alert"
}

Arguments

ArgumentRequiredDescription
config_id✔️A security configuration ID.
security_policy_id✔️A security policy ID.
action✔️Action to assign to the API request constraint. Possible values are:
  • alert. Records information about the request.
  • deny. Blocks the request.
  • deny. Takes your custom action against the request.
  • none. No action taken.
api_endpoint_idID of the API endpoint the constraint will be assigned to.