GuideReference
TrainingSupportCommunity
Guide

Properties

akamai_properties

Retrieve the list of properties for your group and contract.

data "akamai_properties" "my_properties" {
    contract_id = "C-0N7RAC7"
    group_id   = "123456"
}

output "my_property_list" {
  value = data.akamai_properties.my_properties
}
Changes to Outputs:
  + my_property_list = {
      + contract_id = "C-0N7RAC7"
      + group_id    = "123456"
      + id          = "grp_123456ctr_C-0N7RAC7"
      + properties  = [
          + {
              + contract_id        = "ctr_C-0N7RAC7"
              + group_id           = "grp_123456"
              + latest_version     = 3
              + note               = ""
              + product_id         = ""
              + production_version = 1
              + property_id        = "prp_12345"
              + property_name      = "my-property-1"
              + rule_format        = ""
              + staging_version    = 3
            },
          + {
              + contract_id        = "ctr_C-0N7RAC7"
              + group_id           = "grp_123456"
              + latest_version     = 5
              + note               = ""
              + product_id         = ""
              + production_version = 2
              + property_id        = "prp_98765"
              + property_name      = "my-property-2"
              + rule_format        = ""
              + staging_version    = 5
            },
        ]
    }

Arguments

Pass your contract and group IDs in the body of the declaration to get the list of properties.

Attributes

Returned to you is a list of properties for your contract and group.

Attribute Description
contract_id Your contract's ID.
group_id Your group's ID.
id The data source's ID.
properties A list of properties. Each property record contains:
  • contract_id. Your contract's ID.
  • group_id. Your group's ID.
  • latest_version. The version of the property you've created or updated rules for. We use the latest version or create a new version if latest isn't editable.
  • note. A human-readable message about the property version.
  • product_id. The product's ID.
  • production_version. The property version currently active on the production network. When it's value is 0, it's not active on production.
  • property_id. The property's ID.
  • property_name. A human-readable, descriptive name for the property.
  • rule_format. A versioned rule schema and set of available behaviors and criteria. If not provided, we apply the latest rule format by default.
  • staging_version. The property version currently active on the staging network. When it's value is 0, it's not active on staging.