GuideReference
Guide

Geo maps

akamai_gtm_geomaps

📘

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.

Get a given domain's geographical maps.

data "akamai_gtm_geomaps" "my_gtm_geomaps" { domain = "my_gtm_geomap.akadns.net" } output "my_gtm_geomaps" { value = data.akamai_gtm_geomaps.my_gtm_geomaps }
Changes to Outputs: + my_gtm_geomaps = { + domain = "my_gtm_geomap.akadns.net" + geo_maps = [ + { + assignments = [ + { + countries = [ + "AG", + "BB", + "CA", + "DM", + "VI", ] + datacenter_id = 1234 + nickname = "Sample geomap" }, ] + default_datacenter = { + datacenter_id = 2345 + nickname = "Default Mapping" } + links = [ + { + href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_geomap.com/geographic-maps/my%20gtm%20geomap" + rel = "self" }, ] + name = "my geo map" }, + { + assignments = [ + { + countries = [ + "DE", + "DK", + "GR", + "HR", + "HU", + "PT", ] + datacenter_id = 5678 + nickname = "Sample geomap 2" }, ] + default_datacenter = { + datacenter_id = 2345 + nickname = "Default Mapping" } + links = [ + { + href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_geomap.com/geographic-maps/my%20gtm%20geomap%202" + rel = "self" }, ] + name = "my gtm geomap 2" }, ] + id = "gtm_geomaps" }

Argument

Pass a domain name in the data block.

Attributes

Returned are high-level details about the given domain's geographical maps.

AttributeDescription
assignmentsDetails about the given domain's geographic zone groupings of countries. Contains:
  • datacenter_id. An ID for an existing data center in the given domain.
  • countries. A list of ISO 3166 formatted country codes or a list of the country codes followed by state or province codes.
  • nickname. A human-readable name for a group of geographic zones.
default_datacenterThe ID for the default data center in the given domain. Contains:
  • datacenter_id. An ID for an existing data center in the given domain.
  • nickname. A human-readable name for all of your other geographical zones.
linksThe direct URL to the domain's geographical map. Contains:
  • rel. The link relationship of the object.
  • href. The fully-qualified URL that defines the resource.

Did this page help you?