Calculate scale cost
POST
https://api.vpsbg.eu/v1/servers/{id}/scale/calculateYou can use this endpoint to calculate the cost (when upgrading) or the refund amount (when downgrading). It also provides information about the estimated downtime to complete the process.
Request
Path Params
id
integer
required
Your VPSBG server's ID.
Body Params application/json
plan
string
required
The plan's key you want to scale to.
scale_disk
boolean
required
You have the option to scale the other plan's parameters but disk. This allows you to downgrade later if you plan to make this scale temporarily.
Example
{
"plan": "cloud-vps-2gb",
"scale_disk": false
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
amount
number
required
Amount that will be charged from your account's balance and/or saved card.
amount_with_vat
number
required
estimated_downtime
string
required
"short" usually means only a server reboot will be required. If it's "extended", it will take a bit longer to complete the process.
Examples:
shortextended
Example
{
"amount": 44.44,
"amount_with_vat": 53.33,
"estimated_downtime": "short"
}
Last modified: 10 days ago