GuideReference
TrainingSupportCommunity

AS map

akamai_gtm_asmap

Get details about a given domain's AS map.

data "akamai_gtm_asmap" "my_gtm_asmap" {
  domain   = "my_gtm_asmap.com.akadns.net"
  map_name = "my gtm as map"
}
Changes to Outputs:
  + my_gtm_asmap = {
      + 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_asmap.com.akadns.net/as-maps/my%20gtm%20as%20map"
              + rel  = "self"
            },
        ]
      + map_name           = "my gtm as map"
    }

Arguments

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

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

Attributes

Returned are high-level details about the given domain and map name.

AttributeDescription
assignmentsDetails about the given domain's AS zones. Contains:
  • as_numbers. A set of AS numbers.
  • datacenter_id. An ID for an existing data center in the given domain.
  • nickname. A human-readable name for the group of AS 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 the group of AS zones.
domainThe given domain's name.
idThe data source run ID.
linksThe direct URL to the given domain. Contains:
  • rel. The link relationship of the object.
  • href. The fully-qualified URL that defines the resource.