Resource
akamai_gtm_resource
Get details about a specific resource assigned to a GTM domain.
data "akamai_gtm_resource" "my_gtm_resource" {
domain = "my_gtm_domain.akadns.net"
resource_name = "resource1"
}
output "my_gtm_resource" {
value = data.akamai_gtm_resource.my_gtm_resource
}
Changes to Outputs:
+ add_resource = {
+ aggregation_type = "sum"
+ constrained_property = ""
+ description = "Testing resource"
+ domain = "my_gtm_domain.akadns.net"
+ host_header = "header"
+ id = "resource1"
+ 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
+ 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
},
]
+ resource_name = "resource1"
+ type = "Non-XML load object via HTTP"
+ upper_bound = 0
}
Arguments
Pass a domain and its resource name in the data block.
Argument | Required | Description |
---|---|---|
domain | ✔️ | The GTM domain name. |
resource_name | ✔️ | The name of the GTM resource. |
Attributes
Returned are high-level details about the resources assigned to your GTM domain.
Argument | Description |
---|---|
aggregation_type | Specifies how GTM handles different load numbers when multiple load servers are used for a data center or property. Value is one of:
|
constrained_property | Specifies the name of the property that this resource constraints. |
description | A descriptive note to help you track what the resource constraints. |
domain | The GTM domain name. |
host_header | Specifies the host header used when fetching the load object. |
id | Identifier for this instance of the data source. |
leader_string | 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 . |
links | An object providing the direct URL to the GTM resource. Contains:
|
load_imbalance_percentage | Indicates the percent of load imbalance factor for the domain. |
type | Indicates the kind of load_object format used to determine the load on the resource. Value is one of:
|
upper_bound | An optional sanity check that specifies the maximum allowed value for any component of the load object. |
resource_instances | An object listing instances of the resource by data center. Value options:
|
Updated 8 months ago