allow_cloudlets_origins
Version: v2025-02-18 | Includes use: No |
---|
Behavior name: Allow Conditional Origins
Allows Cloudlets Origins to determine the criteria, separately from the Property Manager, under which alternate origin
definitions are assigned.
This behavior needs to appear alone within its own rule. When enabled, it allows any cloudlets_origin
criteria within sub-rules to override the prevailing origin.
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_cloudlets_origins" {
rules_v2025_02_18 {
name = "Allow Conditional Origins"
comments = "Set a cloudlet origin to override behaviors and criteria set in your main origin rule tree."
behavior {
allow_cloudlets_origins {
enabled = true
honor_base_directory = false
purge_origin_query_parameter = "originId"
}
}
}
}
"behaviors" [
{
"name": "allowCloudletsOrigins",
"options": {
"enabled": true,
"honorBaseDirectory": false,
"purgeOriginQueryParameter": "originId"
}
}
]
Options
Option | Description |
---|---|
enabled |
Allows you to assign custom origin definitions referenced in sub-rules by
cloudlets_origin labels. If disabled, all sub-rules are ignored.
|
honor_base_directory |
Prefixes any Cloudlet-generated origin path with a path defined by an Origin Base Path behavior. If no path is defined, it has no effect. If another Cloudlet policy already prepends the same Origin Base Path, the path is not duplicated.
|
purge_origin_query_parameter |
When purging content from a Cloudlets Origin, this specifies a query parameter name whose value is the specific named origin to purge. Note that this only applies to content purge requests, for example when using the Content Control Utility API.
|
Updated about 14 hours ago