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
| Argument | Required | Description |
|---|---|---|
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:
|
api_endpoint_id | ID of the API endpoint the constraint will be assigned to. |
Updated 12 days ago
