Skip to content

Preview a bandwidth pooling change

GET/bandwidth-blocks/pooling/preview

Overview

Previews a bandwidth pooling change without applying it. Send location_id. If pooling is enabled, cities shows the usage assigned to each server after disabling it. If pooling is disabled, stranded_blocks lists the team's blocks assigned to servers in more than one location or team, which would no longer provide bandwidth after enabling it.

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/pooling/preview?location_id=value' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
{
  "location_id": 3,
  "pooling": false,
  "cities": [],
  "stranded_blocks": []
}

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>.

Query parameters

location_idintegerrequired

The location id ID.

Response 200

application/json

The record, as a JSON object. There is no envelope.

location_idintegerrequired

The location id ID.

poolingbooleanrequired

The value of pooling.

citiesobject[]required

The value of cities.

Show child attributes
location_idintegerrequired

The location id ID.

namestringrequired

The name shown to customers.

serversobject[]required

The value of servers.

Show child attributes
uuidstringrequired

The uuid UUID.

namestringrequired

The name shown to customers.

template_namestring | nullrequired

What the dialog paints the machine with, the same as the dashboard.

template_icon_urlstring | nullrequired

The value of template_icon_url.

windowsbooleanrequired

The value of windows.

limitintegerrequired

The value of limit.

usageintegerrequired

The value of usage.

usage_afterintegerrequired

The value of usage_after.

shaped_afterbooleanrequired

The value of shaped_after.

usageintegerrequired

The value of usage.

limitintegerrequired

The value of limit.

bound_blocksintegerrequired

Blocks bound to this city, which stop covering anything the moment the pool is gone.

stranded_blocksobject[]required

The value of stranded_blocks.

Show child attributes
uuidstringrequired

The uuid UUID.

terabytesintegerrequired

The value of terabytes.

remainingintegerrequired

The value of remaining.

region_labelstringrequired

The value of region_label.

serversstring[]required

The machines it covers, by name, so far as this reader may be told.

servers_in_other_teamsintegerrequired

The value of servers_in_other_teams.

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.