Resize a snapshot storage
Overview
Changes the storage to size_gb. A larger size charges the prorated difference to account credit and applies once the payment clears. pending_resize shows the change until then. A smaller size applies immediately and credits the unused difference back. It must still fit every snapshot in the storage. In both cases, the recurring price changes to the price of the new size.
Permissions
Requires the billing.purchase (Make purchases) 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>.
Path parameters
The snapshot storage uuid short
Body
application/jsonThe value of size_gb.
50 to 10000
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The uuid UUID.
The value of uuid_short.
The name shown to customers.
The value of status.
One of: pending_payment, active, pending_cancellation, terminating, terminated, expired, payment_review
The status in the customer's words, with suspension first.
What the purchase is waiting on, when it is waiting on something.
Whether the purchase is waiting for the account to hold enough credit.
The size bought, in whole GiB.
The size bought, in bytes.
What the finished snapshots in it occupy, in bytes.
Capacity less used, never below nought, in bytes.
The number of snapshots count.
Whether billing has suspended it. Its snapshots are frozen while it is.
Whether snapshots may be taken into, restored from, deleted from or moved in or out of it.
The value of billing.
Show child attributesHide child attributes
The customer's service number, once a recurring service exists.
The customer's invoice number, once an invoice exists.
A complete URL where the invoice can be paid.
The checkout UUID, or null when no checkout is available.
The value of checkout_uuid_short.
The current invoice status, or null before an invoice exists.
The amount in the currency shown by currency.
The three-letter currency code used for amount.
How often the service renews, or null for a one-time charge.
When payment is due before the reservation is released.
How many minutes the original payment window allowed.
When the charge was paid, or null while payment is outstanding.
The value of cancellation_type.
One of: immediate, end_of_billing, null
The date and time for cancellation requested at, in UTC.
The value of autopay.
Whether the customer can cancel.
Whether an end-of-period cancellation can still be taken back.
Whether the customer can resize.
A change of size still being paid for or written to billing.
Show child attributesHide child attributes
The uuid UUID.
The value of from_gb.
The value of to_gb.
The value of status.
One of: pending, completed, expired, payment_review
Whether the charge is waiting for the account to hold enough credit.
The value of progress_message.
The prorated charge for a larger size.
The prorated credit for a smaller size.
The three-letter currency code used for monetary amounts.
The date and time for created at, in UTC.
The date and time for created at, in UTC.
Errors
- 400
- The size is out of range or unchanged, the snapshots already in the storage would not fit, the storage is suspended, being cancelled or has a resize in progress, or its renewal is due.
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 402
- The account credit does not cover the charge for a larger size.
- 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.
- 404
- The resource was not found in the selected team. Resources in another account or team also return 404.
- 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