Edge hostnames
BetaHello. 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 all edge hostnames for your contract and group.
- To assign any of the listed edge hostnames to a property, use the
akamai_propertyresource. - To modify an existing edge hostname or delete any that aren't currently assigned to an active property configuration, use the
akamai_edge_hostnameresource.
data "akamai_edge_hostnames" "my-edge-hostnames" {
contract_id = "C-0N7RAC7"
group_id = "12345"
}
output "my-edge-hostnames" {
value = data.akamai_edge_hostnames.my-edge-hostnames
}my-edge-hostnames = {
account_id = "act_A-CCT1234"
contract_id = "C-0N7RAC7"
edge_hostnames = [
{
domain_prefix = "example.com"
domain_suffix = "edgesuite.net"
edge_hostname_domain = "example.com.edgesuite.net"
edge_hostname_id = "ehn_98765"
https_service_binding = null
ip_version_behaviour = "IPV4"
product_id = "prd_Download_Delivery"
secure = false
status = "CREATED"
use_cases = [
{
option = "BACKGROUND"
type = "GLOBAL"
use_case = "Download_Mode"
},
]
},
{
domain_prefix = "example-other.com"
domain_suffix = "edgekey.net"
edge_hostname_domain = "example-other.com.edgekey.net"
edge_hostname_id = "ehn_54321"
https_service_binding = null
ip_version_behaviour = "IPV4"
product_id = "prd_Adaptive_Media_Delivery"
secure = true
status = "CREATED"
use_cases = [
{
option = "VOD"
type = "GLOBAL"
use_case = "Segmented_Media_Mode"
},
]
},
]
group_id = "12345"
options = null
}Arguments
Pass your contract and group IDs in the data block to get all edge hostnames.
| Name | Required | Description |
|---|---|---|
contract_id | ✔ | Your contract's ID. |
group_id | ✔ | Your group's ID. |
options | Optional query parameters that enable extra mapping-related information. Currently, the only supported option is mapDetails. |
Attributes
Returned to you is the account and a set of edge hostnames.
| Name | Description |
|---|---|
account_id |
The account's ID. |
edge_hostnames |
The set of requested edge hostnames.
|
Updated 14 days ago
