Skip to content

Get a server's Media Offload storage

GET /v1/servers/{serverId}/media-offload

Media Offload on a server: the storage included with it for its sites' media libraries, how much each site uses, and this month's extra storage so far. Storage beyond what's included is billed after the month ends. Servers of your own have no storage included (allowance is null).

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

servers:read
View servers. See servers, their graphs, snapshots, logs and security (Imunify360).

Path parameters

FieldType and description
serverId Required

string

The server's id.

Example request

curl "https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/media-offload" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns the ServerMediaOffload object in data.

The ServerMediaOffload object's fields 11 fields
FieldType and description
serverId

string

The server's id.

allowance

object or null

The server's included storage. Null on servers of your own: storage is included with the servers Rabbitflare creates.

includedBytes

integer

Storage included with the server, shared by its sites (decimal: 1 GB is 1,000,000,000 bytes).

usedBytes

integer

Storage the server's sites use now.

sites

array of objects

The sites using it, largest first.

Show its 3 fields
FieldType and description
siteId

string

The site's id.

name

string

The site's name.

bytes

integer

Storage it uses.

extraCentsPerGbMonth

number

The price of each GB stored beyond what's included, per month, in US cents (it can have decimals). Billed after the month ends.

monthToDateCents

integer or null

Extra storage this month so far, before it's billed, in US cents. Null for a token without billing:read.

currency

string Always "usd"

Always usd: amounts are in US cents.

Example response

200 OK
{
  "data": {
    "serverId": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
    "allowance": {
      "includedBytes": 100000000000,
      "usedBytes": 12480000000,
      "sites": [
        {
          "siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
          "name": "Shop",
          "bytes": 12480000000
        }
      ],
      "extraCentsPerGbMonth": 2.085,
      "monthToDateCents": 0,
      "currency": "usd"
    }
  }
}

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
403 feature_unavailable

This product isn't open to the account.

Contact support if you'd like it opened.

404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

Rate limit

Read requests: 120 a minute per token, 240 per account. More in Rate limits.

Added on .

Popular

API docs