Version: v2023-01-05 | Includes use: Yes |
|---|
Behavior name: Allow DELETE
Allow HTTP requests using the DELETE method. By default, GET, HEAD, and OPTIONS requests are allowed, and all other methods result in a 501 error. Such content does not cache, and any DELETE requests pass to the origin. See also the allow_options, allow_patch, allow_post, and allow_put behaviors.
Default behavior
These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.
data "akamai_property_rules_builder" "allow_delete" {
rules_v2023_01_05 {
name = "Allow DELETE"
comments = "Allow HTTP requests using the DELETE method."
behavior {
allow_delete {
enabled = true
allow_body = false
}
}
}
}
"behaviors": [
{
"Name": "allowDelete",
"options": {
"enabled": true,
"allowBody": false
}
}
]
Options
| Option | Description |
|---|---|
enabled |
Allows DELETE requests. Content does not cache.
|
allow_body |
Allows data in the body of the
DELETE request.
|
