Merge pull request #17 from wcarroll/aliasUpdates
Alias updates and param validation
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
$filePath = (Split-Path -Parent $MyInvocation.MyCommand.Path) -replace 'Tests', 'ZertoApiWrapper'
|
||||||
|
$publicFiles = Get-ChildItem "$filePath" -File
|
||||||
|
|
||||||
|
describe "External Help Present" {
|
||||||
|
foreach ($file in $publicFiles) {
|
||||||
|
it "External Help File Defined" {
|
||||||
|
Get-Content -Path $file.fullName -First 1 | should be "<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,10 +7,12 @@ function Connect-ZertoServer {
|
|||||||
HelpMessage = "IP address or FQDN of your Zerto Management Server"
|
HelpMessage = "IP address or FQDN of your Zerto Management Server"
|
||||||
)]
|
)]
|
||||||
[ValidateNotNullOrEmpty()]
|
[ValidateNotNullOrEmpty()]
|
||||||
|
[Alias("server", "zvm")]
|
||||||
[string]$zertoServer,
|
[string]$zertoServer,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Zerto Virtual Manager management port. Default value is 9669."
|
HelpMessage = "Zerto Virtual Manager management port. Default value is 9669."
|
||||||
)]
|
)]
|
||||||
|
[Alias("port")]
|
||||||
[string]$zertoPort = "9669",
|
[string]$zertoPort = "9669",
|
||||||
[Parameter(
|
[Parameter(
|
||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ function Edit-ZertoVra {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "Identifier of the VRA to be updated."
|
HelpMessage = "Identifier of the VRA to be updated."
|
||||||
)]
|
)]
|
||||||
|
[Alias("vraId")]
|
||||||
[string]$vraIdentifier,
|
[string]$vraIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Bandwidth group to assign to the VRA. If unspecified will not modify current assignment"
|
HelpMessage = "Bandwidth group to assign to the VRA. If unspecified will not modify current assignment"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
|
||||||
function Export-ZertoVpg {
|
function Export-ZertoVpg {
|
||||||
[cmdletbinding()]
|
[cmdletbinding()]
|
||||||
param(
|
param(
|
||||||
|
|||||||
@@ -42,16 +42,19 @@ function Get-ZertoAlert {
|
|||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "Returns alerts for the specified vraIdentifier"
|
HelpMessage = "Returns alerts for the specified vraIdentifier"
|
||||||
)]
|
)]
|
||||||
|
[Alias("vpgId")]
|
||||||
[string]$vpgIdentifier,
|
[string]$vpgIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "Returns alerts for the specified siteIdentifier"
|
HelpMessage = "Returns alerts for the specified siteIdentifier"
|
||||||
)]
|
)]
|
||||||
|
[Alias("siteId")]
|
||||||
[string]$siteIdentifier,
|
[string]$siteIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "Returns alerts for the specified zorgIdentifier"
|
HelpMessage = "Returns alerts for the specified zorgIdentifier"
|
||||||
)]
|
)]
|
||||||
|
[Alias("zorgId")]
|
||||||
[string]$zorgIdentifier,
|
[string]$zorgIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
@@ -62,6 +65,7 @@ function Get-ZertoAlert {
|
|||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "Returns alerts for the specified helpIdentifier"
|
HelpMessage = "Returns alerts for the specified helpIdentifier"
|
||||||
)]
|
)]
|
||||||
|
[Alias("helpId")]
|
||||||
[string]$helpIdentifier,
|
[string]$helpIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
function Get-ZertoDatastore {
|
function Get-ZertoDatastore {
|
||||||
[cmdletbinding( DefaultParameterSetName = "main" )]
|
[cmdletbinding( DefaultParameterSetName = "main" )]
|
||||||
param(
|
param(
|
||||||
|
[Alias("datastoreId")]
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "datastoreIdentifier",
|
ParameterSetName = "datastoreIdentifier",
|
||||||
HelpMessage = "datastoreIdentifier or array of datastoreIdentifiers to be queried"
|
HelpMessage = "datastoreIdentifier or array of datastoreIdentifiers to be queried"
|
||||||
|
|||||||
@@ -16,11 +16,13 @@ function Get-ZertoEvent {
|
|||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The name of the VPG for which you want to return events."
|
HelpMessage = "The name of the VPG for which you want to return events."
|
||||||
)]
|
)]
|
||||||
|
[Alias("vpgName")]
|
||||||
[string]$vpg,
|
[string]$vpg,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The identifier of the VPG for which you want to return events."
|
HelpMessage = "The identifier of the VPG for which you want to return events."
|
||||||
)]
|
)]
|
||||||
|
[Alias("vpgId")]
|
||||||
[string]$vpgIdentifier,
|
[string]$vpgIdentifier,
|
||||||
[Parameter( ParameterSetName = "filter",
|
[Parameter( ParameterSetName = "filter",
|
||||||
HelpMessage = "The type of event. For the description of events, refer to the Zerto Virtual Replication documentation about alerts and events. Please see Zerto API Documentation for possible values."
|
HelpMessage = "The type of event. For the description of events, refer to the Zerto Virtual Replication documentation about alerts and events. Please see Zerto API Documentation for possible values."
|
||||||
@@ -35,16 +37,19 @@ function Get-ZertoEvent {
|
|||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The internal site identifier for which you want to return events."
|
HelpMessage = "The internal site identifier for which you want to return events."
|
||||||
)]
|
)]
|
||||||
|
[Alias("siteId")]
|
||||||
[string]$siteIdentifier,
|
[string]$siteIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The identifier of the ZORG, Zerto organization, defined in the Zerto Cloud Manager for which you want to return results."
|
HelpMessage = "The identifier of the ZORG, Zerto organization, defined in the Zerto Cloud Manager for which you want to return results."
|
||||||
)]
|
)]
|
||||||
|
[Alias("zorgId")]
|
||||||
[string]$zorgIdentifier,
|
[string]$zorgIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The type of entity for which you wish to return results. Possible Values are: '0' or 'VPG', '1' or 'VRA', '2' or 'Unknown', or '3' or 'Site'"
|
HelpMessage = "The type of entity for which you wish to return results. Possible Values are: 'VPG', 'VRA', 'Unknown', or 'Site'"
|
||||||
)]
|
)]
|
||||||
|
[ValidateSet("VPG", "VRA", "Unknown", "Site")]
|
||||||
[string]$entityType,
|
[string]$entityType,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
@@ -53,18 +58,21 @@ function Get-ZertoEvent {
|
|||||||
[string]$userName,
|
[string]$userName,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The type of event to return. This filter behaves in the same way as the eventCategory filter. Possible Values are: Possible Values are: '0' or 'All', '1' or 'Events', '2' or 'Alerts'"
|
HelpMessage = "The type of event to return. This filter behaves in the same way as the eventCategory filter. Possible Values are: Possible Values are: 'All', 'Events', 'Alerts'"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
[string]$category,
|
[string]$category,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = " This filter behaves in the same way as the category filter. If both category and eventCategory filters are specified, only the category filter value is used and the eventCategory filter value is ignored. The type of event to return. Possible Values are: '0' or 'All', '1' or 'Events', '2' or 'Alerts'"
|
HelpMessage = " This filter behaves in the same way as the category filter. If both category and eventCategory filters are specified, only the category filter value is used and the eventCategory filter value is ignored. The type of event to return. Possible Values are: 'All', 'Events', 'Alerts'"
|
||||||
)]
|
)]
|
||||||
|
[ValidateSet("All", "Events", "Alerts")]
|
||||||
[string]$eventCategory,
|
[string]$eventCategory,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The internal alert identifier for the Event"
|
HelpMessage = "The internal alert identifier for the Event"
|
||||||
)]
|
)]
|
||||||
|
[Alias("alertId")]
|
||||||
[string]$alertIdentifier,
|
[string]$alertIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "eventId",
|
ParameterSetName = "eventId",
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ function Get-ZertoPeerSite {
|
|||||||
ValueFromPipelineByPropertyName = $true,
|
ValueFromPipelineByPropertyName = $true,
|
||||||
HelpMessage = "The identifier(s) of the peer site(s) for which information is to be returned."
|
HelpMessage = "The identifier(s) of the peer site(s) for which information is to be returned."
|
||||||
)]
|
)]
|
||||||
|
[Alias("siteId")]
|
||||||
[string[]]$siteIdentifier,
|
[string[]]$siteIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ function Get-ZertoProtectedVm {
|
|||||||
ValueFromPipelineByPropertyName = $true,
|
ValueFromPipelineByPropertyName = $true,
|
||||||
HelpMessage = "vmIdentifier(s) for which to return information"
|
HelpMessage = "vmIdentifier(s) for which to return information"
|
||||||
)]
|
)]
|
||||||
|
[Alias("vmId")]
|
||||||
[string[]]$vmIdentifier,
|
[string[]]$vmIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
@@ -37,8 +38,9 @@ function Get-ZertoProtectedVm {
|
|||||||
[string]$organizationName,
|
[string]$organizationName,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The priority specified for the VPG. Possible values are: '0' or 'Low', '1' or 'Medium', '2' or 'High'"
|
HelpMessage = "The priority specified for the VPG. Possible values are: 'Low', 'Medium', or 'High'"
|
||||||
)]
|
)]
|
||||||
|
[ValidateSet("Low", "Medium", "High")]
|
||||||
[string]$priority,
|
[string]$priority,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
@@ -54,11 +56,13 @@ function Get-ZertoProtectedVm {
|
|||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The identifier of the protected site where the VPG virtual machines are protected."
|
HelpMessage = "The identifier of the protected site where the VPG virtual machines are protected."
|
||||||
)]
|
)]
|
||||||
|
[Alias("protectedSiteId")]
|
||||||
[string]$protectedSiteIdentifier,
|
[string]$protectedSiteIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The identifier of the recovery site where the VPG virtual machines are recovered."
|
HelpMessage = "The identifier of the recovery site where the VPG virtual machines are recovered."
|
||||||
)]
|
)]
|
||||||
|
[Alias("recoverySiteId")]
|
||||||
[string]$recoverySiteIdentifier
|
[string]$recoverySiteIdentifier
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ function Get-ZertoRecoveryReport {
|
|||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The type of recovery operations. Possible values are: 'Failover', 'Failover Test', or 'Move'"
|
HelpMessage = "The type of recovery operations. Possible values are: 'Failover', 'Failover Test', or 'Move'"
|
||||||
)]
|
)]
|
||||||
|
[ValidateSet("Failover", "Failover Test", "Move")]
|
||||||
[string]$recoveryType,
|
[string]$recoveryType,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ function Get-ZertoServiceProfile {
|
|||||||
ParameterSetName = "siteIdentifier",
|
ParameterSetName = "siteIdentifier",
|
||||||
HelpMessage = "The identifier of the site for which service profiles should be returned."
|
HelpMessage = "The identifier of the site for which service profiles should be returned."
|
||||||
)]
|
)]
|
||||||
|
[Alias("siteId")]
|
||||||
[string]$siteIdentifier,
|
[string]$siteIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "serviceProfileId",
|
ParameterSetName = "serviceProfileId",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ function Get-ZertoTask {
|
|||||||
ParameterSetName = "taskIdentifier",
|
ParameterSetName = "taskIdentifier",
|
||||||
HelpMessage = "The identifier(s) for which task information is to be returned."
|
HelpMessage = "The identifier(s) for which task information is to be returned."
|
||||||
)]
|
)]
|
||||||
|
[Alias("taskId")]
|
||||||
[string[]]$taskIdentifier,
|
[string[]]$taskIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "types",
|
ParameterSetName = "types",
|
||||||
@@ -39,8 +40,9 @@ function Get-ZertoTask {
|
|||||||
[string]$type,
|
[string]$type,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The status of the task. Possible values are: '1' or 'InProgress', '3' or 'Paused', '4' or 'Failed', '6' or 'Completed', '7' or 'Cancelling'"
|
HelpMessage = "The status of the task. Possible values are: 'InProgress', 'Paused', 'Failed', 'Completed', or 'Cancelling'"
|
||||||
)]
|
)]
|
||||||
|
[ValidateSet("InProgress", "Paused", "Failed", "Completed", "Cancelling")]
|
||||||
[string]$status
|
[string]$status
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ function Get-ZertoVirtualizationSite {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "The identifier of the Zerto Virtual Manager site."
|
HelpMessage = "The identifier of the Zerto Virtual Manager site."
|
||||||
)]
|
)]
|
||||||
|
[Alias("siteId")]
|
||||||
[string]$siteIdentifier,
|
[string]$siteIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "datastoreClusters",
|
ParameterSetName = "datastoreClusters",
|
||||||
@@ -81,6 +82,7 @@ function Get-ZertoVirtualizationSite {
|
|||||||
Mandatory = $false,
|
Mandatory = $false,
|
||||||
HelpMessage = "The identifier of the host at the selected site to return information for only one host."
|
HelpMessage = "The identifier of the host at the selected site to return information for only one host."
|
||||||
)]
|
)]
|
||||||
|
[Alias("hostId")]
|
||||||
[string]$hostIdentifier,
|
[string]$hostIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "folders",
|
ParameterSetName = "folders",
|
||||||
|
|||||||
@@ -11,21 +11,25 @@ function Get-ZertoVolume {
|
|||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The identifier of the VPG."
|
HelpMessage = "The identifier of the VPG."
|
||||||
)]
|
)]
|
||||||
|
[Alias("vpgId")]
|
||||||
[string]$vpgIdentifier,
|
[string]$vpgIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The identifier of the datastore."
|
HelpMessage = "The identifier of the datastore."
|
||||||
)]
|
)]
|
||||||
|
[Alias("datastoreId", "dsId")]
|
||||||
[string]$datastoreIdentifier,
|
[string]$datastoreIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The identifier of the protected virtual machine."
|
HelpMessage = "The identifier of the protected virtual machine."
|
||||||
)]
|
)]
|
||||||
|
[Alias("protectedVmId")]
|
||||||
[string]$protectedVmIdentifier,
|
[string]$protectedVmIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The identifier of the owning virtual machine."
|
HelpMessage = "The identifier of the owning virtual machine."
|
||||||
)]
|
)]
|
||||||
|
[Alias("owningVmId")]
|
||||||
[string]$owningVmIdentifier
|
[string]$owningVmIdentifier
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ function Get-ZertoVpg {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "The identifier(s) of the Virtual Protection Group to return"
|
HelpMessage = "The identifier(s) of the Virtual Protection Group to return"
|
||||||
)]
|
)]
|
||||||
|
[Alias("vpgId", "protectionGroupId", "pgId")]
|
||||||
[string[]]$protectionGroupIdentifier,
|
[string[]]$protectionGroupIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "checkpoints",
|
ParameterSetName = "checkpoints",
|
||||||
@@ -129,8 +130,9 @@ function Get-ZertoVpg {
|
|||||||
[string]$zorgIdentifier,
|
[string]$zorgIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The VPG priority. Possible values are: '0' or 'Low', '1' or 'Medium', '2' or 'High'"
|
HelpMessage = "The VPG priority. Possible values are: 'Low', 'Medium', 'High'"
|
||||||
)]
|
)]
|
||||||
|
[ValidateSet("Low", "Medium", "High")]
|
||||||
[string]$priority,
|
[string]$priority,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ function Get-ZertoVpgSetting {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "The identifier of the VPG settings object for which information is retrieved."
|
HelpMessage = "The identifier of the VPG settings object for which information is retrieved."
|
||||||
)]
|
)]
|
||||||
|
[Alias("vpgSettingsId", "settingsId")]
|
||||||
[string]$vpgSettingsIdentifier,
|
[string]$vpgSettingsIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "backup",
|
ParameterSetName = "backup",
|
||||||
@@ -229,6 +230,7 @@ function Get-ZertoVpgSetting {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "VM Identifier"
|
HelpMessage = "VM Identifier"
|
||||||
)]
|
)]
|
||||||
|
[Alias("vmId")]
|
||||||
[string]$vmIdentifier,
|
[string]$vmIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "nics",
|
ParameterSetName = "nics",
|
||||||
@@ -241,6 +243,7 @@ function Get-ZertoVpgSetting {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "Return NIC information for specified NIC of the specified VM"
|
HelpMessage = "Return NIC information for specified NIC of the specified VM"
|
||||||
)]
|
)]
|
||||||
|
[Alias("nicId")]
|
||||||
[string]$nicIdentifier,
|
[string]$nicIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "volumes",
|
ParameterSetName = "volumes",
|
||||||
@@ -253,6 +256,7 @@ function Get-ZertoVpgSetting {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "Return volume information for the specified volume of the specified VM"
|
HelpMessage = "Return volume information for the specified volume of the specified VM"
|
||||||
)]
|
)]
|
||||||
|
[Alias("volumeId")]
|
||||||
[string]$volumeIdentifier
|
[string]$volumeIdentifier
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ function Get-ZertoVra {
|
|||||||
ParameterSetName = "vraIdentifier",
|
ParameterSetName = "vraIdentifier",
|
||||||
HelpMessage = "Returns information for provided VRA identifier(s)"
|
HelpMessage = "Returns information for provided VRA identifier(s)"
|
||||||
)]
|
)]
|
||||||
|
[Alias("vraId")]
|
||||||
[string[]]$vraIdentifier,
|
[string[]]$vraIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ function Get-ZertoZorg {
|
|||||||
ParameterSetName = "zorgIdentifier",
|
ParameterSetName = "zorgIdentifier",
|
||||||
HelpMessage = "Identifier(s) of the ZORG."
|
HelpMessage = "Identifier(s) of the ZORG."
|
||||||
)]
|
)]
|
||||||
|
[Alias("zorgId")]
|
||||||
[string[]]$zorgIdentifier
|
[string[]]$zorgIdentifier
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ function Get-ZertoZsspSession {
|
|||||||
ParameterSetName = "zsspSessionIdentifier",
|
ParameterSetName = "zsspSessionIdentifier",
|
||||||
HelpMessage = "ZSSP Session Id(s) to get information."
|
HelpMessage = "ZSSP Session Id(s) to get information."
|
||||||
)]
|
)]
|
||||||
|
[Alias("zsspSessionId")]
|
||||||
[string[]]$zsspSessionIdentifier
|
[string[]]$zsspSessionIdentifier
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
|
||||||
function Import-ZertoVpg {
|
function Import-ZertoVpg {
|
||||||
[cmdletbinding()]
|
[cmdletbinding()]
|
||||||
param(
|
param(
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#TODO - Add ability to installed with root password.
|
|
||||||
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
|
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
|
||||||
|
#TODO - Add ability to installed with root password.
|
||||||
function Install-ZertoVra {
|
function Install-ZertoVra {
|
||||||
[cmdletbinding( SupportsShouldProcess = $true )]
|
[cmdletbinding( SupportsShouldProcess = $true )]
|
||||||
param(
|
param(
|
||||||
|
|||||||
@@ -10,13 +10,15 @@ function Invoke-ZertoFailover {
|
|||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Checkpoint Identifier to use as the Point-In-Time to rollback to."
|
HelpMessage = "Checkpoint Identifier to use as the Point-In-Time to rollback to."
|
||||||
)]
|
)]
|
||||||
|
[Alias("checkpointId")]
|
||||||
[string]$checkpointIdentifier,
|
[string]$checkpointIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "0: After the seconds specified in the commitValue setting have elapsed, the failover is rolled back.
|
HelpMessage = "'Rollback': After the seconds specified in the commitValue setting have elapsed, the failover is rolled back.
|
||||||
1: After the seconds specified in the commitValue setting have elapsed, the failover continues, committing the virtual machines in the recovery site.
|
'Commit': After the seconds specified in the commitValue setting have elapsed, the failover continues, committing the virtual machines in the recovery site.
|
||||||
2: The virtual machines in the VPG being failed over remain in the Before Commit state until either they are committed with Commit a failover, or rolled back with Roll back a failover.
|
'None': The virtual machines in the VPG being failed over remain in the Before Commit state until either they are committed with Commit a failover, or rolled back with Roll back a failover.
|
||||||
Default is the Site Settings setting."
|
Default is the Site Settings setting."
|
||||||
)]
|
)]
|
||||||
|
[ValidateSet("Rollback", "Commit", "None")]
|
||||||
[string]$commitPolicy,
|
[string]$commitPolicy,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "The amount of time in seconds the failover waits in a Before Commit state to enable checking that the failover is as required before performing the commitPolicy setting. Default is the Site Setting"
|
HelpMessage = "The amount of time in seconds the failover waits in a Before Commit state to enable checking that the failover is as required before performing the commitPolicy setting. Default is the Site Setting"
|
||||||
@@ -27,6 +29,7 @@ function Invoke-ZertoFailover {
|
|||||||
1: If the protected virtual machines have VMware Tools or Microsoft Integration Services available, the virtual machines are gracefully shut down, otherwise the failover operation fails. This is similar to performing a Move operation to a specified checkpoint.
|
1: If the protected virtual machines have VMware Tools or Microsoft Integration Services available, the virtual machines are gracefully shut down, otherwise the failover operation fails. This is similar to performing a Move operation to a specified checkpoint.
|
||||||
2: The protected virtual machines are forcibly shut down before starting the failover. If the protected virtual machines have VMware Tools or Microsoft Integration Services available, the procedure waits five minutes for the virtual machines to be gracefully shut down before forcibly powering them off. This is similar to performing a Move operation to a specified checkpoint."
|
2: The protected virtual machines are forcibly shut down before starting the failover. If the protected virtual machines have VMware Tools or Microsoft Integration Services available, the procedure waits five minutes for the virtual machines to be gracefully shut down before forcibly powering them off. This is similar to performing a Move operation to a specified checkpoint."
|
||||||
)]
|
)]
|
||||||
|
[ValidateSet(0, 1, 2)]
|
||||||
[int]$shutdownPolicy = 0,
|
[int]$shutdownPolicy = 0,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Time, in seconds, before VMs are forcibly turned off if the Force Shutdown option is seclected after attempting to gracefully shut down the VMs"
|
HelpMessage = "Time, in seconds, before VMs are forcibly turned off if the Force Shutdown option is seclected after attempting to gracefully shut down the VMs"
|
||||||
@@ -38,7 +41,7 @@ function Invoke-ZertoFailover {
|
|||||||
)]
|
)]
|
||||||
[bool]$reverseProtection,
|
[bool]$reverseProtection,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Name(s) of VMs in the "
|
HelpMessage = "Name(s) of VMs in the VPG to failover"
|
||||||
)]
|
)]
|
||||||
[string[]]$vmName
|
[string[]]$vmName
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,8 +8,12 @@ function Invoke-ZertoMove {
|
|||||||
)]
|
)]
|
||||||
[string[]]$vpgName,
|
[string[]]$vpgName,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "The policy to use after the move enters a 'Before Commit' state. If omitted, the site settings default will be applied. Valid values are: '0' or 'Rollback', '1' or 'Commit', '2' or 'None'. Please see Zerto API Documentation for additional information."
|
HelpMessage = "'Rollback': After the seconds specified in the commitValue setting have elapsed, the failover is rolled back.
|
||||||
|
'Commit': After the seconds specified in the commitValue setting have elapsed, the failover continues, committing the virtual machines in the recovery site.
|
||||||
|
'None': The virtual machines in the VPG being failed over remain in the Before Commit state until either they are committed with Commit a failover, or rolled back with Roll back a failover.
|
||||||
|
Default is the Site Settings setting."
|
||||||
)]
|
)]
|
||||||
|
[ValidateSet("Rollback", "Commit", "None")]
|
||||||
[string]$commitPolicy,
|
[string]$commitPolicy,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "The amount of time, in seconds, the Move is in a 'Before Commit' state, before performing the commitPolicy setting. If omitted, the site settings default will be applied."
|
HelpMessage = "The amount of time, in seconds, the Move is in a 'Before Commit' state, before performing the commitPolicy setting. If omitted, the site settings default will be applied."
|
||||||
@@ -76,4 +80,4 @@ function Invoke-ZertoMove {
|
|||||||
end {
|
end {
|
||||||
# Nothing to do.
|
# Nothing to do.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ function New-ZertoVpg {
|
|||||||
HelpMessage = "Name(s) of the VM(s) to be protected.",
|
HelpMessage = "Name(s) of the VM(s) to be protected.",
|
||||||
Mandatory = $true
|
Mandatory = $true
|
||||||
)]
|
)]
|
||||||
[ValidateNotNullOrEmpty()][string[]]$protectedVm,
|
[ValidateNotNullOrEmpty()]
|
||||||
|
[string[]]$protectedVm,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Name of the site where the VM(s) will be recovered",
|
HelpMessage = "Name of the site where the VM(s) will be recovered",
|
||||||
Mandatory = $true
|
Mandatory = $true
|
||||||
@@ -100,11 +101,13 @@ function New-ZertoVpg {
|
|||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "RPO alert"
|
HelpMessage = "RPO alert"
|
||||||
)]
|
)]
|
||||||
[ValidateRange(60, 864200)][Int32]$rpoInSeconds = 300,
|
[ValidateRange(60, 864200)]
|
||||||
|
[Int32]$rpoInSeconds = 300,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Minimum test interval for this VPG. Valid values are 0: Off, 43200: 1 Month, 131040: 3 Months, 262080: 6 Months, 294560: 9 Months, 252600: 12 Months"
|
HelpMessage = "Minimum test interval for this VPG. Valid values are 0: Off, 43200: 1 Month, 131040: 3 Months, 262080: 6 Months, 294560: 9 Months, 252600: 12 Months"
|
||||||
)]
|
)]
|
||||||
[ValidateSet(0, 43200, 131040, 262080, 294560, 252600)][int]$testIntervalInMinutes = 262080,
|
[ValidateSet(0, 43200, 131040, 262080, 294560, 252600)]
|
||||||
|
[int]$testIntervalInMinutes = 262080,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Service profile name to use."
|
HelpMessage = "Service profile name to use."
|
||||||
)]
|
)]
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
|
||||||
function New-ZertoVpgSettingsIdentifier {
|
function New-ZertoVpgSettingsIdentifier {
|
||||||
[cmdletbinding()]
|
[cmdletbinding()]
|
||||||
param(
|
param(
|
||||||
@@ -8,6 +9,7 @@ function New-ZertoVpgSettingsIdentifier {
|
|||||||
ValueFromPipeline = $true,
|
ValueFromPipeline = $true,
|
||||||
ValueFromPipelineByPropertyName = $true
|
ValueFromPipelineByPropertyName = $true
|
||||||
)]
|
)]
|
||||||
|
[Alias("vpgId")]
|
||||||
[string]$vpgIdentifier,
|
[string]$vpgIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Use this switch when creating a vpgSettingsIdentifier for a new VPG",
|
HelpMessage = "Use this switch when creating a vpgSettingsIdentifier for a new VPG",
|
||||||
|
|||||||
@@ -17,15 +17,16 @@ function Remove-ZertoVpg {
|
|||||||
ValueFromPipelineByPropertyName = $true,
|
ValueFromPipelineByPropertyName = $true,
|
||||||
HelpMessage = "vpgIdentifier(s) of the VPG(s) to delete."
|
HelpMessage = "vpgIdentifier(s) of the VPG(s) to delete."
|
||||||
)]
|
)]
|
||||||
|
[Alias("vpgId")]
|
||||||
[string[]]$vpgidentifier,
|
[string[]]$vpgidentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Use this parameter to keep the recovery volumes at the target site, by setting it to True. If the virtual machines in the deleted VPG are reprotected, these volumes can be used as preseeded volumes to speed up the initial synchronization of the new VPG. Default is to remove Recovery Volumes"
|
HelpMessage = "Use this parameter to keep the recovery volumes at the target site, by setting it to True. If the virtual machines in the deleted VPG are reprotected, these volumes can be used as preseeded volumes to speed up the initial synchronization of the new VPG. Default is to remove Recovery Volumes"
|
||||||
)]
|
)]
|
||||||
[switch]$keepRecoveryVolumes = $false,
|
[switch]$keepRecoveryVolumes,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Use this parameter to force delete the VPG, by setting this parameter equal to true."
|
HelpMessage = "Use this parameter to force delete the VPG, by setting this parameter equal to true."
|
||||||
)]
|
)]
|
||||||
[switch]$force = $false
|
[switch]$force
|
||||||
)
|
)
|
||||||
|
|
||||||
begin {
|
begin {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ function Save-ZertoVpgSettings {
|
|||||||
ValueFromPipeline = $true,
|
ValueFromPipeline = $true,
|
||||||
ValueFromPipelineByPropertyName = $true
|
ValueFromPipelineByPropertyName = $true
|
||||||
)]
|
)]
|
||||||
|
[Alias("vpgSettingsId")]
|
||||||
[string]$vpgSettingsIdentifier
|
[string]$vpgSettingsIdentifier
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -17,4 +18,4 @@ function Save-ZertoVpgSettings {
|
|||||||
if ($PSCmdlet.ShouldProcess("Commiting VPG Settings with Settigns identifier $vpgSettingsIdentifier")) {
|
if ($PSCmdlet.ShouldProcess("Commiting VPG Settings with Settigns identifier $vpgSettingsIdentifier")) {
|
||||||
Invoke-ZertoRestRequest -uri $baseUri -method "POST"
|
Invoke-ZertoRestRequest -uri $baseUri -method "POST"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ function Set-ZertoAlert {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "Alert identifier(s) to be dismissed or undismissed."
|
HelpMessage = "Alert identifier(s) to be dismissed or undismissed."
|
||||||
)]
|
)]
|
||||||
|
[Alias("alertIdentifier")]
|
||||||
[string[]]$alertId,
|
[string[]]$alertId,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "dismiss",
|
ParameterSetName = "dismiss",
|
||||||
@@ -40,4 +41,4 @@ function Set-ZertoAlert {
|
|||||||
end {
|
end {
|
||||||
# Nothing to do.
|
# Nothing to do.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ function Start-ZertoCloneVpg {
|
|||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "The identifier of the checkpoint to use for cloning. If unspecified, the latest checkpoint will be used."
|
HelpMessage = "The identifier of the checkpoint to use for cloning. If unspecified, the latest checkpoint will be used."
|
||||||
)]
|
)]
|
||||||
|
[Alias("checkpointId")]
|
||||||
[string]$checkpointIdentifier,
|
[string]$checkpointIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "The datastore name where the clone is to be created. If unspecified, will auto select the datastore with the most free space."
|
HelpMessage = "The datastore name where the clone is to be created. If unspecified, will auto select the datastore with the most free space."
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ function Start-ZertoFailoverTest {
|
|||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "The identifier of the checkpoint to use for testing. If unspecified, the latest checkpoint will be used."
|
HelpMessage = "The identifier of the checkpoint to use for testing. If unspecified, the latest checkpoint will be used."
|
||||||
)]
|
)]
|
||||||
|
[Alias("checkpointId")]
|
||||||
[string]$checkpointIdentifier,
|
[string]$checkpointIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "The name(s) of the VMs within the selected VPG you wish to test. If unspecified, all VMs in the VPG will be tested."
|
HelpMessage = "The name(s) of the VMs within the selected VPG you wish to test. If unspecified, all VMs in the VPG will be tested."
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -68,7 +68,7 @@ Default value is 9669.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: (All)
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: port
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 1
|
||||||
@@ -83,7 +83,7 @@ IP address or FQDN of your Zerto Management Server
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: (All)
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: server, zvm
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 0
|
Position: 0
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ Identifier of the VRA to be updated.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: (All)
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: vraId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ Returns alerts for the specified helpIdentifier
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: helpId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -239,7 +239,7 @@ Returns alerts for the specified siteIdentifier
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: siteId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -270,7 +270,7 @@ Returns alerts for the specified vraIdentifier
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: vpgId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -285,7 +285,7 @@ Returns alerts for the specified zorgIdentifier
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: zorgId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ datastoreIdentifier or array of datastoreIdentifiers to be queried
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: datastoreIdentifier
|
Parameter Sets: datastoreIdentifier
|
||||||
Aliases:
|
Aliases: datastoreId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
+8
-14
@@ -81,7 +81,7 @@ The internal alert identifier for the Event
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: alertId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -106,9 +106,7 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### -category
|
### -category
|
||||||
The type of event to return.
|
The type of event to return. This filter behaves in the same way as the eventCategory filter. Possible Values are: Possible Values are: 'All', 'Events', 'Alerts'
|
||||||
This filter behaves in the same way as the eventCategory filter.
|
|
||||||
Possible Values are: Possible Values are: '0' or 'All', '1' or 'Events', '2' or 'Alerts'
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
@@ -155,8 +153,7 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### -entityType
|
### -entityType
|
||||||
The type of entity for which you wish to return results.
|
The type of entity for which you wish to return results. Possible Values are: 'VPG', 'VRA', 'Unknown', or 'Site'
|
||||||
Possible Values are: '0' or 'VPG', '1' or 'VRA', '2' or 'Unknown', or '3' or 'Site'
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
@@ -171,10 +168,7 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### -eventCategory
|
### -eventCategory
|
||||||
This filter behaves in the same way as the category filter.
|
This filter behaves in the same way as the category filter. If both category and eventCategory filters are specified, only the category filter value is used and the eventCategory filter value is ignored. The type of event to return. Possible Values are: 'All', 'Events', 'Alerts'
|
||||||
If both category and eventCategory filters are specified, only the category filter value is used and the eventCategory filter value is ignored.
|
|
||||||
The type of event to return.
|
|
||||||
Possible Values are: '0' or 'All', '1' or 'Events', '2' or 'Alerts'
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
@@ -226,7 +220,7 @@ The internal site identifier for which you want to return events.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: siteId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -304,7 +298,7 @@ The name of the VPG for which you want to return events.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: vpgName
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -319,7 +313,7 @@ The identifier of the VPG for which you want to return events.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: vpgId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -334,7 +328,7 @@ The identifier of the ZORG, Zerto organization, defined in the Zerto Cloud Manag
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: zorgId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ The identifier(s) of the peer site(s) for which information is to be returned.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: siteIdentifier
|
Parameter Sets: siteIdentifier
|
||||||
Aliases:
|
Aliases: siteId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -82,8 +82,7 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### -priority
|
### -priority
|
||||||
The priority specified for the VPG.
|
The priority specified for the VPG. Possible values are: 'Low', 'Medium', or 'High'
|
||||||
Possible values are: '0' or 'Low', '1' or 'Medium', '2' or 'High'
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
@@ -103,7 +102,7 @@ The identifier of the protected site where the VPG virtual machines are protecte
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: protectedSiteId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -134,7 +133,7 @@ The identifier of the recovery site where the VPG virtual machines are recovered
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: recoverySiteId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -198,7 +197,7 @@ vmIdentifier(s) for which to return information
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: vmIdentifier
|
Parameter Sets: vmIdentifier
|
||||||
Aliases:
|
Aliases: vmId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ The identifier of the site for which service profiles should be returned.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: siteIdentifier
|
Parameter Sets: siteIdentifier
|
||||||
Aliases:
|
Aliases: siteId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -123,8 +123,7 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### -status
|
### -status
|
||||||
The status of the task.
|
The status of the task. Possible values are: 'InProgress', 'Paused', 'Failed', 'Completed', or 'Cancelling'
|
||||||
Possible values are: '1' or 'InProgress', '3' or 'Paused', '4' or 'Failed', '6' or 'Completed', '7' or 'Cancelling'
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
@@ -144,7 +143,7 @@ The identifier(s) for which task information is to be returned.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: taskIdentifier
|
Parameter Sets: taskIdentifier
|
||||||
Aliases:
|
Aliases: taskId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ The identifier of the host at the selected site to return information for only o
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: devices, hosts
|
Parameter Sets: devices, hosts
|
||||||
Aliases:
|
Aliases: hostId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -223,7 +223,7 @@ The identifier of the Zerto Virtual Manager site.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: folders, devices, vms, resourcePools, networks, hosts, hostClusters, datastores, datastoreClusters, siteIdentifier
|
Parameter Sets: folders, devices, vms, resourcePools, networks, hosts, hostClusters, datastores, datastoreClusters, siteIdentifier
|
||||||
Aliases:
|
Aliases: siteId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ The identifier of the datastore.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: datastoreId, dsId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -72,7 +72,7 @@ The identifier of the owning virtual machine.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: owningVmId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -87,7 +87,7 @@ The identifier of the protected virtual machine.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: protectedVmId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -118,7 +118,7 @@ The identifier of the VPG.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases:
|
Aliases: vpgId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -265,8 +265,7 @@ Accept wildcard characters: False
|
|||||||
|
|
||||||
### -priority
|
### -priority
|
||||||
|
|
||||||
The VPG priority.
|
The VPG priority. Possible values are: 'Low', 'Medium', 'High'
|
||||||
Possible values are: '0' or 'Low', '1' or 'Medium', '2' or 'High'
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
@@ -321,7 +320,7 @@ The identifier(s) of the Virtual Protection Group to return
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: stats, checkpoints, protectionGroupIdentifier
|
Parameter Sets: stats, checkpoints, protectionGroupIdentifier
|
||||||
Aliases:
|
Aliases: vpgId, protectionGroupId, pgId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ Return NIC information for specified NIC of the specified VM
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: nicIdentifier
|
Parameter Sets: nicIdentifier
|
||||||
Aliases:
|
Aliases: nicId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -354,7 +354,7 @@ VM Identifier
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: volumeIdentifier, volumes, nicIdentifier, nics, vmIdentifier
|
Parameter Sets: volumeIdentifier, volumes, nicIdentifier, nics, vmIdentifier
|
||||||
Aliases:
|
Aliases: vmId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -384,7 +384,7 @@ Return volume information for the specified volume of the specified VM
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: volumeIdentifier
|
Parameter Sets: volumeIdentifier
|
||||||
Aliases:
|
Aliases: volumeId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -414,7 +414,7 @@ The identifier of the VPG settings object for which information is retrieved.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: volumeIdentifier, volumes, nicIdentifier, nics, vmIdentifier, vms, scripting, recovery, priority, networks, journal, bootGroup
|
Parameter Sets: volumeIdentifier, volumes, nicIdentifier, nics, vmIdentifier, vms, scripting, recovery, priority, networks, journal, bootGroup
|
||||||
Aliases:
|
Aliases: vpgSettingsId, settingsId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -426,7 +426,7 @@ Accept wildcard characters: False
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: basic, schedulerPeriod, retentionPeriod, dayOfWeek, backup, vpgSettingsIdentifier
|
Parameter Sets: basic, schedulerPeriod, retentionPeriod, dayOfWeek, backup, vpgSettingsIdentifier
|
||||||
Aliases:
|
Aliases: vpgSettingsId, settingsId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ Returns information for provided VRA identifier(s)
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: vraIdentifier
|
Parameter Sets: vraIdentifier
|
||||||
Aliases:
|
Aliases: vraId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ Identifier(s) of the ZORG.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: zorgIdentifier
|
Parameter Sets: zorgIdentifier
|
||||||
Aliases:
|
Aliases: zorgId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ ZSSP Session Id(s) to get information.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: zsspSessionIdentifier
|
Parameter Sets: zsspSessionIdentifier
|
||||||
Aliases:
|
Aliases: zsspSessionId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ Checkpoint Identifier to use as the Point-In-Time to rollback to.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: (All)
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: checkpointId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 1
|
||||||
@@ -48,11 +48,11 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### -commitPolicy
|
### -commitPolicy
|
||||||
0: After the seconds specified in the commitValue setting have elapsed, the failover is rolled back.
|
'Rollback': After the seconds specified in the commitValue setting have elapsed, the failover is rolled back.
|
||||||
|
|
||||||
1: After the seconds specified in the commitValue setting have elapsed, the failover continues, committing the virtual machines in the recovery site.
|
'Commit': After the seconds specified in the commitValue setting have elapsed, the failover continues, committing the virtual machines in the recovery site.
|
||||||
|
|
||||||
2: The virtual machines in the VPG being failed over remain in the Before Commit state until either they are committed with Commit a failover, or rolled back with Roll back a failover.
|
'None': The virtual machines in the VPG being failed over remain in the Before Commit state until either they are committed with Commit a failover, or rolled back with Roll back a failover.
|
||||||
|
|
||||||
Default is the Site Settings setting.
|
Default is the Site Settings setting.
|
||||||
|
|
||||||
@@ -143,7 +143,7 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### -vmName
|
### -vmName
|
||||||
Name(s) of VMs in the
|
Name(s) of VMs in the VPG to failover
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
|
|||||||
@@ -33,10 +33,13 @@ Starts a move operation of VPG "MyVpg"
|
|||||||
## PARAMETERS
|
## PARAMETERS
|
||||||
|
|
||||||
### -commitPolicy
|
### -commitPolicy
|
||||||
The policy to use after the move enters a 'Before Commit' state.
|
'Rollback': After the seconds specified in the commitValue setting have elapsed, the failover is rolled back.
|
||||||
If omitted, the site settings default will be applied.
|
|
||||||
Valid values are: '0' or 'Rollback', '1' or 'Commit', '2' or 'None'.
|
'Commit': After the seconds specified in the commitValue setting have elapsed, the failover continues, committing the virtual machines in the recovery site.
|
||||||
Please see Zerto API Documentation for additional information.
|
|
||||||
|
'None': The virtual machines in the VPG being failed over remain in the Before Commit state until either they are committed with Commit a failover, or rolled back with Roll back a failover.
|
||||||
|
|
||||||
|
Default is the Site Settings setting.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ This would be used for creating a new VPG from scratch.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: existingVpg
|
Parameter Sets: existingVpg
|
||||||
Aliases:
|
Aliases: vpgId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ vpgIdentifier(s) of the VPG(s) to delete.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: vpgIdentifier
|
Parameter Sets: vpgIdentifier
|
||||||
Aliases:
|
Aliases: vpgId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ VpgSettings Identifier to save
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: (All)
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: vpgSettingsId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 0
|
Position: 0
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ Alert identifier(s) to be dismissed or undismissed.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: (All)
|
Parameter Sets: (All)
|
||||||
Aliases: identifier
|
Aliases: alertIdentifier, identifier
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ If unspecified, the latest checkpoint will be used.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: (All)
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: checkpointId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 1
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ If unspecified, the latest checkpoint will be used.
|
|||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: (All)
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: checkpointId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user