GuideReference
TrainingSupportCommunity

Property

akamai_property

Use the akamai_property data source to query and list the property ID and rule tree based on the property name.

Example

This example returns the property ID and rule tree based on the property name and optional version argument.

data "akamai_property" "example" {
    name = "terraform-demo"
    version = "1"
}

output "my_property_ID" {
  value = data.akamai_property.example
}

Argument reference

This data source supports these arguments:

  • name -¬†(Required) The property name.
  • version -¬†(Optional) The version of the property whose ID you want to list.

Attributes reference

This data source returns these attributes:

  • rules - A JSON-encoded rule tree for a given property.
  • contract_id - Your contract ID.
  • group_id - Your group ID.
  • note - A human-readable description about your property.
  • product_id - A product ID including the prd_ prefix. See Base IDs for a list of product IDs.
  • property_id- Your property ID.
  • rule_format - The property rules' versioned rule schema and set of behaviors and criteria.
  • latest_version - The property's most recent version.
  • production_version - The version of the property deployed to production.
  • staging_version - The version of the property deployed to staging.