Hostnames
akamai_property_hostnames
Get a given property's hostnames and certificate statuses.
To view Enhanced TLS hostnames, you need at least
Secure Site Delivery CNAMEs - View onlyaccess.Use the roles data source to determine your access level.
data "akamai_property_hostnames" "my-property-hostnames" {
  group_id    = "12345"
  contract_id = "C-0N7RAC7"
  property_id = "12345"
  version     = 1
}
output "my-property-hostnames" {
  value = data.akamai_property_hostnames.my-property-hostnames
}
+ my-property-hostnames = {
      + contract_id = "C-0N7RAC7"
      + group_id    = "12345"
      + hostnames   = [
          + {
              + cert_provisioning_type = "DEFAULT"
              + cert_status            = [
                  + {
                      + hostname          = "_acme-challenge.example.com"
                      + production_status = "ACTIVE"
                      + staging_status    = "ACTIVE"
                      + target            = "ac.123456a1234abc1abcdefg12345a1234.exammple.com.validate-akdv.net"
                    },
                ]
              + cname_from             = "example.com"
              + cname_to               = "example.com.edgesuite.net"
              + cname_type             = "EDGE_HOSTNAME"
              + edge_hostname_id       = "ehn_12345"
            },
        ]
      + id          = "prp_123451"
      + property_id = "prp_12345"
      + version     = 1
    }
Arguments
Send your contract, group, and property IDs in the declaration to get hostname information.
| Argument | Required | Description | 
|---|---|---|
| contract_id | ✔️ | Your contract's ID. | 
| group_id | ✔️ | Your group's ID. | 
| property_id | ✔️ | Your property's ID. | 
| version | Your property's version number. If no value is passed, the information returned is from the latest version. | 
Attributes
Returned to you is a computed set with details of your property's hostnames.
| Attribute | Description | 
|---|---|
| contract_id | The contract's ID. | 
| group_id | The group's ID. | 
| id | The resource's ID, consisting of the property's ID and the property's version number. | 
| property_id | The property's ID. | 
| version | The property's version number. | 
| hostnames | A set of your property's hostnames. 
 | 
Updated 3 months ago
