Skip to main content

partition_scheme_hardware_raids

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

Overview​

Namepartition_scheme_hardware_raids
TypeResource
Idovh.dedicated_installation_template.partition_scheme_hardware_raids

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringHardware RAID name
disksarrayDisk list
modestringRAID mode (raid0, raid1, raid10, raid5, raid50, raid6, raid60)
stepintegerSpecifies the creation order of the hardware RAID

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectname, scheme_name, template_nameGet a hardware RAID. Returns the RAID mode, the disks and the creation order of a hardware RAID defined in the partitioning scheme.
listselectscheme_name, template_namex_pagination_modeList 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.

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"}})
namestringHardware RAID name
scheme_namestringThis partitioning scheme name (wire: schemeName)
template_namestringThis template name (wire: templateName)
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 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
;