Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Switch the current appliance session to a restricted set of permissions, implementing a least-privilege model for the duration of a task.Syntax
Description
Push-OVAppliancePermission submits a session-update request to the appliance that activates only the roles and scopes specified in -SetActivePermissions, deactivating all others for that session. This enables a least-privilege workflow where elevated roles are only exercised when explicitly needed.
Internally the cmdlet:
- Compares the requested permissions against the session’s current active permissions.
- If a difference exists, posts the new permission set to the appliance session endpoint.
- Updates the
SessionIDon theHPEOneView.Appliance.Connectionobject in$ConnectedSessions. - Marks deactivated permissions as inactive and the requested permissions as active on the local connection object.
Pop-OVAppliancePermission to restore all permissions to active.
The -SetActivePermissions array should contain HPEOneView.Appliance.ConnectionPermission objects, such as those returned by Connect-OVMgmt (available via $ConnectedSessions.ActivePermissions).
Parameters
An array of
HPEOneView.Appliance.ConnectionPermission objects representing the subset of permissions to activate for the session. Only roles and scopes present in this array will be active; all other permissions in the session are deactivated.The appliance connection on which to apply the permission change. Accepts an
HPEOneView.Appliance.Connection object or name string. Accepts pipeline input by property name and the alias Appliance.Defaults to the current default connection ($ConnectedSessions | Where-Object Default) when not specified.Return value
Returns theActivePermissions collection of the updated HPEOneView.Appliance.Connection object, reflecting the new permission state.