Domain
Get details for a given Global Traffic Management domain.
data "akamai_gtm_domain" "my_domain" {
name = "my_gtm_domain.net"
}
my_domain = {
as_maps = [
{
assignments = [
{
as_numbers = [
12345,
]
datacenter_id = 2345
nickname = "Test AS maps"
},
]
default_datacenter = {
datacenter_id = 6789
nickname = "Default (all others)"
}
domain = "my_gtm_asmap.com.akadns.net"
id = "gtm_asmap"
links = [
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.com.akadns.net/as-maps/my%20gtm%20as%20map"
rel = "self"
},
]
name = "my gtm as map"
},
]
cidr_maps = [
{
assignments = [
{
blocks = [
"1.1.1.1/1",
]
datacenter_id = 1234
nickname = "Sample CIDR"
},
]
default_datacenter = {
datacenter_id = 2345
nickname = "All Other CIDR Blocks"
}
domain = "my_gtm_cidrmap.com.akadns.net"
id = "gtm_cidrmap"
links = [
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/cidr-maps/my%20gtm%20cidrmap"
rel = "self"
},
]
name = "my gtm cidrmap"
},
]
cname_coalescing_enabled = false
datacenters = [
{
city = ""
clone_of = 0
cloud_server_host_header_override = false
cloud_server_targeting = false
continent = ""
country = ""
datacenter_id = 2345
default_load_object = []
latitude = 0
links = [
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.com/datacenters/5400"
rel = "self"
},
]
longitude = 0
nickname = "Default Datacenter"
score_penalty = 0
server_monitor_pool = ""
state_or_province = ""
virtual = true
},
{
city = "Glasgow"
clone_of = 0
cloud_server_host_header_override = false
cloud_server_targeting = false
continent = ""
country = "GB"
datacenter_id = 2
default_load_object = []
latitude = 55.86568
links = [
{
href = "https://akab-v4hvufz7ff5bykfd-qvagnv3t23f2aurc.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.com/datacenters/2"
rel = "self"
},
]
longitude = -4.25714
nickname = "dc2"
score_penalty = 0
server_monitor_pool = ""
state_or_province = ""
virtual = true
},
{
city = "San Diego"
clone_of = 0
cloud_server_host_header_override = false
cloud_server_targeting = false
continent = ""
country = "US"
datacenter_id = 1
default_load_object = []
latitude = 32.71576
links = [
{
href = "https://akab-v4hvufz7ff5bykfd-qvagnv3t23f2aurc.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/datacenters/1"
rel = "self"
},
]
longitude = -117.16382
nickname = "dc1"
score_penalty = 0
server_monitor_pool = ""
state_or_province = "CA"
virtual = true
},
]
default_error_penalty = 75
default_health_max = 0
default_health_multiplier = 0
default_health_threshold = 0
default_max_unreachable_penalty = 0
default_ssl_client_certificate = ""
default_ssl_client_private_key = ""
default_timeout_penalty = 25
default_unreachable_threshold = 0
email_notification_list = [
"jsmith@email.com",
]
end_user_mapping_enabled = false
geographic_maps = [
{
assignments = [
{
countries = [
"GB/SC",
]
datacenter_id = 1
nickname = "geozone1"
},
]
default_datacenter = {
datacenter_id = 2345
nickname = "Default Mapping"
}
links = [
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/geographic-maps/geomap1"
rel = "self"
},
]
name = "geomap1"
},
]
id = "my_gtm_domain.akadns.net"
last_modified = "2023-11-16T18:12:01.000+00:00"
last_modified_by = "jsmith"
links = [
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net"
rel = "self"
},
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/as-maps"
rel = "as-maps"
},
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/cidr-maps"
rel = "cidr-maps"
},
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/datacenters"
rel = "datacenters"
},
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/geographic-maps"
rel = "geographic-maps"
},
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/properties"
rel = "properties"
},
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/resources"
rel = "resources"
},
]
load_feedback = true
load_imbalance_percentage = 10
map_update_interval = 600
max_properties = 100
max_resources = 512
max_test_timeout = 60
max_ttl = 172800
min_pingable_region_fraction = 0
min_test_interval = 10
min_ttl = 30
modification_comments = "Delete Resource"
name = "my_gtm_domain.akadns.net"
properties = [
{
backup_cname = ""
backup_ip = ""
balance_by_download_score = false
cname = ""
comments = ""
dynamic_ttl = 60
failback_delay = 0
failover_delay = 0
ghost_demand_reporting = false
handout_limit = 0
handout_mode = "normal"
health_max = 0
health_multiplier = 0
health_threshold = 0
ipv6 = false
last_modified = "2023-11-16T18:11:38.000+00:00"
links = [
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/properties/mirror"
rel = "self"
},
]
liveness_tests = []
load_imbalance_percentage = 0
map_name = ""
max_unreachable_penalty = 0
min_live_fraction = 0
name = "mirror"
score_aggregation_type = "worst"
static_rr_sets = []
static_ttl = 0
stickness_bonus_constant = 0
stickness_bonus_percentage = 0
traffic_targets = [
{
datacenter_id = 1
enabled = true
handout_cname = "dc1.my_gtm_domain.net"
name = ""
servers = []
weight = 1
precedence = 10
},
{
datacenter_id = 2
enabled = true
handout_cname = "dc2.my_gtm_domain.net"
name = ""
servers = []
weight = 0
},
]
type = "failover"
unreachable_threshold = 0
use_computed_targets = false
weighted_hash_bits_for_ipv4 = 0
weighted_hash_bits_for_ipv6 = 0
},
{
backup_cname = ""
backup_ip = ""
balance_by_download_score = false
cname = ""
comments = ""
dynamic_ttl = 60
failback_delay = 0
failover_delay = 0
ghost_demand_reporting = false
handout_limit = 0
handout_mode = "normal"
health_max = 0
health_multiplier = 0
health_threshold = 0
ipv6 = false
last_modified = "2023-11-16T18:11:57.000+00:00"
links = [
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/properties/wrlb"
rel = "self"
},
]
liveness_tests = []
load_imbalance_percentage = 0
map_name = ""
max_unreachable_penalty = 0
min_live_fraction = 0
name = "wrlb"
score_aggregation_type = "worst"
static_rr_sets = []
static_ttl = 0
stickness_bonus_constant = 0
stickness_bonus_percentage = 0
traffic_targets = [
{
datacenter_id = 1
enabled = true
handout_cname = "dc1.my_gtm_domain.net"
name = ""
servers = []
weight = 90
precedence = 5
},
{
datacenter_id = 2
enabled = true
handout_cname = "dc2.my_gtm_domain.net"
name = ""
servers = []
weight = 10
},
]
type = "weighted-round-robin"
unreachable_threshold = 0
use_computed_targets = false
weighted_hash_bits_for_ipv4 = 0
weighted_hash_bits_for_ipv6 = 0
},
]
resources = [
{
aggregation_type = "sum"
constrained_property = ""
decay_rate = 0
description = "Testing"
host_header = "my_gtm_domain.net"
leader_string = "leader"
least_squares_decay = 0
links = [
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/resources/resource1"
rel = "self"
},
]
load_imbalance_percentage = 0
max_u_multiplicative_increment = 0
name = "resource1"
resource_instances = [
{
datacenter_id = 1
load_object = ""
load_object_port = 9999
load_servers = [
"0.0.0.1",
]
use_default_load_object = false
},
{
datacenter_id = 2
load_object = ""
load_object_port = 9999
load_servers = [
"0.0.0.2",
]
use_default_load_object = false
},
]
type = "Non-XML load object via HTTP"
upper_bound = 0
},
]
round_robin_prefix = ""
server_monitor_pool = ""
status = {
change_id = "012a3b45-678c-90d1-ef2g-3h4567890123"
links = [
{
href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_domain.akadns.net/status/current"
rel = "self"
},
]
message = "Current configuration has been propagated to all GTM nameservers"
passing_validation = true
propagation_status = "COMPLETE"
propagation_status_date = "2023-11-16T18:13:00.000+00:00"
}
type = "basic"
}
Argument
Pass a domain's name to get its details.
Attributes
Returned are comprehensive details about the given domain.
| Attribute | Description |
|---|---|
as_maps |
The given domain's AS maps. Contains:
|
cidr_maps |
The given domain's CIDR maps. Contains:
|
cname_coalescing_enabled |
Whether GTM collapses CNAME redirections in DNS answers when it knows the target of the CNAME.
|
datacenters |
List of data centers associated with the domain. Each data center set contains:
|
default_error_penalty |
The liveness penalty score for request errors. |
default_health_max |
The absolute limit beyond which IPs are declared unhealthy. |
default_health_multiplier |
The value used as a factor in the health cutoff score product. The default value is 1.5. |
default_health_threshold |
A value used as a factor in the health cutoff score product when its value is greater than the minimum liveness score. The default value is 4. |
default_max_unreachable_penalty |
The penalty value added to liveness test scores when data centers show an aggregated loss fraction higher than the penalty value. |
default_ssl_client_certificate |
An optional Base64-encoded certificate that corresponds with the private key for TLS-based liveness tests. |
default_ssl_client_private_key |
An optional Base64-encoded private key that corresponds with the TLS certificate for TLS-based liveness tests. |
default_timeout_penalty |
The liveness penalty score for request timeouts. |
default_unreachable_threshold |
The penalty value added to liveness test scores when data centers show an aggregated loss fraction higher than the penalty value. |
email_notification_list |
A list of email addresses that receive notifications. |
end_user_mapping_enabled |
Whether the domain uses end-user client subnet mapping.
|
geographic_maps |
A list of geographic maps associated with the domain. Contains:
|
id |
The domain's ID. |
last_modified |
The date the domain was last modified. |
last_modified_by |
The user who last modified the domain. |
links |
The direct URL to the given domain. Contains:
|
load_feedback |
Whether you're using resources to control load balancing.
|
map_update_interval |
How often new maps are generated for performance domains. |
max_properties |
Maximum number of associated properties with a domain. |
max_resources |
Maximum amount of associated resources with a domain. |
max_test_timeout |
Maximum liveness test duration before the test fails. The range is 0.001 to 60seconds. |
max_ttl |
The greatest TTL allowed before failure. |
min_pingable_region_fraction |
The minimum ping fraction score for data centers. If set, any core point that cannot ping more than this fraction of data centers is rejected and not mapped by ping scores. |
min_test_interval |
The minimum allowed liveness test interval. Configurations specifying liveness test intervals smaller than this fail validation. |
min_ttl |
The lowest TTL allowed before failure. |
modification_comments |
A descriptive note about changes made to the domain. |
name |
The domain's name. |
properties |
A list of properties associated with the domain. Contains:
|
resources |
A list of resources associated with the domain. Contains:
|
round_robin_prefix |
A string that when configured automatically creates a shadow property for each normal property. |
server_monitor_pool |
The name of the pool from which server monitors are drawn for liveness tests for a datacenter. |
status |
Status information details. Contains:
|
type |
The load balancing behavior for the property. |
Updated 16 days ago
