Get-VolumeMapping
SYNOPSIS
Gets details of PowerStore volume mappings.
SYNTAX
ByVolumeName (Default)
Get-VolumeMapping [-Cluster] <Cluster> [-VolumeName] <String[]> [<CommonParameters>]
ByVolumeId
Get-VolumeMapping [-Cluster] <Cluster> -VolumeId <String[]> [<CommonParameters>]
ByHostName
Get-VolumeMapping [-Cluster] <Cluster> -HostName <String[]> [<CommonParameters>]
ByHostId
Get-VolumeMapping [-Cluster] <Cluster> -HostId <String[]> [<CommonParameters>]
ByHostGroupName
Get-VolumeMapping [-Cluster] <Cluster> -HostGroupName <String[]> [<CommonParameters>]
ByHostGroupId
Get-VolumeMapping [-Cluster] <Cluster> -HostGroupId <String[]> [<CommonParameters>]
ById
Get-VolumeMapping [-Cluster] <Cluster> -Id <String[]> [<CommonParameters>]
DESCRIPTION
Get details of mapping associations between a volume and a host or host group on a PowerStore cluster.
EXAMPLES
Example 1
PS C:\> Get-VolumeMapping -Cluster $cluster -Id id1,id2
Where $cluster is a PowerStore cluster instance. Returns details of volume mappings id1 and id2.
Example 2
PS C:\> Get-VolumeMapping -Cluster $cluster -VolumeName volume1
Where $cluster is a PowerStore cluster instance. Returns only volume mappings of volume volume1.
Example 3
PS C:\> Get-VolumeMapping -Cluster $cluster -HostId id1
Where $cluster is a PowerStore cluster instance. Returns only volume mappings of host id1.
Example 4
PS C:\> Get-VolumeMapping -Cluster $cluster -HostGroupName hostgroup1
Where $cluster is a PowerStore cluster instance. Returns only volume mappings of host group hostgroup1.
PARAMETERS
-Cluster
A PowerStore cluster instance.
Type: Cluster
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-VolumeName
A list of volume names.
Type: String[]
Parameter Sets: ByVolumeName
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-VolumeId
A list of volume ids.
Type: String[]
Parameter Sets: ByVolumeId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-HostName
A list of host names.
Type: String[]
Parameter Sets: ByHostName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-HostId
A list of host ids.
Type: String[]
Parameter Sets: ByHostId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-HostGroupName
A list of host group names.
Type: String[]
Parameter Sets: ByHostGroupName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-HostGroupId
A list of host group ids.
Type: String[]
Parameter Sets: ByHostGroupId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Id
Volume mapping Id.
Type: String[]
Parameter Sets: ById
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.