partition_scheme_hardware_raids
Creates, updates, deletes, gets or lists a partition_scheme_hardware_raids resource.
Overview​
| Name | partition_scheme_hardware_raids |
| Type | Resource |
| Id | ovh.dedicated_installation_template.partition_scheme_hardware_raids |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
name | string | Hardware RAID name |
disks | array | Disk list |
mode | string | RAID mode (raid0, raid1, raid10, raid5, raid50, raid6, raid60) |
step | integer | Specifies the creation order of the hardware RAID |
Hardware RAID defined in this partitioning scheme
| Name | Datatype | Description |
|---|---|---|
name | string | Hardware RAID name |
disks | array | Disk list |
mode | string | RAID mode (raid0, raid1, raid10, raid5, raid50, raid6, raid60) |
step | integer | Specifies the creation order of the hardware RAID |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | name, scheme_name, template_name | Get a hardware RAID. Returns the RAID mode, the disks and the creation order of a hardware RAID defined in the partitioning scheme. | |
list | select | scheme_name, template_name | x_pagination_mode | List hardware RAIDs. Returns the names of the hardware RAIDs defined in the partitioning scheme. Each one has a RAID mode, a disk list and a creation order. |
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"}}) |
name | string | Hardware RAID name |
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 hardware RAID. Returns the RAID mode, the disks and the creation order of a hardware RAID defined in the partitioning scheme.
SELECT
name,
disks,
mode,
step
FROM ovh.dedicated_installation_template.partition_scheme_hardware_raids
WHERE name = '{{ name }}' -- required
AND scheme_name = '{{ scheme_name }}' -- required
AND template_name = '{{ template_name }}' -- required
;
List hardware RAIDs. Returns the names of the hardware RAIDs defined in the partitioning scheme. Each one has a RAID mode, a disk list and a creation order.
SELECT
name,
disks,
mode,
step
FROM ovh.dedicated_installation_template.partition_scheme_hardware_raids
WHERE scheme_name = '{{ scheme_name }}' -- required
AND template_name = '{{ template_name }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;