---
updatedAt: 2026-03-01T18:36:06.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/llms.txt
---

# Property

akamai_property

Retrieve a property's ID and rule tree based on the given property name.

```json Query
data "akamai_property" "my_property" {
  name    = "my-property-1"
  version = "1"
}

output "my_property" {
  value = data.akamai_property.my_property
}
```
```json Standard output
my_property = {
      asset_id           = "aid_12345"
      contract_id        = "ctr_C-0N7RAC7"
      group_id           = "grp_12345"
      id                 = "prp_12345"
      latest_version     = 1
      name               = "my-property-1"
      note               = ""
      product_id         = "prd_Obj_Delivery"
      production_version = 0
      property_id        = "prp_12345"
      property_type      = ""
      rule_format        = "v2024-05-31"
      rules              = jsonencode(
            {
              accountId       = "act_A-CCT1234"
              contractId      = "ctr_C-0N7RAC7"
              etag            = "12a3b4567cd8e9012f34567g89hi01j23kl4567"
              groupId         = "grp_12345"
              propertyId      = "prp_12345"
              propertyVersion = 1
              ruleFormat      = "v2024-05-31"
              rules           = {
                  behaviors = [
                      {
                          name    = "origin"
                          options = {
                              cacheKeyHostname          = "ORIGIN_HOSTNAME"
                              compress                  = true
                              enableTrueClientIp        = true
                              forwardHostHeader         = "REQUEST_HOST_HEADER"
                              hostname                  = "example.com"
                              httpPort                  = 80
                              httpsPort                 = 443
                              ipVersion                 = "IPV4"
                              minTlsVersion             = "DYNAMIC"
                              originCertificate         = ""
                              originSni                 = true
                              originType                = "CUSTOMER"
                              ports                     = ""
                              trueClientIpClientSetting = false
                              trueClientIpHeader        = "True-Client-IP"
                              verificationMode          = "PLATFORM_SETTINGS"
                            }
                        },
                      {
                          name    = "originCharacteristics"
                          options = {
                              accessKeyEncryptedStorage = true
                              authenticationMethod      = "GCS_HMAC_AUTHENTICATION"
                              authenticationMethodTitle = ""
                              country                   = "NORTH_AMERICA"
                              gcsAccessKeyVersionGuid   = "12abcd3ef-45gh-67ij-890k-l1m23456n7o"
                              originLocationTitle       = ""
                            }
                        },
                      {
                          name    = "contentCharacteristics"
                          options = {
                              catalogSize            = "MEDIUM"
                              contentType            = "USER_GENERATED"
                              objectSize             = "LESS_THAN_1MB"
                              popularityDistribution = "LONG_TAIL"
                            }
                        },
                      {
                          name    = "clientCharacteristics"
                          options = {
                              country = "NORTH_AMERICA"
                            }
                        },
                      {
                          name    = "restrictObjectCaching"
                          options = {
                              maximumSize = ""
                            }
                        },
                      {
                          name    = "cpCode"
                          options = {
                              value = {
                                  createdDate = 1708523914000
                                  description = "My code"
                                  id          = 12345
                                  name        = "My CP code"
                                  products    = [
                                      "Obj_Delivery",
                                    ]
                                }
                            }
                        },
                      {
                          name    = "dynamicThroughtputOptimization"
                          options = {
                              enabled = true
                            }
                        },
                      {
                          name    = "http2"
                          options = {
                              enable = false
                            }
                        },
                    ]
                  name      = "default"
                  options   = {}
                }
            }
        )
      staging_version    = 2
      version            = 1
    }
```

## Arguments

Pass your property name and an optional version of the property in the body of the declaration to get the property's ID and rule tree.

## Attributes

Returned to you is a product ID with its details.

