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
Log off from one or more HPE OneView appliances and remove the corresponding entries from$ConnectedSessions.
Syntax
Description
Disconnect-OVMgmt sends a DELETE request to the appliance session endpoint for each specified connection, invalidating the session token server-side, and then removes the connection from the $Global:ConnectedSessions tracker.
When called without arguments the cmdlet disconnects the current default connection. You can also pass:
- A connection object (e.g. from
$ConnectedSessions) directly or through the pipeline. - A hostname string to look up and disconnect a named connection.
- A connection ID integer to target a specific connection by its numeric ID.
$ConnectedSessions and no default is marked, that remaining connection is automatically promoted to the default.
The cmdlet returns the updated $ConnectedSessions collection after all requested disconnections have been processed.
Parameters
The connection(s) to disconnect. Accepts an
HPEOneView.Appliance.Connection object, a hostname string, or a connection ID integer. Accepts pipeline input and the aliases Appliance, ApplianceSession, and Hostname.Defaults to the current default connection ($ConnectedSessions | Where-Object Default) when not specified.Return value
Returns the updated$Global:ConnectedSessions collection after all specified connections have been removed.