location_hypervisors
Creates, updates, deletes, gets or lists a location_hypervisors resource.
Overview​
| Name | location_hypervisors |
| Type | Resource |
| Id | ovh.dedicated_cloud.location_hypervisors |
Fields​
The following fields are returned by SELECT queries:
- get
- get_by_short_name
- list
- list_by_service_name
successful operation
| Name | Datatype | Description |
|---|---|---|
full_name | string | Full name of hypervisor (wire: fullName) |
short_name | string | Short name of hypervisor (wire: shortName) |
last_modification_date | string (date-time) | Last modification of hypervisor (wire: lastModificationDate) |
successful operation
| Name | Datatype | Description |
|---|---|---|
full_name | string | Full name of hypervisor (wire: fullName) |
short_name | string | Short name of hypervisor (wire: shortName) |
last_modification_date | string (date-time) | Last modification of hypervisor (wire: lastModificationDate) |
Hypervisor
| Name | Datatype | Description |
|---|---|---|
full_name | string | Full name of hypervisor (wire: fullName) |
short_name | string | Short name of hypervisor (wire: shortName) |
last_modification_date | string (date-time) | Last modification of hypervisor (wire: lastModificationDate) |
Hypervisor
| Name | Datatype | Description |
|---|---|---|
full_name | string | Full name of hypervisor (wire: fullName) |
short_name | string | Short name of hypervisor (wire: shortName) |
last_modification_date | string (date-time) | Last modification of hypervisor (wire: lastModificationDate) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | pcc_zone, short_name | Get a hypervisor version. Returns the short name, full name and last modification date of the hypervisor. | |
get_by_short_name | select | service_name, short_name | Get a hypervisor version. Returns the short name, full name and last modification date of the hypervisor. | |
list | select | pcc_zone | x_pagination_mode | List hypervisor versions |
list_by_service_name | select | service_name | x_pagination_mode | List 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.
| 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"}}) |
pcc_zone | string | Name of pccZone (wire: pccZone) |
service_name | string | Domain of the service (wire: serviceName) |
short_name | string | Short name of hypervisor (wire: shortName) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- get_by_short_name
- list
- list_by_service_name
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
;
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 service_name = '{{ service_name }}' -- required
AND short_name = '{{ short_name }}' -- required
;
List hypervisor versions
SELECT
full_name,
short_name,
last_modification_date
FROM ovh.dedicated_cloud.location_hypervisors
WHERE pcc_zone = '{{ pcc_zone }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
List hypervisor versions
SELECT
full_name,
short_name,
last_modification_date
FROM ovh.dedicated_cloud.location_hypervisors
WHERE service_name = '{{ service_name }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;