Add advanced function params
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user