manage_storage_access

Grants, revokes, or changes the privilege on a storage.

Format

Standard Mode

emcli manage_storage_access
        -storage_name="<storage name>"
        -action="<change_owner|add_grant|revoke_grant>"
        -user="<user name>"
        [-privilege="<VIEW_STORAGE|MANAGE_STORAGE|FULL_STORAGE>"]

Interactive or Script Mode

manage_storage_access(
        storage_name="<storage name>"
        ,action="<change_owner|add_grant|revoke_grant>"
        ,user="<user name>"
       [,privilege="<VIEW_STORAGE|MANAGE_STORAGE|FULL_STORAGE>"]
       )

[ ]  indicates that the parameter is optional. 

Options

  • storage_name

    Name of the storage.

  • action

    The manage access action to be performed on the storage.

  • user

    The user to or from whom the privilege has to be granted or revoked.

  • privilege

    The privilege to be granted/revoked.

Exit Codes

0 if successful. A non-zero value indicates that verb processing was unsuccessful.

Example

The following example grants a Full Storage privilege to the user stradmin2:

emcli manage_storage_access
                -storage_name="sunzfs1"
                -action="add_grant"
                -user="stradmin2"
                [-privilege="FULL_STORAGE"]