models
Creates, updates, deletes, gets or lists a models resource.
Overview​
| Name | models |
| Type | Resource |
| Id | ovh.vps.models |
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 available for the VPS range, with their disk, memory, vCore, datacenter, disk location type, maximum additional IPs and available options. (Deprecated, will be removed) |
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 available for the VPS range, with their disk, memory, vCore, datacenter, disk location type, maximum additional IPs and available options. (Deprecated, will be removed)
SELECT
name,
available_options,
datacenter,
disk,
disk_location_type,
maximum_additionnal_ip,
memory,
offer,
vcore,
version
FROM ovh.vps.models
WHERE service_name = '{{ service_name }}' -- required
;