---
updatedAt: 2026-03-01T18:02:14.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/v9.0/llms.txt
---

# AS map

akamai_gtm_asmap

Get details about a given domain's AS map.

```json Query
data "akamai_gtm_asmap" "my_gtm_asmap" {
  domain   = "my_gtm_asmap.com.akadns.net"
  map_name = "my gtm as map"
}
```
```json Standard output
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.

| Argument   | Required | Description                   |
| ---------- | :------: | ----------------------------- |
| `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.

[block:parameters]
{
  "data": {
    "h-0": "Attribute",
    "h-1": "Description",
    "0-0": "`assignments`",
    "0-1": "Details about the given domain's AS zones. Contains:<ul><li><code>as_numbers</code>. A set of AS numbers.</li><li><code>datacenter_id</code>. An ID for an existing data center in the given domain.</li><li><code>nickname</code>. A human-readable name for the group of AS zones.</li></ul>",
    "1-0": "`default_datacenter`",
    "1-1": "The ID for the default data center in the given domain. Contains:<ul><li><code>datacenter_id</code>. An ID for an existing data center in the given domain.</li><li><code>nickname</code>. A human-readable name for the group of AS zones.</li></ul>",
    "2-0": "`domain`",
    "2-1": "The given domain's name.",
    "3-0": "`links`",
    "3-1": "The direct URL to the given domain. Contains:<ul><li><code>rel</code>. The link relationship of the object.</li><li><code>href</code>. The fully-qualified URL that defines the resource.</li></ul>"
  },
  "cols": 2,
  "rows": 4,
  "align": [
    null,
    null
  ]
}
[/block]

# Sibling pages

* [CIDR map](https://techdocs.akamai.com/terraform/v9.0/docs/gtm-ds-cidr-map.md)
* [Default datacenter](https://techdocs.akamai.com/terraform/v9.0/docs/gtm-ds-default-datacenter.md)
* [Datacenter](https://techdocs.akamai.com/terraform/v9.0/docs/datacenter.md)
* [Datacenters](https://techdocs.akamai.com/terraform/v9.0/docs/datacenters.md)
* [Domain](https://techdocs.akamai.com/terraform/v9.0/docs/gtm-ds-domain.md)
* [Domains](https://techdocs.akamai.com/terraform/v9.0/docs/gtm-ds-domains.md)
* [Geo map](https://techdocs.akamai.com/terraform/v9.0/docs/gtm-ds-geomap.md)
* [Geo maps](https://techdocs.akamai.com/terraform/v9.0/docs/gtm-ds-geomaps.md)
* [Resource](https://techdocs.akamai.com/terraform/v9.0/docs/gtm-ds-resource.md)
* [Resources](https://techdocs.akamai.com/terraform/v9.0/docs/gtm-ds-resources.md)