GuideReference
TrainingSupportCommunity

Geo map

akamai_gtm_geomap

ūüďė

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 details about a given domain's geographical map.

data "akamai_gtm_geomap" "my_gtm_geomap" {
  domain   = "my_gtm_geomap.akadns.net"
  map_name = "my gtm geomap"
}

output "my_gtm_geomap" {
  value = data.akamai_gtm_geomap.my_gtm_geomap
}
Changes to Outputs:
  + my_gtm_geomap = {
      + assignments        = [
          + {
              + countries     = [
                  + "AG",
                  + "BB",
                  + "CA",
                  + "DM",
                  + "VI",
                ]
              + datacenter_id = 1234
              + nickname      = "Sample geomap"
            },
        ]
      + default_datacenter = {
          + datacenter_id = 2345
          + nickname      = "Default mapping"
        }
      + domain             = "my_gtm_geomap.akadns.net"
      + id                 = "gtm_geomap"
      + links              = [
          + {
              + href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/my_gtm_geomap.com/geographic-maps/my%20gtm%20geomap"
              + rel  = "self"
            },
        ]
      + map_name           = "my gtm geomap"
    }

Arguments

Pass both a domain and a map name in the data block.

ArgumentRequiredDescription
domain‚úĒÔłŹA GTM domain name.
map_name‚úĒÔłŹYour GTM domain's geographical map name.

Attributes

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

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.