---
updatedAt: 2026-03-01T18:39:06.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/v9.3/llms.txt
---

# Capacities

akamai_cloudwrapper_capacities

Get a list of your locations' storage capacities.

```json Query
data "akamai_cloudwrapper_capacities" "my_capacities" {
}

output "my_capacities" {
  value = data.akamai_cloudwrapper_capacities.my_capacities
}
```
```json Standard output
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.

[block:parameters]
{
  "data": {
    "h-0": "Attribute",
    "h-1": "Description",
    "0-0": "`approved`",
    "0-1": "The total amount of space allotted to your location.<ul><li><code>unit</code>The storage measurement. `GB` or `TB`.</li><li><code>value</code>. The storage amount.</li></ul>",
    "1-0": "`assigned`",
    "1-1": "The total amount of space your location is already using.<ul><li><code>unit</code>. `GB` or `TB`.</li><li><code>value</code>. The storage amount.</li></ul>",
    "2-0": "`unassigned`",
    "2-1": "<ul><li><code>unit</code>. `GB` or `TB`.</li><li><code>value</code>. The storage amount.</li></ul>",
    "3-0": "`contract_id`",
    "3-1": "A location's contract ID.",
    "4-0": "`location_id`",
    "4-1": "A location's ID.",
    "5-0": "`location_name`",
    "5-1": "A location's name.",
    "6-0": "`type`",
    "6-1": "The type of service at a location.",
    "7-0": "`contract_ids`",
    "7-1": "A list of your contract IDs with Cloud Wrapper authorization."
  },
  "cols": 2,
  "rows": 8,
  "align": [
    null,
    null
  ]
}
[/block]

# Sibling pages

* [Configuration](https://techdocs.akamai.com/terraform/v9.3/docs/cw-ds-configuration.md)
* [Configurations](https://techdocs.akamai.com/terraform/v9.3/docs/cw-ds-configurations.md)
* [Location](https://techdocs.akamai.com/terraform/v9.3/docs/cw-ds-location.md)
* [Locations](https://techdocs.akamai.com/terraform/v9.3/docs/cw-ds-locations.md)
* [Properties](https://techdocs.akamai.com/terraform/v9.3/docs/cw-ds-properties.md)