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"
hostname_bucket = null
hostnames = [
{
ccm_cert_status = []
ccm_certificates = []
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"
domain_ownership_verification = [
{
challenge_token_expiry_date = "2026-02-06T11:56:55Z"
status = "VALIDATION_IN_PROGRESS"
validation_cname = [
{
hostname = "_acme-challenge.example.com"
target = "ac.1ab23c45def678gh9ij01klm23n4op.example.com.validate-akdv.net"
},
]
validation_http = [
{
file_content_method = [
{
body = "abcDeFghi12JK-LmNopQr3ST-uVwX4Y_zAbCDEfgijkLmnoPqRstuV5-wXy678Z"
url = "https://example.com/.well-known/akamai/akamai-challenge/abc1dEf3gh-ij3hlmoPr"
},
]
redirect_method = [
{
http_redirect_from = "https://example.com/.well-known/akamai/akamai-challenge/abc1dEf3gh-ij3hlmoPr"
http_redirect_to = "https://validation.akamai.com/.well-known/akamai/akamai-challenge/abcDeFghi12JK-LmNopQr3ST-uVwX4Y_zAbCDEfgijkLmnoPqRstuV5-wXy678Z"
},
]
},
]
validation_txt = [
{
challenge_token = "abcDeFghi12JK-LmNopQr3ST-uVwX4Y_zAbCDEfgijkLmnoPqRstuV5-wXy678Z"
hostname = "_akamai-host-challenge.example.com"
},
]
},
]
edge_hostname_id = "ehn_12345"
mtls = []
tls_configuration = []
},
{
ccm_cert_status = [
{
ecdsa_production_status = "NOT_FOUND"
ecdsa_staging_status = "DEPLOYED_NONE"
rsa_production_status = "NEEDS_ACTIVATION"
rsa_staging_status = "DEPLOYED"
},
]
ccm_certificates = [
{
ecdsa_cert_id = ""
rsa_cert_id = "12345"
},
]
cert_provisioning_type = "CCM"
cert_status = [
{
hostname = ""
production_status = ""
staging_status = ""
target = ""
},
]
cname_from = "example-other.com"
cname_to = "example-other.com.edgekey.net"
cname_type = "EDGE_HOSTNAME"
domain_ownership_verification = []
edge_hostname_id = "ehn_98765"
mtls = [
{
ca_set_id = "12345"
check_client_ocsp = false
send_ca_set_client = false
},
]
tls_configuration = [
{
cipher_profile = "ak-akamai-2020q1"
disallowed_tls_versions = [
"TLSv1",
"TLSv1_1",
]
fips_mode = false
staple_server_ocsp_response = true
},
]
},
]
id = "prp_123451"
property_id = "prp_12345"
version = 1
}
my-property-hostnames = {
contract_id = "C-0N7RAC7"
filter_pending_default_certs = false
group_id = "12345"
hostname_bucket = [
{
cert_status = [
{
hostname = "_acme-challenge.www.example.com"
production_status = "PENDING"
staging_status = "PENDING"
target = "ac.123456a1234abc1abcdefg12345a1234.www.example.com.validate-akdv.net"
},
]
cname_from = "example.com"
cname_type = "EDGE_HOSTNAME"
production_cert_type = "DEFAULT"
production_cname_to = "example.com.edgesuite.net"
production_edge_hostname_id = "ehn_12345"
staging_cert_type = "CPS_MANAGED"
staging_cname_to = "other.example.com.edgesuite.net"
staging_edge_hostname_id = "ehn_98765"
},
]
hostnames = null
id = "prp_12345"
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 |
Applies only to traditional properties. Your property's version number. If no value is passed, the information returned is for the latest version.Note: The version value is ignored for hostname bucket properties if provided. |
|
filter_pending_default_certs |
When set to true, the response includes the DEFAULT certificates whose activation status on the staging or production network is PENDING. Defaults to false if not set. |
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 data source's ID, consisting of the property's ID and the property's version number. For properties
of the HOSTNAME_BUCKET type, it consists only of the property's ID. |
property_id |
The property's ID. |
version |
The property's version number. |
hostnames |
A set of your property's hostnames.
Notes:
|
hostname_bucket |
A set of hostnames if your property is of the HOSTNAME_BUCKET type.
|
Updated 12 days ago
