Search domains
akamai_property_domainownership_search_domains
Beta
Hello. Just a note to let you know the underlying API on which this data source is built is in a beta state, so it's not vetted yet.
Because this functionality is also new to our Terraform provider, we've given it beta label to get your feedback to make sure it works like you need and expect.
For more details on domain validation enforcement, see the Validate domains guide.
Get validation statuses of specified domains. For any nonexistent domains, the response returns the closest matching domain statuses.
data "akamai_property_domainownership_search_domains" "my-domain-statuses" {
domains = [
{
domain_name = "example.com"
validation_scope = "HOST"
},
{
domain_name = "sub.example.com"
validation_scope = "WILDCARD"
}
]
}
output "my-domain-statuses" {
value = data.akamai_property_domainownership_search_domains.my-domain-statuses
}
my-domain-statuses = {
domains = [
{
account_id = "A-CCT1234"
domain_name = "example.com"
domain_status = "VALIDATED"
validation_challenge = {
cname_record = {
name = "_acme-challenge.example.com"
target = "ac.1ab23c45def678gh9ij01klm23n4op.example.com.validate-akdv.net"
}
expiration_date = "2025-05-04T16:33:54Z"
http_file = {
content = "abcDeFghi12JK-LmNopQr3ST-uVwX4Y_zAbCDEfgijkLmnoPqRstuV5-wXy678Z"
content_type = "text/plain"
path = "https://example.com/.well-known/akamai/akamai-challenge/abc1dEf3gh-ij3hlmoPr"
}
http_redirect = {
from = "https://example.com/.well-known/akamai/akamai-challenge/abc1dEf3gh-ij3hlmoPr"
to = "https://validation.akamai.com/.well-known/akamai/akamai-challenge/abcDeFghi12JK-LmNopQr3ST-uVwX4Y_zAbCDEfgijkLmnoPqRstuV5-wXy678Z"
}
txt_record = {
name = "_akamai-host-challenge.example.com"
value = "abcDeFghi12JK-LmNopQr3ST-uVwX4Y_zAbCDEfgijkLmnoPqRstuV5-wXy678Z"
}
}
validation_completed_date = "2025-02-03T16:35:00Z"
validation_level = "FQDN"
validation_method = "HTTP"
validation_requested_by = "jsmith"
validation_requested_date = "2025-02-03T16:33:54Z"
validation_scope = "HOST"
},
{
account_id = "A-CCT1234"
domain_name = "sub.example.com"
domain_status = "VALIDATED"
validation_challenge = {
cname_record = {
name = "_acme-challenge.sub.example.com"
target = "ac.z9yx87wv654utsrq32ponm10lk987j.sub.example.com.validate-akdv.net"
}
expiration_date = "2025-05-04T16:18:23Z"
http_file = null
http_redirect = null
txt_record = {
name = "_akamai-wildcard-challenge.sub.example.com"
value = "zyXwyUT98Sr-qPonmLkJi7Hg-FeDC6b_AzywVusTrQpONmlkJ5iHGf-eDc43b"
}
}
validation_completed_date = "2025-02-03T16:28:17Z"
validation_level = "ROOT/WILDCARD"
validation_method = "DNS_TXT"
validation_requested_by = "jsmith"
validation_requested_date = "2025-02-03T16:18:23Z"
validation_scope = "WILDCARD"
},
]
}
Arguments
Pass a list of domains in the data block to get their details.
| Argument | Required | Description |
|---|---|---|
domains |
✔ | A list of domains. Each domain record includes:
|
Attributes
Returns to you is a set of domains with their details.
| Attribute | Description |
|---|---|
account_id |
Your account's ID. |
domain_status |
The domain's validation status. Possible values are:
|
validation_level |
The domain's validation level, either FQDN (fully qualified domain name) or ROOT/WILDCARD. |
validation_method |
The method used to validate the domain. Possible values are:
|
validation_requested_by |
The name of the user who requested the domain validation. |
validation_requested_date |
The timestamp indicating when the domain validation was requested. |
validation_completed_date |
The timestamp indicating when the domain validation was completed. |
validation_challenge |
The domain's validation challenge details. Includes:
|
Updated about 15 hours ago
