Capacities

akamai_cloudwrapper_capacities

Get a list of your locations' storage capacities.

data "akamai_cloudwrapper_capacities" "my_capacities" {
}

output "my_capacities" {
  value = data.akamai_cloudwrapper_capacities.my_capacities
}
Changes to Outputs:
my_capacities = {
    capacities   = [
        {
            approved      = {
                unit  = "GB"
                value = 100
              }
            assigned      = {
                unit  = "GB"
                value = 11
              }
            contract_id   = "C-0N7RAC7"
            location_id   = 1
            location_name = "United Kingdom"
            type          = "MEDIA"
            unassigned    = {
                unit  = "GB"
                value = 89
              }
          },
        {
            approved      = {
                unit  = "GB"
                value = 100
              }
            assigned      = {
                unit  = "GB"
                value = 18
              }
            contract_id   = "C-0N7RAC7"
            location_id   = 2
            location_name = "US East"
            type          = "MEDIA"
            unassigned    = {
                unit  = "GB"
                value = 82
              }
          },
      ]
    contract_ids = null
  }

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 capacities set with high level details about your locations' capacity values.

AttributeDescription
approvedThe total amount of space allotted to your location.
  • unitThe storage measurement. GB or TB.
  • value. The storage amount.
assignedThe total amount of space your location is already using.
  • unit. GB or TB.
  • value. The storage amount.
unassigned
  • unit. GB or TB.
  • value. The storage amount.
contract_idA location's contract ID.
location_idA location's ID.
location_nameA location's name.
typeThe type of service at a location.
contract_idsA list of your contract IDs with Cloud Wrapper authorization.