Domain
akamai_property_domainownership_domain
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 the details and status history for a domain within your chosen scope.
data "akamai_property_domainownership_domain" "my-domain" {
domain_name = "example.com"
validation_scope = "HOST"
}
output "my-domain" {
value = data.akamai_property_domainownership_domain.my-domain
}
my-domain = {
account_id = "A-CCT1234"
domain_name = "example.com"
domain_status = "VALIDATED"
domain_status_history = [
{
domain_status = "REQUEST_ACCEPTED"
message = null
modified_date = "2025-02-03T16:33:54Z"
modified_user = "jsmith"
},
{
domain_status = "VALIDATION_IN_PROGRESS"
message = null
modified_date = "2025-02-03T16:34:01Z"
modified_user = "SYSTEM"
},
{
domain_status = "VALIDATED"
message = null
modified_date = "2025-02-03T16:35:00Z"
modified_user = "SYSTEM"
},
]
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_method = "HTTP"
validation_requested_by = "jsmith"
validation_requested_date = "2025-02-03T16:33:54Z"
validation_scope = "HOST"
}
Arguments
Pass the domain's name and its validation scope in the data block to get the domain's details.
| Argument | Required | Description |
|---|---|---|
domain_name |
✔ | Your domain's name. |
validation_scope |
✔ | Your domain's validation scope. Possible values are:
|
Attributes
Returned to you are the domain's details with its status history.
| Attribute | Description |
|---|---|
account_id |
Your account's ID. |
domain_status |
The domain's validation status. Possible values are:
|
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:
|
domain_status_history |
A list of domain status history changes. Each change record includes:
|
Updated about 15 hours ago
