available_upgrades
Creates, updates, deletes, gets or lists an available_upgrades resource.
Overview​
| Name | available_upgrades |
| Type | Resource |
| Id | ovh.vps.available_upgrades |
Fields​
The following fields are returned by SELECT queries:
- list
A structure describing characteristics of a VPS model
| Name | Datatype | Description |
|---|---|---|
name | string | |
available_options | array | (wire: availableOptions) |
datacenter | array | |
disk | integer | |
disk_location_type | string | Possible location type a disk can have (distant, local) (wire: diskLocationType) |
maximum_additionnal_ip | integer | (wire: maximumAdditionnalIp) |
memory | integer | |
offer | string | |
vcore | integer | |
version | string | All versions that VPS can have (2013v1, 2014v1, 2015v1, 2017v1, 2017v2, 2017v3, 2018v1, 2018v2, 2019v1, 2025v1) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | service_name | Returns the models the VPS can be upgraded to, with their disk, memory, vCore and options. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}}) |
service_name | string | Service name (wire: serviceName) |
SELECT examples​
- list
Returns the models the VPS can be upgraded to, with their disk, memory, vCore and options.
SELECT
name,
available_options,
datacenter,
disk,
disk_location_type,
maximum_additionnal_ip,
memory,
offer,
vcore,
version
FROM ovh.vps.available_upgrades
WHERE service_name = '{{ service_name }}' -- required
;