Add-EmcStorageAccessControl

Adds the pool access information to the storage access control object.

 

Syntax

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


Parameters

-AccessControl <StorageAccessControlSurrogate>

Attributes: Required, Position: named

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

 

-Pool <StoragePool>

Attributes: Required, Position: named

Specifies the pool that you can add to the storage access control object.

 

-AccessList <String>

Attributes: Optional, Position: named

Specifies the access types that you can add to 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 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 “<RaidGroup 9>”

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

 

Storage Access Control

  StorageSystemGlobalId: 4823ff7a-e9ff-4562-a346-d861aa94e626

  StorageSystemName: VNX5300-1

    <RaidGroup 9>       Block   ViewOnly

 

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

 

Storage Access Control

  StorageSystemGlobalId: 4823ff7a-e9ff-4562-a346-d861aa94e626

  StorageSystemName: VNX5300-1

    <RaidGroup 9>       Block   CreateLun,DeleteLun

This example creates a storage access control object and adds a pool with the specified access types.