<table>
    <thead>
        <tr>
            <th>Attribute</th>
            <th>Description</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td><code>asset_id</code></td>
            <td>An alternative identifier for the property. Use this value to key the property in the <a href="doc:iam-rc-blocked-user-properties"><code>akamai_iam_blocked_user_properties</code></a> resource.</td>
        </tr>
        <tr>
            <td><code>contract_id</code></td>
            <td>Your contract's ID.</td>
        </tr>
        <tr>
            <td><code>group_id</code></td>
            <td>Your group's ID.</td>
        </tr>
        <tr>
            <td><code>id</code></td>
            <td>The property's ID.</td>
        </tr>
        <tr>
            <td><code>latest_version</code></td>
            <td>The version of the property you've created or updated rules for.</td>
        </tr>
        <tr>
            <td><code>name</code></td>
            <td>A human-readable, descriptive name for the property.</td>
        </tr>
        <tr>
            <td><code>note</code></td>
            <td>A human-readable message about the property version.</td>
        </tr>
        <tr>
            <td><code>product_id</code></td>
            <td>The product's ID.</td>
        </tr>
        <tr>
            <td><code>production_version</code></td>
            <td>The property version currently active on the production network. When it's value is <code>0</code>, it's not active on production.</td>
        </tr>
        <tr>
            <td><code>property_id</code></td>
            <td>The property's ID.</td>
        </tr>
        <tr>
            <td><code>rule_format</code></td>
            <td>A versioned rule schema and set of available behaviors and criteria. If not provided, we apply the latest rule format by default.</td>
        </tr>
        <tr>
            <td><code>rules</code></td>
            <td>A JSON-encoded rule tree for the given property.</td>
        </tr>
        <tr>
            <td><code>staging_version</code></td>
            <td>The property version currently active on the staging network. When it's value is <code>0</code>, it's not active on staging.</td>
        </tr>
        <tr>
            <td><code>version</code></td>
            <td>The property's current version.</td>
        </tr>
        <tr>
            <td><code>property_type</code></td>
            <td>The property type. Applies only to properties of the <code>HOSTNAME_BUCKET</code> type.</td>
        </tr>
    </tbody>
</table>

# Sibling pages

* [Account hostnames](https://techdocs.akamai.com/terraform/docs/pm-ds-account-hostnames.md)
* [CP code](https://techdocs.akamai.com/terraform/docs/pm-ds-cp-code.md)
* [CP codes](https://techdocs.akamai.com/terraform/docs/pm-ds-cp-codes.md)
* [Edge hostname](https://techdocs.akamai.com/terraform/docs/pm-ds-edge-hostname.md)
* [Edge hostnames](https://techdocs.akamai.com/terraform/docs/pm-ds-edge-hostnames.md)
* [Domain](https://techdocs.akamai.com/terraform/docs/pm-ds-domain.md)
* [Domains](https://techdocs.akamai.com/terraform/docs/pm-ds-domains.md)
* [Hostname activation](https://techdocs.akamai.com/terraform/docs/pm-ds-hostname-activation.md)
* [Hostname activations](https://techdocs.akamai.com/terraform/docs/pm-ds-hostname-activations.md)
* [Hostname audit history](https://techdocs.akamai.com/terraform/docs/pm-ds-hostname-audit-history.md)
* [Hostnames](https://techdocs.akamai.com/terraform/docs/pm-ds-hostnames.md)
* [Hostnames diff](https://techdocs.akamai.com/terraform/docs/pm-ds-hostnames-diff.md)
* [Include](https://techdocs.akamai.com/terraform/docs/pm-ds-include.md)
* [Include activation](https://techdocs.akamai.com/terraform/docs/pm-ds-include-activation.md)
* [Include parents](https://techdocs.akamai.com/terraform/docs/pm-ds-include-parents.md)
* [Include rules](https://techdocs.akamai.com/terraform/docs/pm-ds-include-rules.md)
* [Includes](https://techdocs.akamai.com/terraform/docs/pm-ds-includes.md)
* [Products](https://techdocs.akamai.com/terraform/docs/pm-ds-products.md)
* [Properties](https://techdocs.akamai.com/terraform/docs/pm-ds-properties.md)
* [Property activation](https://techdocs.akamai.com/terraform/docs/pm-ds-property-activation.md)
* [Search](https://techdocs.akamai.com/terraform/docs/pm-ds-search.md)
* [Search domains](https://techdocs.akamai.com/terraform/docs/pm-ds-search-domains.md)
* [Rule formats](https://techdocs.akamai.com/terraform/docs/pm-ds-rule-formats.md)
* [Rules](https://techdocs.akamai.com/terraform/docs/pm-ds-property-rules.md)
* [Rules builder](https://techdocs.akamai.com/terraform/docs/pm-ds-rules-builder.md)
* [Rules template](https://techdocs.akamai.com/terraform/docs/pm-ds-rules-template.md)