Skip to main content

available_upgrades

Creates, updates, deletes, gets or lists an available_upgrades resource.

Overview​

Nameavailable_upgrades
TypeResource
Idovh.vps.available_upgrades

Fields​

The following fields are returned by SELECT queries:

A structure describing characteristics of a VPS model

NameDatatypeDescription
namestring
available_optionsarray (wire: availableOptions)
datacenterarray
diskinteger
disk_location_typestringPossible location type a disk can have (distant, local) (wire: diskLocationType)
maximum_additionnal_ipinteger (wire: maximumAdditionnalIp)
memoryinteger
offerstring
vcoreinteger
versionstringAll versions that VPS can have (2013v1, 2014v1, 2015v1, 2017v1, 2017v2, 2017v3, 2018v1, 2018v2, 2019v1, 2025v1)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_nameReturns 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.

NameDatatypeDescription
api_hoststringThe 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_namestringService name (wire: serviceName)

SELECT examples​

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
;