List bandwidth usage by location
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.
Authorization
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/jsonThe whole set, as a JSON array. There is no envelope and no paging.
The location id ID.
The name shown to customers.
The value of region.
One of: us_eu, apac
The value of region_label.
Whether the team's servers here share one budget or are metered one by one.
The value of servers.
The value of shaped_servers.
What the plans alone allow here, in bytes.
The value of usage.
The budget in force, plans and blocks together.
How much of that budget the team's blocks are responsible for.
The value of remaining.
The value of blocks.
The value of block_bytes_available.
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-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown