Skip to content

List bandwidth usage by location

GET/bandwidth-blocks/pools

Overview

Returns the current team's bandwidth usage for every available location, including zero values where the team has no servers. Each entry includes plan allowances, extra bandwidth, usage and the number of throttled servers. Servers in the account's other teams are not counted.

Permissions

Requires the network.read (View networking) permission for the selected team. Resources outside that team return 404.

curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/bandwidth-blocks/pools' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
[
  {
    "location_id": 3,
    "name": "Kansas City, MO",
    "region": "us_eu",
    "region_label": "Americas & EMEA",
    "pooling": false,
    "servers": 2,
    "shaped_servers": 0,
    "base_limit": 10995116277760,
    "usage": 1358993459200,
    "capacity": 12644383719424,
    "covered": 1649267441664,
    "remaining": 11285390260224,
    "blocks": 1,
    "block_bytes_available": 1649267441664,
    "exhausted": false
  }
]

Authorization

Authorizationstringheaderrequired

Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

Send it as Bearer <token>.

Response 200

application/json

The whole set, as a JSON array. There is no envelope and no paging.

location_idintegerrequired

The location id ID.

namestringrequired

The name shown to customers.

regionstringrequired

The value of region.

One of: us_eu, apac

region_labelstringrequired

The value of region_label.

poolingbooleanrequired

Whether the team's servers here share one budget or are metered one by one.

serversintegerrequired

The value of servers.

shaped_serversintegerrequired

The value of shaped_servers.

base_limitintegerrequired

What the plans alone allow here, in bytes.

usageintegerrequired

The value of usage.

capacityintegerrequired

The budget in force, plans and blocks together.

coveredintegerrequired

How much of that budget the team's blocks are responsible for.

remainingintegerrequired

The value of remaining.

blocksintegerrequired

The value of blocks.

block_bytes_availableintegerrequired

The value of block_bytes_available.

exhaustedbooleanrequired

With pooling on, the whole city at once. With it off, whether at least one server here has been shaped.

Errors

401
The key was missing, malformed, revoked, or belongs to an account that no longer exists.
403
Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
429
Too many requests. The Retry-After header says how many seconds to wait. Limits are per account, so several keys on one account share them.