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 volumes managed by HPE OneView.Syntax
Default
From server profile or template
Description
Get-OVStorageVolume returns volume objects from HPE OneView’s storage inventory. Volumes may be privately assigned to a server profile, shared across multiple profiles, or available (unattached).
Pass a server profile or server profile template object via -InputObject to return only the volumes attached to that resource. Use -Available to list volumes that are not currently attached to any server profile.
Returned objects carry the HPEOneView.Storage.Volume type and can be piped to Get-OVProfileAttachVolume, Set-OVStorageVolume, or Remove-OVStorageVolume.
Parameters
Name of the storage volume. Supports wildcard matching. Aliased as
VolumeName.A server profile or server profile template object. When provided, returns only the volumes attached to that resource. Accepts pipeline input. Aliased as
ServerProfile and ServerProfileTemplate.Filters volumes to those created from the specified volume template. Accepts a template name or an
HPEOneView.Storage.VolumeTemplate object. Aliased as SVT.Returns only volumes that are not currently attached to any server profile (available for assignment).
Filter results to resources that have this label assigned.
Filter by HPE OneView scope. Defaults to
AllResourcesInScope.HPE OneView appliance connection. Defaults to the default connected session. Aliased as
Appliance.Examples
List all storage volumes
Get a volume by name
Get a shared volume by name
Get volumes and attach them to a server profile
List volumes not attached to any server profile
Get volumes created from a specific template
Output
HPEOneView.Storage.Volume
Each object includes the volume name, storage pool, provisioned capacity, provisioning type (Thin/Full), sharing state, and attached server profiles.