Hostname bindings
akamai_cloudcertificates_hostname_bindings
Beta
Hello. Just a note to let you know the underlying API on which this data source is built is general release and has been vetted, but because this is a new feature for our Terraform provider, we've given it beta label.
This status just means we've paused for a bit to get your feedback to make sure this data source works like you need and expect.
List hostname bindings for all certificates available to you.
data "akamai_cloudcertificates_hostname_bindings" "my-bindings" {}
output "my-bindings" {
value = data.akamai_cloudcertificates_hostname_bindings.my-bindings
}
my-bindings = {
bindings = [
{
certificate_id = "12345"
hostname = "example-1.com"
network = "STAGING"
resource_type = "CDN_HOSTNAME"
},
{
certificate_id = "98765"
hostname = "example-2.com"
network = "PRODUCTION"
resource_type = "CDN_HOSTNAME"
},
]
contract_id = null
domain = null
expiring_in_days = null
group_id = null
network = null
}
Arguments
Leave the data source empty to return all hostname bindings or provide optional arguments to filter your results.
| Argument | Required | Description |
|---|---|---|
contract_id | Returns certificates created under the specified contract ID. | |
group_id | Returns certificates that belong to the specified group ID. | |
domain | Returns certificates whose subject common name (CN) or any subject alternative name (SAN) matches the specified domain. The matches are case-insensitive and support partial values and wildcards. | |
network | Returns certificates for the specified deployment network, either STAGING or PRODUCTION. | |
expiring_in_days | Returns certificates that expire within the specified number of days from the request date. For example, a value of 5 returns certificates that expire in the next five days or less. A value of 0 returns only expired certificates. |
Attributes
Returned to you is a set of bindings with their details.
| Attribute | Description |
|---|---|
certificate_id | The certificate's ID. |
hostname | The hostname on the Akamai CDN the certificate applies to. |
network | The deployment network, either STAGING or PRODUCTION, on which the certificate is active for a property version. |
resource_type | The resource type this binding applies to. Currently, only CDN_HOSTNAME is available. |
Updated about 2 hours ago
