GuideReference
Guide

Includes

akamai_property_includes

Get all includes available for a given contract and group.

data "akamai_property_includes" "my_property_includes" { contract_id = "C-0N7RAC7" group_id = "12345" parent_property { id = "123456" version = 1 } type = "COMMON_SETTINGS" } output "my_property_includes" { value = data.akamai_property_includes.my_property_includes }
Changes to Outputs: + my_property_includes = { + contract_id = "C-0N7RAC7" + group_id = "12345" + id = "C-0N7RAC7:12345" + includes = [ + { + id = "inc_1234" + latest_version = 2 + name = "my-include-1" + production_version = "" + staging_version = "2" + type = "COMMON_SETTINGS" }, + { + id = "inc_9876" + latest_version = 1 + name = "my-include-2" + production_version = "1" + staging_version = "1" + type = "COMMON_SETTINGS" }, ] + parent_property = [ + { + id = "123456" + version = 1 }, ] + type = "COMMON_SETTINGS" }

Arguments

Pass your contract and group IDs in the body of the declaration to get all includes available to you.

ArgumentRequiredDescription
contract_idYour contract's ID.
group_idYour group's ID.
parent_propertyThe property that references the includes you want to list. For each property, provide:
  • id. Required. The property's ID.
  • version. Required. The version of the active parent property.
typeThe include type. Provide either:
  • MICROSERVICES. Allows different teams to work independently on different parts of a single site.
  • COMMON_SETTINGS. Useful for configurations that share a large number of settings, often managed by a central team.

Attributes

Returned to you is a list of includes with its details.

AttributeDescription
contract_idYour contract's ID.
group_idYour group's ID.
idYour data source's ID.
includesA list of includes. Each include record contains:
  • id. An include's ID.
  • latest_version. The most recent version of the include.
  • name. The descriptive name for the include.
  • production_version. The include version currently active on the production network.
  • staging_version. The include version currently active on the staging network.
  • type. The include type, either MICROSERVICES or COMMON_SETTINGS.
parent_propertyProperties that use an include.
typeThe include type.

Did this page help you?