List upgrade plans for a server
Overview
Lists available upgrade plans, grouped by product and location. current_group_id and current_location_id identify the current plan's group and location. current_disk is the current disk size. disk_resize_required indicates whether the disk must grow, and migration_allowed indicates whether the server can move to another location. has_attached_floating_ips indicates that a floating IP is attached; plans in another location are still listed, but quoting one is refused until the floating IPs are detached.
A plan listed as available can still be quoted for ten minutes after the catalogue was read, even if the capacity it was listed on is taken in the meantime.
location_change_fee and product_change_fee are the fixed fees for changing location or product group. Use these to show fees before requesting a quote. When upgrades are unavailable, enabled is false and no plans are returned.
Permissions
Requires the server.read (View servers) 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 server uuid short
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The value of enabled.
The three-letter currency code used for monetary amounts.
The current location id ID.
The current group id ID.
Current primary disk capacity in bytes.
The value of disk_resize_required.
The value of migration_allowed.
Whether the resource has attached floating ips.
The value of location_change_fee.
The value of product_change_fee.
The value of groups.
Show child attributesHide child attributes
The id ID.
The name shown to customers.
An optional description shown to customers.
The value of subtext.
The value of speed.
The value of ddr5.
The value of locations.
Show child attributesHide child attributes
The id ID.
The value of display_name.
The name shown to customers.
The value of flag_url.
The value of cid.
The value of group_name.
The location id ID.
The product group id ID.
The value of plans.
Show child attributesHide child attributes
The value of key.
The id ID.
The name shown to customers.
The value of vcpu_cores.
Memory in advertised units; 1000 represents 1 GiB.
Advertised disk capacity in GiB.
Transfer allowance in advertised units; 1000 represents 1 TiB and zero means unlimited.
The value of hdd.
Primary disk capacity in GiB.
Secondary hard disk capacity in GiB.
The value of price.
The value of deployment_time.
The billing product identifier.
The value of available.
The external order URL, when configured.
The value of unavailable_reason.
The value of available_with_disk_resize.
The value of unavailable_with_disk_resize_reason.
Whether the resource is current.
Errors
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 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.
- 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