List web hosting storage add-ons
GET /api/v2/products/shared-hosting/storage-addons
List the extra SSD storage you can buy for a web hosting account, with yearly prices. It needs no API key. Buy one for an existing account with POST /api/v2/shared-hosting/{accountId}/addons/storage. Send the add-on’s id as addonId there.
Authentication: None. Anyone can call it.
Example
curl "https://cloud.hostup.se/api/v2/products/shared-hosting/storage-addons"Responses
200 Storage add-ons you can buy.
{ "data": [ { "id": "7", "sizeGb": 25, "price": 249, "currencyCode": "SEK", "billingCycle": "a" }, { "id": "21", "sizeGb": 50, "price": 449, "currencyCode": "SEK", "billingCycle": "a" } ]}Response fields
dataarray of objectidstringThe add-on ID. Send it as
addonId when you buy the add-on.sizeGbintegerExtra SSD storage in GB.
pricenumberPrice per year in
currencyCode.currencyCodestringISO 4217 currency code.
billingCyclestringAlways
a: billed yearly. The add-on renews with the hosting plan. One of a.Errors
Errors are Problem Details with a stable code. Branch on the code, not on the text.
| 400 | Invalid request. The response body is an RFC 7807 Problem Details document. |
| 404 | Not found. The resource does not exist or is not owned by the caller. |
| 429 | Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers. |
| 500 | Internal error. Retry later or contact support if the issue persists. |
| 502 | upstream_shared_hosting_storage_addons_unavailable: prices could not be loaded. Retry later. |