---
updatedAt: 2026-03-01T18:38:59.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/llms.txt
---

# Resources

akamai_gtm_resources

Get details about all resources assigned to a GTM domain.

```json Query
data "akamai_gtm_resources" "my_gtm_resources" {
  domain = "my_gtm_domain.akadns.net"
}

output "my_gtm_resources" {
  value = data.akamai_gtm_resources.my_gtm_resources
}
```
```json Standard output
my_gtm_resources = {
      domain    = "my_gtm_domain.akadns.net"
      id        = "akamai_gtm_resources"
      resources = [
          {
              aggregation_type               = "sum"
              constrained_property           = ""
              description                    = "Testing resource"
              host_header                    = "header"
              leader_string                  = "leader"
              links                          = [
                  {
                      href = "https://akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net/config-gtm/v1/domains/example_domain.akadns.net/resources/resource1"
                      rel  = "self"
                    },
                ]
              load_imbalance_percentage      = 0
              name                           = "resource1"
              resource_instances             = [
                  {
                      datacenter_id           = 1
                      load_object             = ""
                      load_object_port        = 1234
                      load_servers            = [
                          "0.0.0.1",
                        ]
                      use_default_load_object = false
                    },
                  {
                      datacenter_id           = 2
                      load_object             = ""
                      load_object_port        = 1234
                      load_servers            = [
                          "0.0.0.2",
                        ]
                      use_default_load_object = false
                    },
                ]
              type                           = "Non-XML load object via HTTP"
              upper_bound                    = 0
            },
        ]
    }
```

## Arguments

Pass a domain name in the data block.

## Attributes

Returned are high-level details about the resources assigned to your GTM domain.

[block:parameters]
{
  "data": {
    "h-0": "Argument",
    "h-1": "Description",
    "0-0": "`aggregation_type`",
    "0-1": "Specifies how GTM handles different load numbers when multiple load servers are used for a data center or property. Values returned are:<ul><li><code>latest</code>. Takes the values with the latest timestamp.</li> <li><code>median</code>. Takes the median of the values.</li><li><code>sum</code>. Takes the sum of the values.</li></ul>",
    "1-0": "`constrained_property`",
    "1-1": "Specifies the name of the property that this resource constraints.",
    "2-0": "`description`",
    "2-1": "A descriptive note to help you track what the resource constraints.",
    "3-0": "`domain`",
    "3-1": "The GTM domain name.",
    "4-0": "`host_header`",
    "4-1": "Specifies the host header used when fetching the load object.",
    "5-0": "`leader_string`",
    "5-1": "Specifies the text that comes before the `load_object`. GTM assumes that the current load is the first number to appear after this string, minus any white space. The value is a maximum of 256 characters. The default is `null`.",
    "6-0": "`links`",
    "6-1": "An object providing the direct URL to the GTM resource. Contains:<ul><li><code>rel</code>. The link relationship of the object.</li><li><code>href</code>. The fully-qualified URL that defines the GTM resource.</li></ul>",
    "7-0": "`load_imbalance_percentage`",
    "7-1": "Indicates the percent of load imbalance factor for the domain.",
    "8-0": "`type`",
    "8-1": "Indicates the kind of `load_object` format used to determine the load on the resource. Values include: <ul><li>`XML load object via HTTP`</li><li>`XML load object via HTTPS`</li><li>`Non-XML load object via HTTP`</li><li>`Non-XML load object via HTTPS`</li><li>`Download score`</li><li>`Push API`</li></ul>",
    "9-0": "`upper_bound`",
    "9-1": "An optional sanity check that specifies the maximum allowed value for any component of the load object.",
    "10-0": "`resource_instances`",
    "10-1": "An object listing instances of the resource by data center. Value options: <ul><li><code>datacenter_id</code>. A unique identifier for an existing data center in the domain.</li><li><code>load_object</code>. Identifies the load object file used to report real-time information about the current load, maximum allowable load and target load on each resource.</li><li><code>load_object_port</code>. Specifies the TCP port of the <code>load_object</code>.</li><li><code>load_servers</code>. Specifies the list of servers to requests the load object from.</li><li><code>use_default_load_object</code>. Whether to use default <code>load_object</code>. If the  <code>load_object<code> contains a number that exceeds this value, it rejects the entire load object as invalid and GTM continues to use the load values from the most recently acquired <code>load_object</code>.</li></ul>"
  },
  "cols": 2,
  "rows": 11,
  "align": [
    null,
    null
  ]
}
[/block]

# Sibling pages

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