Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt

Use this file to discover all available pages before exploring further.

Synopsis

Retrieves storage volume template objects from HPE OneView.

Syntax

Get-OVStorageVolumeTemplate
    [-Name <String>]
    [-Label <String>]
    [-Scope <Object>]
    [-ApplianceConnection <Object>]
    [<CommonParameters>]

Description

Get-OVStorageVolumeTemplate retrieves volume templates that have been defined in HPE OneView. Volume templates capture a set of provisioning defaults — storage pool, capacity, provisioning type, sharing state, compression, and deduplication settings — and allow administrators to enforce consistent volume standards across their environment. Templates can be used with New-OVStorageVolume and New-OVStorageVolumeTemplate. If the appliance has the mandatory template policy enabled (see Set-OVStorageVolumeTemplatePolicy), all new volumes must be created from a template. Returned objects carry the HPEOneView.Storage.VolumeTemplate type and can be piped to New-OVStorageVolume, Set-OVStorageVolumeTemplate, or Remove-OVStorageVolumeTemplate.

Parameters

Name
String
Name of the volume template to retrieve. Supports wildcard matching. Aliased as TemplateName.
Label
String
Filter results to templates that have this label assigned.
Scope
Object
Filter by HPE OneView scope. Defaults to AllResourcesInScope.
ApplianceConnection
Object
HPE OneView appliance connection. Defaults to the default connected session. Aliased as Appliance.

Examples

List all volume templates

Get-OVStorageVolumeTemplate

Get a template by name

$svt = Get-OVStorageVolumeTemplate -Name "Gold-Tier-Template"

Use a template to create a volume

$svt = Get-OVStorageVolumeTemplate -Name "Gold-Tier-Template"

New-OVStorageVolume -Name "DB-Vol-01" -VolumeTemplate $svt -Capacity 1024

List templates and display their storage pool associations

Get-OVStorageVolumeTemplate | Select-Object -Property name, storagePoolUri, provisioningType

Get all templates that have a specific label

Get-OVStorageVolumeTemplate -Label "production"

Output

HPEOneView.Storage.VolumeTemplate Each object includes the template name, associated storage pool, default capacity, provisioning type, sharing configuration, and compression/deduplication settings.

Build docs developers (and LLMs) love