Files
ZertoApiWrapper/ZertoApiWrapper/Public/Get-ZertoZsspSession.ps1
T
Wes Carroll 59a0a53812 Help system (#4)
* Establish a help system

* Continue to update Help System

* Update Get-ZertoAlert.md

* Update Get-ZertoDatastore.md

* Add Link to Zerto API for Datastores

* Update Get-ZertoLicense.md

* Update Links to Zerto API documentation

* Update the Readme Information

* Continue to update README

* Update README

* Update README.md

* Update Help Markdown Files

* Correct API URL

* Update ZertoApiWrapper-help.xml

* Update Get-ZertoProtectedVm.md

* Update Help Markdown files

* Update Get-ZertoVpgSetting.md

* Added online url to each help object.

* Update Help Markdown Files

* Update ZertoApiWrapper-help.xml
2019-03-06 20:50:14 -05:00

32 lines
929 B
PowerShell

<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Get-ZertoZsspSession {
[cmdletbinding( DefaultParameterSetName = "default" )]
param(
[Parameter(
ParameterSetName = "zsspSessionIdentifier",
HelpMessage = "ZSSP Session Id(s) to get information."
)]
[string[]]$zsspSessionIdentifier
)
begin {
$baseUri = "zsspSessionIdentifier"
$returnObject = @()
}
process {
if ( $PSCmdlet.ParameterSetName -eq "default" ) {
$returnObject = Invoke-ZertoRestRequest -uri $baseUri
} elseif ( $PSCmdlet.ParameterSetName -eq "zsspSessionIdentifier" ) {
$returnObject = foreach ( $id in $zsspSessionIdentifier ) {
$uri = "{0}/{1}" -f $baseUri, $id
$returnObject = Invoke-ZertoRestRequest -uri $uri
}
}
}
end {
return $returnObject
}
}