< Back

Disconnect-HPERedfish

Tue Jan 14, 2020 1:52 am

NAME Disconnect-HPERedfish



SYNOPSIS

Disconnects specified session between PowerShell client and Redfish data source.





SYNTAX

Disconnect-HPERedfish [[-Session] <PSObject>] [-DisableCertificateAuthentication] [<CommonParameters>]





DESCRIPTION

Disconnects the session between the PowerShell client and Redfish data source by deleting the session information

from location pointed to by Location field in Session object passed as parameter. This cmdlets uses HTTP DELETE

method for removing session information from location.





PARAMETERS

-Session <PSObject>

Session object that has Location information obtained by executing Connect-HPERedfish cmdlet.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-DisableCertificateAuthentication [<SwitchParameter>]

If this switch parameter is present then server certificate authentication is disabled for the execution of

this cmdlet. If not present it will execute according to the global certificate authentication setting. The

default is to authenticate server certificates. See Enable-HPERedfishCertificateAuthentication and

Disable-HPERedfishCertificateAuthentication to set the per PowerShell session default.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

You can pipe the session object to Disconnect-HPERedfish. The session object is obtained from executing

Connect-HPERedfish.





OUTPUTS

This cmdlet does not generate any output.





NOTES





See typical usage examples in the HPERedfishExamples.ps1 file installed with this module.



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Disconnect-HPERedfish -Session $s



PS C:\\>



This will disconnect the session given in the variable $s











RELATED LINKS

http://www.hpe.com/servers/powershell