New-MaskingView
SYNOPSIS
Creates a masking view.
SYNTAX
ByHostId (Default)
New-MaskingView [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> -StorageGroupId <String>
-PortGroupId <String> -HostId <String> [-EnableComplianceAlerts] [-Confirm] [-WhatIf] [<CommonParameters>]
ByHostGroupId
New-MaskingView [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> -StorageGroupId <String>
-PortGroupId <String> -HostGroupId <String> [-EnableComplianceAlerts] [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
Creates a masking view.
EXAMPLES
Example 1
PS C:\> New-MaskingView -Unisphere $unisphere -ArrayId 000123456789 -Id mv1 -StorageGroupId sg1 -PortGroupId pg1 -HostId host1
Where $unisphere is a Unisphere server instance. Creates masking view mv1 with storage group sg1, port group pg1 and host host1.
Example 2
PS C:\> New-MaskingView -Unisphere $unisphere -ArrayId 000123456789 -Id mv1 -StorageGroupId sg1 -PortGroupId pg1 -HostGroupId hg1 -EnableComplianceAlerts
Where $unisphere is a Unisphere server instance. Creates masking view mv1 with storage group sg1, port group pg1, host group hg1 and compliance alerts enabled.
PARAMETERS
-Unisphere
The Unisphere server object.
Type: UnisphereServer
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ArrayId
The PowerMax array ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Id
The masking view ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-StorageGroupId
The storage group ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PortGroupId
The port group ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-HostId
The host ID.
Type: String
Parameter Sets: ByHostId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-HostGroupId
The host group ID.
Type: String
Parameter Sets: ByHostGroupId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EnableComplianceAlerts
Enables compliance alerts.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
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.