Skip to main content

location_hypervisors

Creates, updates, deletes, gets or lists a location_hypervisors resource.

Overview​

Namelocation_hypervisors
TypeResource
Idovh.dedicated_cloud.location_hypervisors

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
full_namestringFull name of hypervisor (wire: fullName)
short_namestringShort name of hypervisor (wire: shortName)
last_modification_datestring (date-time)Last modification of hypervisor (wire: lastModificationDate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpcc_zone, short_nameGet a hypervisor version. Returns the short name, full name and last modification date of the hypervisor.
get_by_short_nameselectservice_name, short_nameGet a hypervisor version. Returns the short name, full name and last modification date of the hypervisor.
listselectpcc_zonex_pagination_modeList hypervisor versions
list_by_service_nameselectservice_namex_pagination_modeList hypervisor versions

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"}})
pcc_zonestringName of pccZone (wire: pccZone)
service_namestringDomain of the service (wire: serviceName)
short_namestringShort name of hypervisor (wire: shortName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a hypervisor version. Returns the short name, full name and last modification date of the hypervisor.

SELECT
full_name,
short_name,
last_modification_date
FROM ovh.dedicated_cloud.location_hypervisors
WHERE pcc_zone = '{{ pcc_zone }}' -- required
AND short_name = '{{ short_name }}' -- required
;