Location
akamai_cloudwrapper_location
Get details about a given traffic location.
data "akamai_cloudwrapper_location" "my_location" {
location_name = "United Kingdom"
traffic_type = "LIVE_VOD"
}
output "my_location" {
value = data.akamai_cloudwrapper_location.my_location
}
Changes to Outputs:
+ my_location = {
+ id = "akamai_cloudwrapper_location"
+ location_id = "cw-s-gb"
+ location_name = "United Kingdom"
+ traffic_type = "LIVE_VOD"
+ traffic_type_id = 3
}
variable "traffic_type_id" {
type = string
description = "My location's traffic type"
default = "3"
}
// tvars
traffic_type_id = var.traffic_type_id
Arguments
Pass a location's name and traffic type in the body of the data block.
Argument | Required | Description |
---|---|---|
location_name | ✔️ | A location's name. |
traffic_type | ✔️ | The type of traffic served at the location.
|
Attributes
Returned to you is a location
set with high level details about your location.
Attribute | Description |
---|---|
location_id | A location's ID. |
location_name | A location's name. |
traffic_type | The type of traffic served at the location.
|
traffic_type_id | An ID that represents a combination of location and traffic type. |
Updated 5 months ago