allow_​put

Version: v2025-02-18Includes use: Yes

Behavior name: Allow PUT

Allow HTTP requests using the PUT 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 PUT requests pass to the origin. See also the allow​_delete, allow​_options, allow​_patch, and allow​_post 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_put" {
  rules_v2025_02_18 {
    name     = "Allow PUT"
    comments = "Allow HTTP requests using the PUT method."
    behavior {
      allow_put {
        enabled = true
      }
    }
  }
}
"behaviors":[
  {
    "name": "allowPut",
    "options": {
      "enabled": true
    }
  }
]

Options

Option Description
enabled
Allows PUT requests. Content does not cache.