Rules
akamai_property_rules
Use the akamai_property_rules
data source to query and retrieve the rule tree of
an existing property version. This data source lets you search across the contracts
and groups you have access to.
Example
This example returns the rule tree for version 3 of a property based on the selected contract and group.
data "akamai_property_rules" "my-example" {
property_id = "prp_123"
group_id = "grp_12345"
contract_id = "ctr_1-AB123"
version = 3
}
output "property_match" {
value = data.akamai_property_rules.my-example
}
Argument reference
This data source supports these arguments:
contract_id
- (Required) A contract's unique ID, including thectr_
prefix.group_id
- (Required) A group's unique ID, including thegrp_
prefix.property_id
- (Required) A property's unique ID, including theprp_
prefix.version
- (Optional) The version to return. Returns the latest version by default.
Attributes reference
This data source returns these attributes:
rule_format
- The rule tree version used. Property rule objects are versioned infrequently, and are known as rule formats.rules
- A JSON-encoded rule tree for the property.errors
- A list of validation errors for the rule tree object returned.
Updated over 1 year ago