Services

Resize a VPS

Gives a configurable VPS more vCPUs, memory or disk. Sizes only go up; the location, the operating system and the billing cycle stay as they are. Priced by the billing system (pro-rated to the next due date), paid from the account balance, which must already cover it, and written to the VPS once paid. The new vCPU count and memory reach the running system after a restart through the API (a reboot from inside the server keeps the old ones); the disk is enlarged at once. A retry of a resize that went through answers 409 NO_CHANGE and charges nothing. Requires the manage scope.

post/services/{id}/resize

Request

  • Base URL: https://api.imprezahost.com/v1
  • URL: https://api.imprezahost.com/v1/services/{id}/resize
  • Auth: API key in header X-API-Key and API key in header X-API-Secret

Path parameters

idinteger required

Request body

cpu_coresinteger
memory_gbinteger
disk_gbinteger
max_amountstring

Optional. The resize is refused with PRICE_ABOVE_LIMIT if it would cost more.

Example request

{
  "cpu_cores": 2,
  "memory_gb": 2,
  "disk_gb": 30,
  "max_amount": "5.00"
}

Response

Resized and paid

Changes

No recorded changes to this operation across all 1 revision of this API.