Enable or disable bandwidth pooling for a location
Overview
Enables or disables bandwidth pooling for a location in the current team. Send location_id and enabled. With pooling enabled, the team's servers there share one bandwidth allowance. Each team has its own pools, so servers in the account's other teams are not affected. Otherwise, each server is metered separately. Disabling pooling distributes recorded usage back to individual servers, attaches blocks bound to that location to each of the team's metered servers there, and keeps transfer the pool already drew from a block counting for the servers that block covers. It may immediately throttle servers over their limits. Request a preview first. Returns the team's updated figures for every location.
Permissions
Requires the network.update (Change 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>.
Body
application/jsonThe location id ID.
The value of enabled.
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The city that was switched.
Whether it pools now.
Every city where the team pools, after the change.
Every city's figures, as they stand after the change.
Show child attributesHide child attributes
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.
- 422
- A field is missing or invalid, or the resource cannot accept this change in its current state. Check
messagefor details. Field validation also includes anerrorsobject keyed by field name. - 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