Locations
akamai_cloudwrapper_locations
Get a list of traffic locations associated with your API client's credentials.
data "akamai_cloudwrapper_locations" "my_locations" {
}
output "my_locations" {
  value = data.akamai_cloudwrapper_locations.my_locations
}
Changes to Outputs:
+ my_locations = {
    + id        = "akamai_cloudwrapper_locations"
    + locations = [
        + {
            + location_id           = 1
            + location_name         = "United Kingdom"
            + multi_cdn_location_id = ""
            + traffic_types         = [
                + {
                    + location_id     = "cw-s-gb"
                    + traffic_type    = "LIVE_VOD"
                    + traffic_type_id = 1
                  },
                + {
                    + location_id     = "cw-s-gb-live"
                    + traffic_type    = "LIVE"
                    + traffic_type_id = 2
                  },
              ]
          },
        + {
            + location_id           = 2
            + location_name         = "US East"
            + multi_cdn_location_id = ""
            + traffic_types         = [
                + {
                    + location_id     = "cw-s-use-live"
                    + traffic_type    = "LIVE"
                    + traffic_type_id = 3
                  },
                + {
                    + location_id     = "cw-s-use"
                    + traffic_type    = "LIVE_VOD"
                    + traffic_type_id = 4
                  },
              ]
          },
      ]
  }
variable "traffic_type_id" {
  type        = string
  description = "My location's traffic type"
  default     = "3"
}
// tvars
 traffic_type_id = var.traffic_type_id
Arguments
This data source is passed empty. The config_section argument in the Akamai provider block of your Terraform configuration provides the necessary information.
Attributes
Returned to you is a locations set with high level details about your locations.
| Attribute | Description | 
|---|---|
| location_id | A location's ID. | 
| location_name | A location's name. | 
| multi_cdn_location_id | If added, your third-party CDN's location ID. | 
| traffic_types | 
 | 
Updated 9 months ago
