Domains
akamai_property_domainownership_domains
Beta
Hello. Just a note to let you know the underlying API on which this resource 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.
Add or remove claims of ownership over a set of domains.
You can track up to 1,000 domains in that resource at once. However, for optimal performance and a smoother user experience, keep the number of domains well below this limit.
If you try to remove a domain with the VALIDATED status from the resource, Terraform first invalidates that domain.
resource "akamai_property_domainownership_domains" "my-domains" {
domains = [
{
domain_name = "example.com"
validation_scope = "HOST"
},
{
domain_name = "sub.example.com"
validation_scope = "WILDCARD"
}
]
}
my-domains = {
domains = [
{
account_id = "A-CCT1234"
domain_name = "example.com"
domain_status = "REQUEST_ACCEPTED"
validation_challenge = {
cname_record = {
name = "_acme-challenge.example.com"
target = "ac.1ab23c45def678gh9ij01klm23n4op.example.com.validate-akdv.net"
}
expiration_date = "2025-11-08T11:39:14Z"
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 = null
validation_method = "DNS_TXT"
validation_requested_by = "jsmith"
validation_requested_date = "2025-11-05T11:39:14Z"
validation_scope = "HOST"
},
{
account_id = "A-CCT1234"
domain_name = "sub.example.com"
domain_status = "REQUEST_ACCEPTED"
validation_challenge = {
cname_record = {
name = "_acme-challenge.sub.example.com"
target = "ac.z9yx87wv654utsrq32ponm10lk987j.sub.example.com.validate-akdv.net"
}
expiration_date = "2025-11-08T11:39:14Z"
http_file = null
http_redirect = null
txt_record = {
name = "_akamai-wildcard-challenge.sub.example.com"
value = "zyXwyUT98Sr-qPonmLkJi7Hg-FeDC6b_AzywVusTrQpONmlkJ5iHGf-eDc43b"
}
}
validation_completed_date = null
validation_method = "DNS_TXT"
validation_requested_by = "jsmith"
validation_requested_date = "2025-11-05T11:39:14Z"
validation_scope = "WILDCARD"
},
]
}
Arguments
Send a list of domains to add claims of ownership.
| Argument | Required | Description |
|---|---|---|
domains |
✔ | A list of domains. Each domain record includes:
|
Attributes
There's no standard output for this resource as changes are reflected in your state file and based on what you passed in the resource block body.
| Attribute | Description |
|---|---|
domains |
A list of domains. Each domain record includes:
|
Updated about 15 hours ago
