Add advanced function params

This commit is contained in:
Wes Carroll
2019-03-29 17:50:42 -04:00
parent 11a3395bdb
commit c72c354f38
4 changed files with 4 additions and 0 deletions
@@ -1,6 +1,7 @@
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #> <# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Disconnect-ZertoServer { function Disconnect-ZertoServer {
[cmdletbinding()] [cmdletbinding()]
param()
$uri = "session" $uri = "session"
# Delete API Authorization # Delete API Authorization
@@ -1,6 +1,7 @@
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #> <# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Get-ZertoLicense { function Get-ZertoLicense {
[cmdletbinding()] [cmdletbinding()]
param()
$uri = "license" $uri = "license"
Invoke-ZertoRestRequest -uri $uri Invoke-ZertoRestRequest -uri $uri
} }
@@ -1,6 +1,7 @@
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #> <# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Get-ZertoUnprotectedVm { function Get-ZertoUnprotectedVm {
[cmdletbinding()] [cmdletbinding()]
param()
$uri = "virtualizationsites/{0}/vms" -f $script:zvmLocalInfo.siteidentifier $uri = "virtualizationsites/{0}/vms" -f $script:zvmLocalInfo.siteidentifier
Invoke-ZertoRestRequest -uri $uri Invoke-ZertoRestRequest -uri $uri
} }
@@ -1,5 +1,6 @@
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #> <# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Stop-ZertoCloneVpg { function Stop-ZertoCloneVpg {
[cmdletbinding()]
param( param(
[Parameter( [Parameter(
HelpMessage = "Name of the VPG to stop cloning", HelpMessage = "Name of the VPG to stop cloning",