partition_schemes
Creates, updates, deletes, gets or lists a partition_schemes resource.
Overview​
| Name | partition_schemes |
| Type | Resource |
| Id | ovh.dedicated_installation_template.partition_schemes |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
name | string | This partitioning scheme name |
priority | integer | on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications) |
Partitioning schemes available on this template
| Name | Datatype | Description |
|---|---|---|
name | string | This partitioning scheme name |
priority | integer | on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | scheme_name, template_name | Get a partitioning scheme. Returns the name and priority of a partitioning scheme. On a reinstall without a partitioning scheme, the compatible scheme with the highest priority is used. | |
list | select | template_name | x_pagination_mode | List partitioning schemes. Returns the names of the partitioning schemes of the template. On a reinstall without a partitioning scheme, the compatible scheme with the highest priority is used. |
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"}}) |
scheme_name | string | This partitioning scheme name (wire: schemeName) |
template_name | string | This template name (wire: templateName) |
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
- list
Get a partitioning scheme. Returns the name and priority of a partitioning scheme. On a reinstall without a partitioning scheme, the compatible scheme with the highest priority is used.
SELECT
name,
priority
FROM ovh.dedicated_installation_template.partition_schemes
WHERE scheme_name = '{{ scheme_name }}' -- required
AND template_name = '{{ template_name }}' -- required
;
List partitioning schemes. Returns the names of the partitioning schemes of the template. On a reinstall without a partitioning scheme, the compatible scheme with the highest priority is used.
SELECT
name,
priority
FROM ovh.dedicated_installation_template.partition_schemes
WHERE template_name = '{{ template_name }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;