Remove-EmcStorageAccessControl

Removes the pool access information from the storage access control object.

 

Syntax

Remove-EmcStorageAccessControl -AccessControl <StorageAccessControlSurrogate> -Pool <StoragePool> [-AccessList <String>] [-Silent] [<CommonParameters>]

 

Parameters

AccessControl <StorageAccessControlSurrogate>

Attributes: Required, Position: named

Specifies the storage access control object, which can be created by using the New-EmcStorageAccessControl cmdlet.

 

-Pool <StoragePool>

Attributes: Required, Position: named

Specifies the ESI storage pool object, which you can get from the ESI block storage system or by using the Get-EmcStoragePool cmdlet.

 

-AccessList <String>

Attributes: Optional, Position: named

Specifies the access types to be removed from the storage access control object. The format is a quoted string where the access types are separated by commas. The valid access types for a pool can be queried through the Get-EmcStorageAccessControl cmdlet.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

-------------- Example 1 --------------

C:\PS>$sac = New-EmcStorageAccessControl

C:\PS>$pool = Get-EmcStoragePool Gold*

C:\PS>Add-EmcStorageAccessControl -AccessControl $sac -Pool $pool -AccessList "FullControl"

C:\PS>Remove-EmcStorageAccessControl -AccessControl $sac -Pool $pool -AccessList "CreateLun,DeleteLun"

This example removes some pool access types from the storage access control object.