Include parents
akamai_property_include_parents
Get a list of parent properties that use a given include. In your property's rule tree, you can reference an include by adding the include
behavior and specifying the include_id
.
data "akamai_property_include_parents" "my_include_parents" {
contract_id = "C-0N7RAC7"
group_id = "12345"
include_id = "1234"
}
output "my_include_parents" {
value = data.akamai_property_include_parents.my_include_parents
}
Changes to Outputs:
+ my_include_parents = {
+ contract_id = "C-0N7RAC7"
+ group_id = "12345"
+ id = "1234"
+ include_id = "1234"
+ parents = [
+ {
+ id = "prp_12345"
+ is_include_used_in_production_version = false
+ is_include_used_in_staging_version = true
+ name = "my-property-1"
+ production_version = ""
+ staging_version = "1"
},
+ {
+ id = "prp_98765"
+ is_include_used_in_production_version = true
+ is_include_used_in_staging_version = true
+ name = "my-property-2"
+ production_version = "2"
+ staging_version = "1"
},
]
}
Arguments
Pass your contract, group, and include IDs in the body of the declaration to get parent properties that use a given include.
Argument | Required | Description |
---|---|---|
contract_id | ✔ | Your contract's ID. |
group_id | ✔ | Your group's ID. |
include_id | ✔ | Your include's ID. |
Attributes
Returned to you is a list of parents
for the specific include.
Attribute | Description |
---|---|
contract_id | Your contract's ID. |
group_id | Your group's ID. |
id | Your data source's ID. |
include_id | Your include's ID. |
parents | A list of your include's parent properties. Each parent record contains:
|
Updated 4 months ago