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 only
access.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 = 3
}
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.my-property-hostnames.com"
+ production_status = "ACTIVE"
+ staging_status = "ACTIVE"
+ target = "ac.123456a1234abc1abcdefg12345a1234.my-property-hostnames.com.validate-akdv.net"
},
]
+ cname_from = "my-property-hostnames.com"
+ cname_to = "my-property-hostnames.com.edgesuite.net"
+ cname_type = "EDGE_HOSTNAME"
+ edge_hostname_id = "ehn_1234567"
},
]
+ id = "prp_1234567"
+ property_id = "prp_123456"
+ version = 3
}
Arguments
Send your contract, group, and property IDs in the declaration to get hostname information.
Argument | Required | Description |
---|---|---|
contract_id | ✔️ | Your contract ID. |
group_id | ✔️ | Your group 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 that contains an edge hostname's ID among other details.
Attribute | Description |
---|---|
cname_type |
A hostname's CNAME type. |
edge_hostname_id |
A hostname's ID, including the ehn_ prefix. |
hostnames |
A set of your property's hostnames.
|
Updated 2 months ago