GuideReference
TrainingSupportCommunity
Guide

Search

akamai_properties_search

Retrieve a list of properties matching a specific hostname, edge hostname, or property name.

data "akamai_properties_search" "my_property_search" {
  key   = "hostname"
  value = "example.com"
}

output "my_property_search" {
  value = data.akamai_properties_search.my_property_search
}
Changes to Outputs:
  + my_property_search = {
      + id         = "hostname:example.com"
      + key        = "hostname"
      + properties = [
          + {
              + account_id        = "act_A-CCT1234"
              + asset_id          = "aid_1234567"
              + contract_id       = "ctr_C-0N7RAC7"
              + edge_hostname     = "www.example.edgesuite.net"
              + group_id          = "grp_12345"
              + hostname          = "example.com"
              + production_status = "INACTIVE"
              + property_id       = "prp_123456"
              + property_name     = "my-property"
              + property_version  = 3
              + staging_status    = "ACTIVE"
              + updated_by_user   = "jsmith"
              + updated_date      = "2024-05-02T11:05:04Z"
            },
        ]
      + value      = "example.com"
    }

Arguments

Pass a key and value in the body of the declaration to get properties matching your search criteria.

ArgumentRequiredDescription
key✔️A key used for search. Valid values are hostname, edgeHostname, or propertyName.
value✔️A value to search for.

Attributes

Returned to you is a list of properties matching your search criteria.

Attribute Description
id The data soruce's ID.
key The key used for search.
properties A list of properties matching the given search criteria. Each property record contains:
  • account_id. Your account's ID.
  • asset_id. An alternative ID for the property. Use this value to key the property in the IAM subprovider on the blocked_user_properties resource.
  • contract_id. Your contract's ID.
  • edge_hostname. The hostname for edge content.
  • group_id. Your group's ID.
  • hostname. Your origin's hostname.
  • production_status. Wether the property version is currently active on the production network. Possible values:
    • ACTIVE
    • INACTIVE
    • PENDING
    • ABORTED
    • DEACTIVATED
    • PENDING_DEACTIVATION
    • PENDING_CANCELLATION
  • property_id. The property's ID.
  • property_name. A human-readable, descriptive name for the property.
  • property_version. The version of the property you've created or updated rules for.
  • staging_status. Wether the property version is currently active on the staging network. Possible values:
    • ACTIVE
    • INACTIVE
    • PENDING
    • ABORTED
    • DEACTIVATED
    • PENDING_DEACTIVATION
    • PENDING_CANCELLATION
  • updated_by_user. The name of the user who last updated the latest property version.
  • updated_date. The date stamp of the property version's latest update.
value The searched value.