exports/ProxyCmdletDefinitions.ps1
# ---------------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@3.0.519) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis Adds SSL certificate check .Description Adds SSL certificate check .Example PS C:\>Add-ZvmSslCheck .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/add-zvmsslcheck #> function Add-ZvmSslCheck { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Add', PositionalBinding=$false)] param() begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Add = 'Zerto.ZvmLinux.Commandlets\Add-ZvmSslCheck_Add'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get new auth token .Description Get new auth token .Example PS C:\>Connect-Zvm –Host MyZVMHost.company.com .Example PS C:\>Connect-Zvm –Host MyZVMHost.company.com Connect-Zvm_Connect: No connection could be made because the target machine actively refused it. (127.0.0.1:9669) .Example PS C:\>Connect-Zvm –Host MyZVMHost.company.com Connect-Zvm_Connect: Failed logging in to 192.168.128.10 with username root. Error was 'Exception running : StandaloneVcLogin' .Example PS C:\>Connect-Zvm –Host MyZVMHost.company.com Connect-Zvm_Connect: Failed logging in to 192.168.128.10 with username root. Error was 'Cannot complete login due to an incorrect user name or password.' .Outputs Zerto.ZvmLinux.Models.IErrorResult .Outputs Zerto.ZvmLinux.Models.ISuccessTokenResult .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/connect-zvm #> function Connect-Zvm { [OutputType([Zerto.ZvmLinux.Models.ISuccessTokenResult], [Zerto.ZvmLinux.Models.IErrorResult])] [CmdletBinding(DefaultParameterSetName='Connect', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Runtime')] [System.String] # ZVM host/IP ${HostName}, [Parameter(Position=1, Mandatory)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # User credentials ${Credential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter()] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Int32] # ZVM Port ${Port} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Connect = 'Zerto.ZvmLinux.Commandlets\Connect-Zvm_Connect'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Set the login banner settings of the current site.\nThis API will be deprecated starting Zerto 10.0_U6. Use the following new API for Site Setting configuration: /management/api/settings/v1/settings (Auth) .Description Set the login banner settings of the current site.\nThis API will be deprecated starting Zerto 10.0_U6. Use the following new API for Site Setting configuration: /management/api/settings/v1/settings (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.ILoginBannerSettingsApi .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <ILoginBannerSettingsApi>: . [IsLoginBannerEnabled <Boolean?>]: [LoginBanner <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/edit-zvmlocalsiteloginbanner #> function Edit-ZvmLocalSiteLoginBanner { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='EditExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Edit', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.ILoginBannerSettingsApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsLoginBannerEnabled}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${LoginBanner}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Edit = 'Zerto.ZvmLinux.Commandlets\Edit-ZvmLocalSiteLoginBanner_Edit'; EditExpanded = 'Zerto.ZvmLinux.Commandlets\Edit-ZvmLocalSiteLoginBanner_EditExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Edit existing repository (Auth) .Description Edit existing repository (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IRepositoriesSettingsApi .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. AZURE <IAzureBackupTargetStorageApi>: . [AzureAppId <String>]: [AzureAppKey <String>]: [AzureCloud <String>]: [AzureSa <String>]: [AzureTenantId <String>]: [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsArchiveTiering <Boolean?>]: [IsCoolTiering <Boolean?>]: [IsImmutable <Boolean?>]: [Path <String>]: [TieringToArchiveInDays <Int32?>]: [TieringToCoolInDays <Int32?>]: BODY <IRepositoriesSettingsApi>: . [Azure <IAzureBackupTargetStorageApi>]: [AzureAppId <String>]: [AzureAppKey <String>]: [AzureCloud <String>]: [AzureSa <String>]: [AzureTenantId <String>]: [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsArchiveTiering <Boolean?>]: [IsCoolTiering <Boolean?>]: [IsImmutable <Boolean?>]: [Path <String>]: [TieringToArchiveInDays <Int32?>]: [TieringToCoolInDays <Int32?>]: [Catalyst <ICatalystBackupTargetStorageApi>]: [CatalystServer <String>]: [CatalystStoreName <String>]: [Password <String>]: [Path <String>]: [Username <String>]: [ConnectionType <String>]: [DefaultRepository <Boolean?>]: [FreeCapacityGb <Int64?>]: [IsIndexRepository <Boolean?>]: [Nfs <INfsBackupTargetStorageObjectApi>]: [Path <String>]: [RepositoryIdentifier <String>]: [RepositoryName <String>]: [RepositoryState <IRepositoryStateApi>]: [AllocatedSpaceInGb <Int64?>]: [AvailableSpaceInGb <Int64?>]: [UsedSpaceInGb <Int64?>]: [S3 <IAwss3BackupTargetStorageApi>]: [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsGlacierTiering <Boolean?>]: [IsImmutable <Boolean?>]: [IsStandardIaTiering <Boolean?>]: [Path <String>]: [S3AccessKey <String>]: [S3BucketName <String>]: [S3EndpointUrl <String>]: [S3Region <String>]: [S3SecretKey <String>]: [S3StorageClass <String>]: [TieringToGlacierInDays <Int32?>]: [TieringToStandardIaInDays <Int32?>]: [S3Compatible <IS3CompatibleStorageObjectApi>]: [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsImmutable <Boolean?>]: [Path <String>]: [S3AccessKey <String>]: [S3BucketName <String>]: [S3EndpointUrl <String>]: [S3Region <String>]: [S3SecretKey <String>]: [Smb <ISmbBackupTargetStorageApi>]: [Password <String>]: [Path <String>]: [UserName <String>]: [StorageType <String>]: [TotalCapacityGb <Int64?>]: [UsedCapacityGb <Int64?>]: CATALYST <ICatalystBackupTargetStorageApi>: . [CatalystServer <String>]: [CatalystStoreName <String>]: [Password <String>]: [Path <String>]: [Username <String>]: NFS <INfsBackupTargetStorageObjectApi>: . [Path <String>]: REPOSITORYSTATE <IRepositoryStateApi>: . [AllocatedSpaceInGb <Int64?>]: [AvailableSpaceInGb <Int64?>]: [UsedSpaceInGb <Int64?>]: S3 <IAwss3BackupTargetStorageApi>: . [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsGlacierTiering <Boolean?>]: [IsImmutable <Boolean?>]: [IsStandardIaTiering <Boolean?>]: [Path <String>]: [S3AccessKey <String>]: [S3BucketName <String>]: [S3EndpointUrl <String>]: [S3Region <String>]: [S3SecretKey <String>]: [S3StorageClass <String>]: [TieringToGlacierInDays <Int32?>]: [TieringToStandardIaInDays <Int32?>]: S3COMPATIBLE <IS3CompatibleStorageObjectApi>: . [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsImmutable <Boolean?>]: [Path <String>]: [S3AccessKey <String>]: [S3BucketName <String>]: [S3EndpointUrl <String>]: [S3Region <String>]: [S3SecretKey <String>]: SMB <ISmbBackupTargetStorageApi>: . [Password <String>]: [Path <String>]: [UserName <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/edit-zvmrepository #> function Edit-ZvmRepository { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='EditExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # . ${RepositoryId}, [Parameter(ParameterSetName='Edit', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IRepositoriesSettingsApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IAzureBackupTargetStorageApi] # . # To construct, see NOTES section for AZURE properties and create a hash table. ${Azure}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.ICatalystBackupTargetStorageApi] # . # To construct, see NOTES section for CATALYST properties and create a hash table. ${Catalyst}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${ConnectionType}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${DefaultRepository}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Int64] # . ${FreeCapacityGb}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsIndexRepository}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.INfsBackupTargetStorageObjectApi] # . # To construct, see NOTES section for NFS properties and create a hash table. ${Nfs}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${RepositoryIdentifier1}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${RepositoryName}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IRepositoryStateApi] # . # To construct, see NOTES section for REPOSITORYSTATE properties and create a hash table. ${RepositoryState}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IAwss3BackupTargetStorageApi] # . # To construct, see NOTES section for S3 properties and create a hash table. ${S3}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IS3CompatibleStorageObjectApi] # . # To construct, see NOTES section for S3COMPATIBLE properties and create a hash table. ${S3Compatible}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.ISmbBackupTargetStorageApi] # . # To construct, see NOTES section for SMB properties and create a hash table. ${Smb}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${StorageType}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Int64] # . ${TotalCapacityGb}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Int64] # . ${UsedCapacityGb}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Edit = 'Zerto.ZvmLinux.Commandlets\Edit-ZvmRepository_Edit'; EditExpanded = 'Zerto.ZvmLinux.Commandlets\Edit-ZvmRepository_EditExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Update VPG Scratch settings (Auth) .Description Update VPG Scratch settings (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IVpgSettingsScratchApi .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IVpgSettingsScratchApi>: . [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [Limitation <IVpgSettingsScratchLimitationApi>]: [HardLimitInMb <Int32?>]: [HardLimitInPercent <Int32?>]: [WarningThresholdInMb <Int32?>]: [WarningThresholdInPercent <Int32?>]: LIMITATION <IVpgSettingsScratchLimitationApi>: . [HardLimitInMb <Int32?>]: [HardLimitInPercent <Int32?>]: [WarningThresholdInMb <Int32?>]: [WarningThresholdInPercent <Int32?>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/edit-zvmvpgsettingscratch #> function Edit-ZvmVpgSettingScratch { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='EditExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Vpg Settings Identfifier. # Related endpoint: `/v1/vpgSettings` ${VpgSettingsId}, [Parameter(ParameterSetName='Edit', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVpgSettingsScratchApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${DatastoreClusterId}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${DatastoreId}, [Parameter(ParameterSetName='EditExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVpgSettingsScratchLimitationApi] # . # To construct, see NOTES section for LIMITATION properties and create a hash table. ${Limitation}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Edit = 'Zerto.ZvmLinux.Commandlets\Edit-ZvmVpgSettingScratch_Edit'; EditExpanded = 'Zerto.ZvmLinux.Commandlets\Edit-ZvmVpgSettingScratch_EditExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Export all current VPGs settings. (Auth) .Description Export all current VPGs settings. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IVpgSettingsNamesApi .Outputs Zerto.ZvmLinux.Models.IVpgSettingsExportApi .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IVpgSettingsNamesApi>: . [VpgNames <String[]>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/export-zvmsetting #> function Export-ZvmSetting { [OutputType([Zerto.ZvmLinux.Models.IVpgSettingsExportApi])] [CmdletBinding(DefaultParameterSetName='ExportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Export', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVpgSettingsNamesApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='ExportExpanded')] [AllowEmptyCollection()] [Zerto.ZvmLinux.Category('Body')] [System.String[]] # . ${VpgNames}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Export = 'Zerto.ZvmLinux.Commandlets\Export-ZvmSetting_Export'; ExportExpanded = 'Zerto.ZvmLinux.Commandlets\Export-ZvmSetting_ExportExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of all available alert help identifiers. (Auth) .Description Get a list of all available alert help identifiers. (Auth) .Example PS C:\>Get-ZvmAlertHelpId AWS0001 ZCA0001 ZCA0002 ZCA0003 BCK0001 BCK0002 BCK0005 BCK0006 BCK0007 LTR0001 .Outputs System.String .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmalerthelpid #> function Get-ZvmAlertHelpId { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmAlertHelpId_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of all available alert levels. (Auth) .Description Get a list of all available alert levels. (Auth) .Example PS C:\>Get-ZvmAlertLevel Warning Error .Outputs System.String .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmalertlevel #> function Get-ZvmAlertLevel { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmAlertLevel_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of latest Zerto alerts. You can filter the results with additional parameters. (Auth) .Description Get a list of latest Zerto alerts. You can filter the results with additional parameters. (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID .Example PS C:\>Get-ZvmAlert HelpIdentifier Level Entity IsDismissed TurnedOn Description -------------- ----- ------ ----------- -------- ----------- VRA0001 Warning Vra False 12/15/2020 9:55:17 AM Host 10.171.65.35 has no VRA installed, and is part of cluster Cluster that contains hosts with installed VRAs. .Example PS C:\>Get-ZvmAlert -Entity Vpg HelpIdentifier Level Entity IsDismissed TurnedOn Description -------------- ----- ------ ----------- -------- ----------- VPG0003 Warning Vpg False 12/7/2020 6:23:54 PM VPG MyVPG01 journal history is less than 75% of the configured 1 day. This has occurred because of a synchronization between the protected and recovery sites and will … VPG0003 Warning Vpg False 12/7/2020 6:23:54 PM VPG MyVPG02 journal history is less than 75% of the configured 1 day. This has occurred because of a synchronization between the protected and recovery sites and will … VPG0003 Warning Vpg False 12/7/2020 6:23:54 PM VPG MyVPG03 journal history is less than 75% of the configured 1 day. This has occurred because of a synchronization between the protected and recovery sites and will automa… .Example PS C:\>Get-ZvmAlert | fl Link.Identifier : d17d4837-4242-4123-bef1-4f2bbbcd46b9 AffectedZorgs.Identifier : AffectedVpgs.Identifier : Site.Identifier : af25ce75-4bc7-43f1-beaf-ed312bf774d3 HelpIdentifier : VRA0028 Level : Warning Entity : Vra IsDismissed : False TurnedOn : 1/8/2021 09:37:03 Description : VRA on host 192.168.128.1 is powered off. Link.Identifier : 01c716e5-54eb-454b-9202-8d9b7225e9ba AffectedZorgs.Identifier : AffectedVpgs.Identifier : Site.Identifier : af25ce75-4bc7-43f1-beaf-ed312bf774d3 HelpIdentifier : VRA0028 Level : Warning Entity : Vra IsDismissed : False TurnedOn : 1/8/2021 09:37:03 Description : VRA on host 192.168.128.2 is powered off. .Example PS C:\>Get-ZvmAlert -AlertId d17d4837-4242-4123-bef1-4f2bbbcd46b9 HelpIdentifier Level Entity IsDismissed TurnedOn Description -------------- ----- ------ ----------- -------- ----------- VRA0028 Warning Vra False 1/8/2021 09:37:03 VRA on host 192.168.128.1 is powered off. .Outputs Zerto.ZvmLinux.Models.IAlertApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmalert #> function Get-ZvmAlert { [OutputType([Zerto.ZvmLinux.Models.IAlertApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get1', Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Alert identifier. # Related endpoint: `/v1/alerts` ${AlertId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The filter interval end date-time. # Related endpoint: `v1/serverDateTime` for date-time format details ${EndDate}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The alert entity type. # Related endpoint: `/v1/alerts/entity` ${Entity}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The alert help identifier associated with the alert. # Related endpoint: `/v1/alerts/helpidentifiers` ${HelpId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.Management.Automation.SwitchParameter] # True if alert was dismissed ${IsDismissed}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The alert level. # Related endpoint: `/v1/alerts/levels` ${Level}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The internal ZVM site identifier. # Related endpoints: `v1/localsite`, `v1/peersites` ${SiteId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The filter interval start date-time. # Related endpoint: `v1/serverDateTime` for date-time format details ${StartDate}, [Parameter(ParameterSetName='Get', Position=0)] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the VPG. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the ZORG. # Related endpoint: `v1/zorgs` ${ZorgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmAlert_Get'; Get1 = 'Zerto.ZvmLinux.Commandlets\Get-ZvmAlert_Get1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of all available event types (Auth) .Description Get a list of all available event types (Auth) .Example PS C:\>Get-ZvmEventType CreateProtectionGroup RemoveProtectionGroup FailOver FailOverTest StopFailOverTest Move ProtectVM UnprotectVM InstallVra … .Outputs System.String .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmeventtype #> function Get-ZvmEventType { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmEventType_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of latest Zerto events. You can filter the results with additional parameters. (Auth) .Description Get a list of latest Zerto events. You can filter the results with additional parameters. (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID .Example PS C:\>Get-ZvmEvent HelpLink EventType OccurredOn Description -------- -------------- ------------------- ------------------ EV0070 Login 12/14/2020 1:41:39 PM ZVM Login. Success. .Example PS C:\>Get-ZvmEvent | fl EventIdentifier : e6ffc5bb-f413-445b-a210-eda3e4787600 OccurredOn : 1/8/2021 10:09:20 Description : ZVM Login. Success. HelpLink : EV0070 EventType : Login EventCategory : Events EntityType : Site ZorgIdentifier : ZorgName : SiteIdentifier : af25ce75-4bc7-43f1-beaf-ed312bf774d3 SiteName : generic-zcloud2_vcd10_local at Zerto UserName : \System Vpgs.VpgIdentifier : Vpgs.VpgName : EventCompletedSuccessfully : True RelatedEntities.Alerts : RelatedEntities.FlrSessions : RelatedEntities.Hosts : RelatedEntities.Sites : af25ce75-4bc7-43f1-beaf-ed312bf774d3 RelatedEntities.Vpgs : RelatedEntities.Zorgs : .Example PS C:\>Get-ZvmEvent -EventId 5eebedea-660b-4c45-9f54-26773981b37f HelpLink EventType OccurredOn Description -------- -------------- ------------------- ------------------ EV0070 Login 12/14/2020 1:41:39 PM ZVM Login. Success. .Outputs Zerto.ZvmLinux.Models.IEventApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmevent #> function Get-ZvmEvent { [OutputType([Zerto.ZvmLinux.Models.IEventApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get1', Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Event identifier. # Related endpoint: `/v1/events` ${EventId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Alert identifier. # Related endpoint: `/v1/alerts` ${AlertId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The event category to return. # Related endpoint: `/v1/events/categories` ${Category}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The filter interval end date-time. # Related endpoint: `v1/serverDateTime` for date-time format details ${EndDate}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The entity type to return. # Related endpoint: `/v1/events/entities` ${EntityType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # [Obsolete] The event category to return. # Related endpoint: `/v1/events/categories` ${EventCategory}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The event type. # Related endpoint: `/v1/events/types` ${EventType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The internal ZVM site identifier. # Related endpoints: `v1/localsite`, `v1/peersites` ${SiteId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The name of the site ${SiteName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The filter interval start date-time. # Related endpoint: `v1/serverDateTime` for date-time format details ${StartDate}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The username for which the event occurred. # Tasks run by ZVM have the username `System` ${UserName}, [Parameter(ParameterSetName='Get', Position=0)] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the VPG. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # [Obsolete] The identifier of the VPG. # Related endpoint: `v1/vpgs` ${VpgName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the ZORG. # Related endpoint: `v1/zorgs` ${ZorgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmEvent_Get'; Get1 = 'Zerto.ZvmLinux.Commandlets\Get-ZvmEvent_Get1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get all available exported settings files. (Auth) .Description Get all available exported settings files. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IVpgSettingsExportedDataInfoApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmexportedsettinginfo #> function Get-ZvmExportedSettingInfo { [OutputType([Zerto.ZvmLinux.Models.IVpgSettingsExportedDataInfoApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmExportedSettingInfo_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get list of VPGs from exported settings file. (Auth) .Description Get list of VPGs from exported settings file. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IVpgSettingsExportVpgInfoApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmexportedsettingvpg #> function Get-ZvmExportedSettingVpg { [OutputType([Zerto.ZvmLinux.Models.IVpgSettingsExportVpgInfoApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.DateTime] # . ${TimeStamp}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmExportedSettingVpg_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Read exported settings from a file of given timestamp. (Auth) .Description Read exported settings from a file of given timestamp. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IVpgSettingsNamesApi .Outputs Zerto.ZvmLinux.Models.IVpgSettingsDownloadExportApi .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IVpgSettingsNamesApi>: . [VpgNames <String[]>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmexportedsetting #> function Get-ZvmExportedSetting { [OutputType([Zerto.ZvmLinux.Models.IVpgSettingsDownloadExportApi])] [CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.DateTime] # The timestamp of the exported settings file ${TimeStamp}, [Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVpgSettingsNamesApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='GetExpanded')] [AllowEmptyCollection()] [Zerto.ZvmLinux.Category('Body')] [System.String[]] # . ${VpgNames}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmExportedSetting_Get'; GetExpanded = 'Zerto.ZvmLinux.Commandlets\Get-ZvmExportedSetting_GetExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get license details of the ZVM (Auth) .Description Get license details of the ZVM (Auth) .Example PS C:\>Get-ZvmLicense ExpiryTime LicenseType SiteName MaxVms TotalVmsCount LicenseKey ---------- ----------- -------- ------ ------------- ---------- 2020-12-31 CloudO2M site3_QA_10.171.64.228 1000 6 8LTPJCDEWRYYTN5ASF2HXWMP5P2EU8MFCJ9V .Outputs Zerto.ZvmLinux.Models.ILicenseApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmlicense #> function Get-ZvmLicense { [OutputType([Zerto.ZvmLinux.Models.ILicenseApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmLicense_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get the login banner settings of the current site. .Description Get the login banner settings of the current site. .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.ILoginBannerSettingsApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmlocalsiteloginbanner #> function Get-ZvmLocalSiteLoginBanner { [OutputType([Zerto.ZvmLinux.Models.ILoginBannerSettingsApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmLocalSiteLoginBanner_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get information about the local site (Auth) .Description Get information about the local site (Auth) .Example PS C:\>Get-ZvmLocalSite SiteName IPAddress SiteType Version ZVmApiVersion -------------- ----------------- -------------- ----------- --------------------- vSphere-Site01 192.168.1.110 VCenter 8.5.0 1.39.0 .Outputs Zerto.ZvmLinux.Models.ILocalSiteApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmlocalsite #> function Get-ZvmLocalSite { [OutputType([Zerto.ZvmLinux.Models.ILocalSiteApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmLocalSite_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of full Retention sets (Auth) .Description Get a list of full Retention sets (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IRetentionSetInfoApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmltrcatalogfullretentionset #> function Get-ZvmLtrCatalogFullRetentionSet { [OutputType([Zerto.ZvmLinux.Models.IRetentionSetInfoApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the repository where the Retention Set is stored. # Relatd endpoint: `/v1/virtualizationsites/{siteIdentifier}/repositories` ${RepositoryId}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the VPG. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the ZORG. # Related endpoint: `v1/zorgs` ${ZorgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmLtrCatalogFullRetentionSet_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of incremental Retention sets (Auth) .Description Get a list of incremental Retention sets (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IRetentionSetInfoApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmltrcatalogincremental #> function Get-ZvmLtrCatalogIncremental { [OutputType([Zerto.ZvmLinux.Models.IRetentionSetInfoApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The unique identifier of the Retention Set. # Related endpoint: `v1/ltr/catalog/fullretentionsets` ${RetentionSetId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmLtrCatalogIncremental_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get the original settings for a VM in a Retention set (Auth) .Description Get the original settings for a VM in a Retention set (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IRetentionSetVMSettingsApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmltrcatalogvmoriginalsetting #> function Get-ZvmLtrCatalogVmOriginalSetting { [OutputType([Zerto.ZvmLinux.Models.IRetentionSetVMSettingsApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The unique identifier of the Retention Set. # Related endpoint: `v1/ltr/catalog/fullretentionsets` ${RetentionSetId}, [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The idenfier of the VM. # Related endpoint: `v1/vms` ${VmId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmLtrCatalogVmOriginalSetting_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of the available Retention sets for a VM in all Repositories in the site (Auth) .Description Get a list of the available Retention sets for a VM in all Repositories in the site (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IRetentionSetsApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmltrcatalogvmretentionset #> function Get-ZvmLtrCatalogVmRetentionSet { [OutputType([Zerto.ZvmLinux.Models.IRetentionSetsApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The idenfier of the VM. # Related endpoint: `v1/vms` ${VmId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmLtrCatalogVmRetentionSet_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of items (Auth) .Description Get a list of items (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IItemApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmoutputitem #> function Get-ZvmOutputItem { [OutputType([Zerto.ZvmLinux.Models.IItemApi])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # folder1/folder2 ${Path}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # Search item - *.ps1 ${Search}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Zerto.ZvmLinux.Commandlets\Get-ZvmOutputItem_List'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Generate a token for pairing (Auth) .Description Generate a token for pairing (Auth) .Example PS C:\>Get-ZvmPairingToken Token UtcExpirationDate ----- ----------------- NIjkL*************RdLKhCOQzRPn/68wmup+c= 12/09/2020 06:36 PM .Outputs Zerto.ZvmLinux.Models.IPairingTokenResult .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmpairingtoken #> function Get-ZvmPairingToken { [OutputType([Zerto.ZvmLinux.Models.IPairingTokenResult])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmPairingToken_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of all peer sites (Auth) .Description Get a list of all peer sites (Auth) .Example PS C:\>Get-ZvmPeer PeerSiteName HostName Port SiteType Version PairingStatus UsedStorage -------------- ------------- ----- --------- ------- ------------- ----------- vSphere-Site02 192.168.1.111 9071 VCenter 8.5.0 Paired 3434496 azure-Site 192.168.1.112 9071 Azure 8.5.0 Paired 0 .Outputs Zerto.ZvmLinux.Models.IPeerSiteApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmpeer #> function Get-ZvmPeer { [OutputType([Zerto.ZvmLinux.Models.IPeerSiteApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get1', Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The identifier of the peer site. # Related endpoints: `v1/peersites` ${SiteId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The IP address of a ZVM, paired with this site ${HostName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The site location, as specified in the site information ${Location}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The pairing status. # Related endpoint: `/v1/peersites/pairingstatuses` ${PairingStatus}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The name of a peer site. # The name is case-sensitive ${PeerName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.Int32] # The port used to access peer sites. # The default port is 9081 ${Port}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmPeer_Get'; Get1 = 'Zerto.ZvmLinux.Commandlets\Get-ZvmPeer_Get1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get the list of resource groups at the site (Auth) .Description Get the list of resource groups at the site (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IResourceGroupApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmpubliccloudresourcegroup #> function Get-ZvmPublicCloudResourceGroup { [OutputType([Zerto.ZvmLinux.Models.IResourceGroupApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The internal ZVM site identifier. # Related endpoints: `v1/localsite`, `v1/peersites` ${SiteId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmPublicCloudResourceGroup_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get All Repositories (Auth) .Description Get All Repositories (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IErrorResponse .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmrepository #> function Get-ZvmRepository { [OutputType([Zerto.ZvmLinux.Models.IErrorResponse])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get1', Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # . ${RepositoryId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # . ${ConnectionType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # . ${RepositoryName}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmRepository_Get'; Get1 = 'Zerto.ZvmLinux.Commandlets\Get-ZvmRepository_Get1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of items (Auth) .Description Get a list of items (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IItemApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmscriptitem #> function Get-ZvmScriptItem { [OutputType([Zerto.ZvmLinux.Models.IItemApi])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # folder1/folder2 ${Path}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # Search item - *.ps1 ${Search}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Zerto.ZvmLinux.Commandlets\Get-ZvmScriptItem_List'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get current system date-time in a Local time zone (Auth) .Description Get current system date-time in a Local time zone (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.DateTime .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmsystemdatetimeservicedatetimelocal #> function Get-ZvmSystemDateTimeServiceDateTimeLocal { [OutputType([System.DateTime])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmSystemDateTimeServiceDateTimeLocal_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get current system date-time in UTC format (Auth) .Description Get current system date-time in UTC format (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.DateTime .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmsystemdatetimeservicedatetimeutc #> function Get-ZvmSystemDateTimeServiceDateTimeUtc { [OutputType([System.DateTime])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmSystemDateTimeServiceDateTimeUtc_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get information about tasks run on this site. (Auth) .Description Get information about tasks run on this site. (Auth) .Example PS C:\>Get-ZvmTask Type Started Completed CompleteReason Progress State IsCancellable TaskIdentifier ---- ------- --------- -------------- -------- ----- ------------- -------------- InsertTaggedCP 12/7/2020 5:08:36 PM 12/7/2020 5:08:37 PM 100 Completed False 390e6b97-597d-4011-b91d-7160b30bf148.587cfbb5-c22c-4880-995f-df5eb2ddc737 .Outputs Zerto.ZvmLinux.Models.ITaskApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmtask #> function Get-ZvmTask { [OutputType([Zerto.ZvmLinux.Models.ITaskApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get1', Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The identifier of the task. # Related endpoints: `v1/tasks` ${TaskId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The date-time after the tasks ended. # Related endpoint: `v1/serverDateTime` for date time format details ${CompletedAfterDate}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The date-time before the tasks ended. # Related endpoint: `v1/serverDateTime` for date time format details ${CompletedBeforeDate}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The date-time after the tasks started. # Related endpoint: `v1/serverDateTime` for date time format details ${StartedAfterDate}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The date-time before the tasks started. # Related endpoint: `v1/serverDateTime` for date time format details ${StartedBeforeDate}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The status of the task. # Possible values are: `1 or InProgress` | `3 or Paused` | `4 or Failed` | `6 or Completed` | `7 or Cancelling` ${Status}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The task type. # Related endpoint `/v1/tasks/types` ${Type}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmTask_Get'; Get1 = 'Zerto.ZvmLinux.Commandlets\Get-ZvmTask_Get1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get Org VDCs with valid configuration (Auth) .Description Get Org VDCs with valid configuration (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IVcdVirtualDatacenter .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvalidorgvdc #> function Get-ZvmValidOrgVdc { [OutputType([Zerto.ZvmLinux.Models.IVcdVirtualDatacenter])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmValidOrgVdc_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get information about datastores at the site (Auth) .Description Get information about datastores at the site (Auth) .Example PS C:\>Get-ZvmVirtualizationSiteDatastore DatastoreIdentifier DatastoreName ------------------- ------------- 840f99fb-4689-2f8b-ea10-2a47a5bb00cc.Prod_Datastore Prod_Datastore 840f99fb-4689-2f8b-ea10-2a47a5bb00cc.Prod_Datastore1 Prod_Datastore1 840f99fb-4689-2f8b-ea10-2a47a5bb00cc.Prod_Datastore2 Prod_Datastore2 840f99fb-4689-2f8b-ea10-2a47a5bb00cc.Prod_Datastore3 Prod_Datastore3 .Outputs Zerto.ZvmLinux.Models.IDatastoreNativeApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvirtualizationsitedatastore #> function Get-ZvmVirtualizationSiteDatastore { [OutputType([Zerto.ZvmLinux.Models.IDatastoreNativeApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter()] [Zerto.ZvmLinux.Category('Path')] [System.String] # The internal ZVM site identifier. # Related endpoints: `v1/localsite`, `v1/peersites` ${SiteId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVirtualizationSiteDatastore_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get information about hosts at the site (Auth) .Description Get information about hosts at the site (Auth) .Example PS C:\>Get-ZvmVirtualizationSiteHost HostIdentifier VirtualizationHostName -------------- ---------------------- 840f99fb-4689-2f8b-ea10-2a47a5bb00cc.MyHost-0 MyHost-0 840f99fb-4689-2f8b-ea10-2a47a5bb00cc.MyHost-1 MyHost-1 Description: The example above lists all the SiteHosts, unfiltered. .Example PS C:\>Get-ZvmVirtualizationSiteHost -HostId 840f99fb-4689-2f8b-ea10-2a47a5bb00cc.MyHost-0 HostIdentifier VirtualizationHostName -------------- ---------------------- 840f99fb-4689-2f8b-ea10-2a47a5bb00cc.MyHost-0 MyHost-0 Description: The example above retrieves a single SiteHost by its identifier. .Example PS C:\>Get-ZvmVirtualizationSiteHost -HostId 'MyHost-1' HostIdentifier VirtualizationHostName -------------- ---------------------- 840f99fb-4689-2f8b-ea10-2a47a5bb00cc.MyHost-1 MyHost-1 Description: The example above retrieves a single SiteHost by its unique name. Note that the "-HostId" parameter can receive either the SiteHost name, or the SiteHost identifier (as in Example 2). .Outputs Zerto.ZvmLinux.Models.IHostNativeApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvirtualizationsitehost #> function Get-ZvmVirtualizationSiteHost { [OutputType([Zerto.ZvmLinux.Models.IHostNativeApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter()] [Zerto.ZvmLinux.Category('Path')] [System.String] # The internal ZVM site identifier. # Related endpoints: `v1/localsite`, `v1/peersites` ${SiteId}, [Parameter(ParameterSetName='Get1', Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The identifier of the host. # Related endpoints: `/v1/virtualizationsites/{siteIdentifier}/hosts` ${HostId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVirtualizationSiteHost_Get'; Get1 = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVirtualizationSiteHost_Get1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of virtual sites connected to this site and all peer sites. (Auth) .Description Get a list of virtual sites connected to this site and all peer sites. (Auth) .Example PS C:\>Get-ZvmVirtualizationSite SiteIdentifier VirtualizationSiteName ------------------------------------ ---------------------- 3dba6c5d-3919-49cb-901b-b80ef34b3c01 azure-Site 8c950e40-dd70-4570-a1fe-c2751879c6fd vSphere-Site02 587cfbb5-c22c-4880-995f-df5eb2ddc737 vSphere-Site01 .Outputs Zerto.ZvmLinux.Models.IVirtualizationSiteApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvirtualizationsite #> function Get-ZvmVirtualizationSite { [OutputType([Zerto.ZvmLinux.Models.IVirtualizationSiteApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get1', Position=0)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The internal ZVM site identifier. # Related endpoints: `v1/localsite`, `v1/peersites` ${SiteId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVirtualizationSite_Get'; Get1 = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVirtualizationSite_Get1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get VCD VMs without MorefId (Auth) .Description Get VCD VMs without MorefId (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IVcdVMMachine .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvmwithoutmorefid #> function Get-ZvmVmWithoutMorefId { [OutputType([Zerto.ZvmLinux.Models.IVcdVMMachine])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVmWithoutMorefId_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get information about protected virtual machines. You can filter the results with additional parameters. (Auth) .Description Get information about protected virtual machines. You can filter the results with additional parameters. (Auth) .Example PS C:\>Get-ZvmVm VmName Priority IsVmExists OrganizationName VpgName ProtectedSiteName RecoverySiteName Status SubStatus ActualRpo UsedStorageInMb LastTest ------ --------- ---------- ---------------- -------- ----------------- ----------------- ---------- --------- --------- --------------- -------- MyVM01 Medium True MyVPG01 vSphere-Site01 vSphere-Site02 MeetingSLA None 9 132096 MyVM02 Medium True MyVPG01 vSphere-Site01 vSphere-Site02 MeetingSLA None 9 132096 MyVM03 Medium True MyVPG02 vSphere-Site01 vSphere-Site02 MeetingSLA None 9 132096 .Example PS C:\>Get-ZvmVm -VmId MyVM01 VmName Priority IsVmExists OrganizationName VpgName ProtectedSiteName RecoverySiteName Status SubStatus ActualRpo UsedStorageInMb LastTest ------ --------- ---------- ---------------- -------- ----------------- ----------------- ---------- --------- --------- --------------- -------- MyVM01 Medium True MyVPG01 vSphere-Site01 vSphere-Site02 MeetingSLA None 9 132096 .Outputs Zerto.ZvmLinux.Models.IVMApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvm #> function Get-ZvmVm { [OutputType([Zerto.ZvmLinux.Models.IVMApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Position=0)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The identifier of the virtual machine. # Format: `serverid.moref` ${VmId}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.Management.Automation.SwitchParameter] # True for including backup virtual machines. # False for protected virtual machines only ${IncludeBackupedVms}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.Management.Automation.SwitchParameter] # Boolean to determine whether to include mounted vms or only unmounted VMs ${IncludeMountedVms}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The ZORG for this VPG ${OrganizationName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The priority specified for the VPG ${Priority}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the protected site where the VPG virtual machines are ${ProtectedSiteId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The protected site type ${ProtectedSiteType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the recovery site where the VPG virtual machines are ${RecoverySiteId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The recovery site environment ${RecoverySiteType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Deprecated. # See protectedSiteIdentifier ${SourceSite}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Deprecated. # See protectedSiteIdentifier ${SourceType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The status of the VPG ${Status}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The substatus of the VPG, for example the VPG is in a bitmap sync ${SubStatus}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Deprecated. # See recoverySiteIdentifier ${TargetSite}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Deprecated. # See recoverySiteIdentifier ${TargetType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The name of the virtual machine ${VmName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The name of the VPG ${VpgName}, [Parameter(ParameterSetName='Get1')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the VPG. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVm_Get'; Get1 = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVm_Get1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of checkpoints for the VPG. You can filter the results with additional parameters. (Auth) .Description Get a list of checkpoints for the VPG. You can filter the results with additional parameters. (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID .Example PS C:\>Get-ZvmVpgCheckpoint vpganame_1 CheckpointIdentifier Type TimeStamp Tag -------------------- ---- --------- --- 46074 Standard 12/19/2020 9:36:41 AM 46250 Standard 12/19/2020 9:51:44 AM 46426 Standard 12/19/2020 10:06:45 AM 46602 Standard 12/19/2020 10:21:46 AM 46779 Standard 12/19/2020 10:36:48 AM 46956 Standard 12/19/2020 10:51:48 AM .Outputs Zerto.ZvmLinux.Models.ICheckpointApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvpgcheckpoint #> function Get-ZvmVpgCheckpoint { [OutputType([Zerto.ZvmLinux.Models.ICheckpointApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The end date of the checkpoint ${EndDate}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The start date of the checkpoint ${StartDate}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVpgCheckpoint_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get VPG Scratch settings (Auth) .Description Get VPG Scratch settings (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IVpgSettingsScratchApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvpgsettingscratch #> function Get-ZvmVpgSettingScratch { [OutputType([Zerto.ZvmLinux.Models.IVpgSettingsScratchApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Vpg Settings Identfifier. # Related endpoint: `/v1/vpgSettings` ${VpgSettingsId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVpgSettingScratch_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get information about all VPGs. (Auth) .Description Get information about all VPGs. (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID .Example PS C:\>Get-ZvmVpg VpgName Priority ProtectedSiteName RecoverySiteName VmsCount Status SubStatus ActualRpo UsedStorageInMb LastTest ------- -------- ----------------- ---------------- -------- ------ --------- --------- --------------- -------- MyVPG01 Medium vSphere-Site01 vSphere-Site02 MeetingSLA None 7 396288 MyVPG02 Medium vSphere-Site01 vSphere-Site02 MeetingSLA None 7 924672 MyVPG03 Medium vSphere-Site01 vSphere-Site02 MeetingSLA None 7 528384 MyVPG05 Medium vSphere-Site01 vSphere-Site02 MeetingSLA None 7 528384 MyVPG06 Medium vSphere-Site03 vSphere-Site04 MeetingSLA None 7 528384 Exchange Medium vSphere-Site03 vSphere-Site04 MeetingSLA None 7 528384 Description: The example above lists all the VPGs, unfiltered. .Example PS C:\>Get-ZvmVpg -VpgId 2819e5cd-499e-4649-9575-71cbd4ec7cea VpgName Priority ProtectedSiteName RecoverySiteName VmsCount Status SubStatus ActualRpo UsedStorageInMb LastTest ------- -------- ----------------- ---------------- -------- ------ --------- --------- --------------- -------- MyVPG05 Medium vSphere-Site01 vSphere-Site02 MeetingSLA None 7 528384 Description: The example above retrieves a single VPG by its GUID identifier. .Example PS C:\>Get-ZvmVpg -VpgId 'MyVPG06' VpgName Priority ProtectedSiteName RecoverySiteName VmsCount Status SubStatus ActualRpo UsedStorageInMb LastTest ------- -------- ----------------- ---------------- -------- ------ --------- --------- --------------- -------- MyVPG06 Medium vSphere-Site03 vSphere-Site04 MeetingSLA None 7 528384 Description: The example above retrieves a single VPG by its unique name. Note that the "-VpgId" parameter can receive either the VPG name, or the VPG identifier GUID (as in Example 2). .Example PS C:\>Get-ZvmVpg 'MyVPG06' VpgName Priority ProtectedSiteName RecoverySiteName VmsCount Status SubStatus ActualRpo UsedStorageInMb LastTest ------- -------- ----------------- ---------------- -------- ------ --------- --------- --------------- -------- MyVPG06 Medium vSphere-Site03 vSphere-Site04 MeetingSLA None 7 528384 Description: The example above retrieves a single VPG by its unique name (like Example 3). Note that since "-VpgId" is a default parameter of this cmdlet, it can be omitted altogether. .Example PS C:\>Get-ZvmVpg -SourceSite vSphere-Site03 VpgName Priority ProtectedSiteName RecoverySiteName VmsCount Status SubStatus ActualRpo UsedStorageInMb LastTest ------- -------- ----------------- ---------------- -------- ------ --------- --------- --------------- -------- MyVPG06 Medium vSphere-Site03 vSphere-Site04 MeetingSLA None 7 528384 Exchange Medium vSphere-Site03 vSphere-Site04 MeetingSLA None 7 528384 Description: In the example above the VPG list is filtered by a "SourceSite" column value. .Example PS C:\>(Get-ZvmVpg -VpgId 'MyVPG03').Link.Identifier 2819e5cd-497e-4649-9575-71cbd4ec7cea Description: The example above shows how to treat cmdlet output result as object, e.g. to fetch the 'VpgIdentifier' field only. .Outputs Zerto.ZvmLinux.Models.IVpgApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvpg #> function Get-ZvmVpg { [OutputType([Zerto.ZvmLinux.Models.IVpgApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get1', Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.Management.Automation.SwitchParameter] # Deprecated ${BackupEnabled}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The ZORG for this VPG ${OrganizationName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The VPG priority. # Related endpoint: `/v1/vpgs/priorities` ${Priority}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the protected site ${ProtectedSiteId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The protected site type. # This filter behaves in the same way as the sourceType filter. # Possible values are: `0 or VCVpg` | `2 or VCDvApp` ${ProtectedSiteType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the recovery site ${RecoverySiteId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The type of the recovery site. # This filter behaves in the same way as the targetType filter ${RecoverySiteType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the service profile to use for the VPG when a Zerto Cloud Manager is used ${ServiceProfileId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Deprecated. # See protectedSiteIdentifier ${SourceSite}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Deprecated. # See protectedSiteType ${SourceType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # VPG status ${Status}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The substatus of the VPG, for example the VPG is in a bitmap sync ${SubStatus}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Deprecated. # See recoverySiteIdentifier ${TargetSite}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Deprecated. # See recoverySiteType ${TargetType}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # VPG name ${VpgName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # The internal identifier for the ZORG ${ZorgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVpg_Get'; Get1 = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVpg_Get1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get VRA cluster install settings. (Auth) .Description Get VRA cluster install settings. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IVrasOnClusterCreateDataApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvraclustersetting #> function Get-ZvmVraClusterSetting { [OutputType([Zerto.ZvmLinux.Models.IVrasOnClusterCreateDataApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Cluster identifier. # Related endpoint `/v1/virtualizationsites/{siteIdentifier}/hostclusters` ${ClusterId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVraClusterSetting_Get'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get information about all VRAs. (Auth) .Description Get information about all VRAs. (Auth) .Example PS C:\>Get-ZvmVra VraName VraVersion Status DatastoreClusterName DatastoreName HostDisplayName HostVersion IPAddress NetworkName VraGroup ------- ---------- ------ -------------------- ------------- --------------- ----------- --------- ----------- -------- Z-VRA-10.171.80.74 8.5 Installed inf_QANested0113_DS1 10.171.80.74 6.7 10.171.82.64 VM Network default_group Z-VRA-10.171.82.173 8.5 Installed DatastoreCluster inf_QANested0113_DS2 10.171.82.173 6.7 10.171.81.174 VM Network default_group .Example PS C:\>Get-ZvmVra -DatastoreName "Prod_Datastore" VraName VraVersion Status DatastoreClusterName DatastoreName HostDisplayName HostVersion IPAddress NetworkName VraGroup ------- ---------- ------ -------------------- ------------- --------------- ----------- --------- ----------- -------- VRA-MyHost-0 8.5 Installed Prod_Datastore MyHost-0 6.5 192.168.1.10 Test Network default_group VRA-MyHost-1 8.5 Installed Prod_Datastore MyHost-1 6.5 192.168.1.11 Test Network default_group .Outputs Zerto.ZvmLinux.Models.IVraApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/get-zvmvra #> function Get-ZvmVra { [OutputType([Zerto.ZvmLinux.Models.IVraApi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get1', Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Vra identifier. # Related endpoint: `/v1/vras` ${VraId}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Cluster name VRA uses for recovery data ${DatastoreClusterName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Datastore name VRA uses for recovery data ${DatastoreName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # Host version where the VRA is installed ${HostVersion}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # VRA IP address ${IPAddress}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # VRA network ${NetworkName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # VRA status ${Status}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # VRA group ${VraGroup}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # IP configuration type ${VraIPConfigurationTypeApi}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # VRA name ${VraName}, [Parameter(ParameterSetName='Get')] [Zerto.ZvmLinux.Category('Query')] [System.String] # VRA version ${VraVersion}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVra_Get'; Get1 = 'Zerto.ZvmLinux.Commandlets\Get-ZvmVra_Get1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Import VPGs. (Auth) .Description Import VPGs. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IImportVpgSettingsApi .Outputs Zerto.ZvmLinux.Models.IVpgSettingsImportVpgsResultApi .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IImportVpgSettingsApi>: . [ExportedVpgSettingsApi <IExportedVpgSettingsApi[]>]: [Basic <IVpgSettingsBasicApi>]: [JournalHistoryInHours <Int32?>]: [Name <String>]: [Priority <String>]: [ProtectedSiteIdentifier <String>]: [RecoverySiteIdentifier <String>]: [RpoInSeconds <Int32?>]: [ServiceProfileIdentifier <String>]: [TestIntervalInMinutes <Int32?>]: [UseWanCompression <Boolean?>]: [VpgType <String>]: [ZorgIdentifier <String>]: [BootGroups <IVpgSettingsBootGroupsApi>]: [BootGroups <IVpgSettingsBootGroupApi[]>]: [BootDelayInSeconds <Int32?>]: [BootGroupIdentifier <String>]: [Name <String>]: [Journal <IVpgSettingsJournalApi>]: [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [Limitation <IVpgSettingsJournalLimitationApi>]: [HardLimitInMb <Int32?>]: [HardLimitInPercent <Int32?>]: [WarningThresholdInMb <Int32?>]: [WarningThresholdInPercent <Int32?>]: [LongTermRetention <IVpgSettingsLtrApi>]: [Compression <String>]: [Enabled <Boolean?>]: [Indexing <IVpgSettingsLtrVMIndexingApi>]: [Vms <String[]>]: [RepositoryIdentifier <String>]: [RetentionRunTime <String>]: [Retry <ILtrRetryApi>]: [Enabled <Boolean?>]: [IntervalInMinutes <Int32?>]: [Number <Int32?>]: [SchedulerPolicy <ILtrSchedulerPolicyApi>]: [Daily <ILtrDailySchedulerPolicyApi>]: [Enabled <Boolean?>]: [RetentionDuration <ILtrDurationApi>]: [Count <Int32?>]: [DurationType <String>]: [Monthly <ILtrMonthlySchedulerPolicyApi>]: [DayOfMonth <String>]: [DayOfWeek <String>]: [Enabled <Boolean?>]: [RetentionDuration <ILtrDurationApi>]: [RetentionType <String>]: [WeekOfMonth <String>]: [Weekly <ILtrWeeklySchedulerPolicyApi>]: [DayOfWeek <String>]: [Enabled <Boolean?>]: [RetentionDuration <ILtrDurationApi>]: [RetentionType <String>]: [Yearly <ILtrYearlySchedulerPolicyApi>]: [DayOfMonth <Int32?>]: [DayOfWeek <String>]: [DayOfYear <String>]: [Enabled <Boolean?>]: [MonthOfYear <String>]: [RetentionDuration <ILtrDurationApi>]: [Networks <IVpgSettingsNetworksApi>]: [Failover <IVpgSettingsNetworkApi>]: [Hypervisor <IVpgSettingsHypervisorNetworkApi>]: [DefaultNetworkIdentifier <String>]: [PublicCloud <IVpgSettingsPublicCloudNetworkApi>]: [SecurityGroupIdentifiers <String[]>]: [SubnetIdentifier <String>]: [VirtualNetworkIdentifier <String>]: [Vcd <IVpgSettingsVcdNetworkApi>]: [CopyNatRules <String>]: [DefaultRecoveryOrgVdcNetworkIdentifier <String>]: [IsEnableGuestCustomization <Boolean?>]: [Mapping <IVpgSettingsVcdNetworksMappingApi[]>]: [ProtectedOrgVdcNetworkIdentifier <String>]: [RecoveryOrgVdcNetworkIdentifier <String>]: [ReverseTestOrgVdcNetworkIdentifier <String>]: [FailoverTest <IVpgSettingsNetworkApi>]: [Protected <IVpgSettingsProtectedApi>]: [Vcd <IVpgSettingsVcdProtectedApi>]: [VcdVappIdentifier <String>]: [Recovery <IVpgSettingsRecoveryApi>]: [DefaultDatastoreClusterIdentifier <String>]: [DefaultDatastoreIdentifier <String>]: [DefaultFolderIdentifier <String>]: [DefaultHostClusterIdentifier <String>]: [DefaultHostIdentifier <String>]: [PublicCloud <IVpgSettingsPublicCloudRecoveryApi>]: [Failover <IVpgSettingsPublicCloudInfoRecoveryApi>]: [Azure <IVpgSettingsPublicCloudProviderInfoRecoveryApi>]: [RecoveryDiskType <String>]: [RecoveryResourceGroup <String>]: [VmInstanceType <String>]: [FailoverTest <IVpgSettingsPublicCloudInfoRecoveryApi>]: [ResourcePoolIdentifier <String>]: [Vcd <IVpgSettingsVcdRecoveryApi>]: [OrgVdcIdentifier <String>]: [Scratch <IVpgSettingsScratchApi>]: [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [Limitation <IVpgSettingsScratchLimitationApi>]: [HardLimitInMb <Int32?>]: [HardLimitInPercent <Int32?>]: [WarningThresholdInMb <Int32?>]: [WarningThresholdInPercent <Int32?>]: [Scripting <IVpgSettingsScriptsApi>]: [PostBackup <IVpgSettingsScriptApi>]: [Command <String>]: [Parameters <String>]: [TimeoutInSeconds <Int32?>]: [PostRecovery <IVpgSettingsScriptApi>]: [PreRecovery <IVpgSettingsScriptApi>]: [SourceSiteName <String>]: [TargetSiteName <String>]: [Vms <IVpgSettingsVMApi[]>]: [BootGroupIdentifier <String>]: [Journal <IVpgSettingsVMJournalApi>]: [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [Limitation <IVpgSettingsVMJournalLimitationApi>]: [HardLimitInMb <Int32?>]: [HardLimitInPercent <Int32?>]: [WarningThresholdInMb <Int32?>]: [WarningThresholdInPercent <Int32?>]: [Nics <IVpgSettingsVMNicApi[]>]: [Failover <IVpgSettingsVMNicNetworkApi>]: [Hypervisor <IVpgSettingsVMNicHypervisorNetworkApi>]: [DnsSuffix <String>]: [IPConfig <IVpgSettingsVMNicHypervisorIpconfig>]: [Gateway <String>]: [IsDhcp <Boolean?>]: [PrimaryDns <String>]: [SecondaryDns <String>]: [StaticIP <String>]: [SubnetMask <String>]: [NetworkIdentifier <String>]: [ShouldReplaceIPConfiguration <Boolean?>]: [ShouldReplaceMacAddress <Boolean?>]: [PublicCloud <IVpgSettingsVMNicPublicCloudNetworkApi>]: [IsPrimary <Boolean?>]: [PrivateIP <String>]: [SecurityGroupIdentifiers <String[]>]: [SubnetIdentifier <String>]: [Vcd <IVpgSettingsVMNicVcdNetworkApi>]: [IPAddress <String>]: [IPMode <String>]: [IsConnected <Boolean?>]: [IsPrimary <Boolean?>]: [IsResetMacAddress <Boolean?>]: [RecoveryOrgVdcNetworkIdentifier <String>]: [FailoverTest <IVpgSettingsVMNicNetworkApi>]: [NicIdentifier <String>]: [Recovery <IVpgSettingsVMRecoveryApi>]: [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [FolderIdentifier <String>]: [HostClusterIdentifier <String>]: [HostIdentifier <String>]: [PublicCloud <IVpgSettingsVMPublicCloudRecoveryApi>]: [Failover <IVpgSettingsVMPublicCloudInfoRecoveryApi>]: [Azure <IVpgSettingsVMPublicCloudProviderInfoRecoveryApi>]: [RecoveryDiskType <String>]: [VirtualNetworkIdentifier <String>]: [VmInstanceType <String>]: [FailoverTest <IVpgSettingsVMPublicCloudInfoRecoveryApi>]: [ResourcePoolIdentifier <String>]: [Vcd <IVpgSettingsVMVcdRecoveryApi>]: [StoragePolicyIdentifier <String>]: [Scratch <IVpgSettingsScratchApi>]: [VmIdentifier <String>]: [Volumes <IVpgSettingsVMVolumeApi[]>]: [Datastore <IVpgSettingsVMVolumeDatastoreApi>]: [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [IsThin <Boolean?>]: [Preseed <IVpgSettingsVMVolumePreseedApi>]: [DatastoreIdentifier <String>]: [Path <String>]: [Rdm <IVpgSettingsVMVolumeRdmApi>]: [DeviceIdentifier <String>]: [IsPhysical <Boolean?>]: [Vcd <IVpgSettingsVMVolumeVcdApi>]: [IsThin <Boolean?>]: [VolumeIdentifier <String>]: [VolumeSyncSettings <String>]: [VpgIdentifier <String>]: [VpgSettingsIdentifier <String>]: [VpgNames <String[]>]: EXPORTEDVPGSETTINGSAPI <IExportedVpgSettingsApi[]>: . [Basic <IVpgSettingsBasicApi>]: [JournalHistoryInHours <Int32?>]: [Name <String>]: [Priority <String>]: [ProtectedSiteIdentifier <String>]: [RecoverySiteIdentifier <String>]: [RpoInSeconds <Int32?>]: [ServiceProfileIdentifier <String>]: [TestIntervalInMinutes <Int32?>]: [UseWanCompression <Boolean?>]: [VpgType <String>]: [ZorgIdentifier <String>]: [BootGroups <IVpgSettingsBootGroupsApi>]: [BootGroups <IVpgSettingsBootGroupApi[]>]: [BootDelayInSeconds <Int32?>]: [BootGroupIdentifier <String>]: [Name <String>]: [Journal <IVpgSettingsJournalApi>]: [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [Limitation <IVpgSettingsJournalLimitationApi>]: [HardLimitInMb <Int32?>]: [HardLimitInPercent <Int32?>]: [WarningThresholdInMb <Int32?>]: [WarningThresholdInPercent <Int32?>]: [LongTermRetention <IVpgSettingsLtrApi>]: [Compression <String>]: [Enabled <Boolean?>]: [Indexing <IVpgSettingsLtrVMIndexingApi>]: [Vms <String[]>]: [RepositoryIdentifier <String>]: [RetentionRunTime <String>]: [Retry <ILtrRetryApi>]: [Enabled <Boolean?>]: [IntervalInMinutes <Int32?>]: [Number <Int32?>]: [SchedulerPolicy <ILtrSchedulerPolicyApi>]: [Daily <ILtrDailySchedulerPolicyApi>]: [Enabled <Boolean?>]: [RetentionDuration <ILtrDurationApi>]: [Count <Int32?>]: [DurationType <String>]: [Monthly <ILtrMonthlySchedulerPolicyApi>]: [DayOfMonth <String>]: [DayOfWeek <String>]: [Enabled <Boolean?>]: [RetentionDuration <ILtrDurationApi>]: [RetentionType <String>]: [WeekOfMonth <String>]: [Weekly <ILtrWeeklySchedulerPolicyApi>]: [DayOfWeek <String>]: [Enabled <Boolean?>]: [RetentionDuration <ILtrDurationApi>]: [RetentionType <String>]: [Yearly <ILtrYearlySchedulerPolicyApi>]: [DayOfMonth <Int32?>]: [DayOfWeek <String>]: [DayOfYear <String>]: [Enabled <Boolean?>]: [MonthOfYear <String>]: [RetentionDuration <ILtrDurationApi>]: [Networks <IVpgSettingsNetworksApi>]: [Failover <IVpgSettingsNetworkApi>]: [Hypervisor <IVpgSettingsHypervisorNetworkApi>]: [DefaultNetworkIdentifier <String>]: [PublicCloud <IVpgSettingsPublicCloudNetworkApi>]: [SecurityGroupIdentifiers <String[]>]: [SubnetIdentifier <String>]: [VirtualNetworkIdentifier <String>]: [Vcd <IVpgSettingsVcdNetworkApi>]: [CopyNatRules <String>]: [DefaultRecoveryOrgVdcNetworkIdentifier <String>]: [IsEnableGuestCustomization <Boolean?>]: [Mapping <IVpgSettingsVcdNetworksMappingApi[]>]: [ProtectedOrgVdcNetworkIdentifier <String>]: [RecoveryOrgVdcNetworkIdentifier <String>]: [ReverseTestOrgVdcNetworkIdentifier <String>]: [FailoverTest <IVpgSettingsNetworkApi>]: [Protected <IVpgSettingsProtectedApi>]: [Vcd <IVpgSettingsVcdProtectedApi>]: [VcdVappIdentifier <String>]: [Recovery <IVpgSettingsRecoveryApi>]: [DefaultDatastoreClusterIdentifier <String>]: [DefaultDatastoreIdentifier <String>]: [DefaultFolderIdentifier <String>]: [DefaultHostClusterIdentifier <String>]: [DefaultHostIdentifier <String>]: [PublicCloud <IVpgSettingsPublicCloudRecoveryApi>]: [Failover <IVpgSettingsPublicCloudInfoRecoveryApi>]: [Azure <IVpgSettingsPublicCloudProviderInfoRecoveryApi>]: [RecoveryDiskType <String>]: [RecoveryResourceGroup <String>]: [VmInstanceType <String>]: [FailoverTest <IVpgSettingsPublicCloudInfoRecoveryApi>]: [ResourcePoolIdentifier <String>]: [Vcd <IVpgSettingsVcdRecoveryApi>]: [OrgVdcIdentifier <String>]: [Scratch <IVpgSettingsScratchApi>]: [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [Limitation <IVpgSettingsScratchLimitationApi>]: [HardLimitInMb <Int32?>]: [HardLimitInPercent <Int32?>]: [WarningThresholdInMb <Int32?>]: [WarningThresholdInPercent <Int32?>]: [Scripting <IVpgSettingsScriptsApi>]: [PostBackup <IVpgSettingsScriptApi>]: [Command <String>]: [Parameters <String>]: [TimeoutInSeconds <Int32?>]: [PostRecovery <IVpgSettingsScriptApi>]: [PreRecovery <IVpgSettingsScriptApi>]: [SourceSiteName <String>]: [TargetSiteName <String>]: [Vms <IVpgSettingsVMApi[]>]: [BootGroupIdentifier <String>]: [Journal <IVpgSettingsVMJournalApi>]: [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [Limitation <IVpgSettingsVMJournalLimitationApi>]: [HardLimitInMb <Int32?>]: [HardLimitInPercent <Int32?>]: [WarningThresholdInMb <Int32?>]: [WarningThresholdInPercent <Int32?>]: [Nics <IVpgSettingsVMNicApi[]>]: [Failover <IVpgSettingsVMNicNetworkApi>]: [Hypervisor <IVpgSettingsVMNicHypervisorNetworkApi>]: [DnsSuffix <String>]: [IPConfig <IVpgSettingsVMNicHypervisorIpconfig>]: [Gateway <String>]: [IsDhcp <Boolean?>]: [PrimaryDns <String>]: [SecondaryDns <String>]: [StaticIP <String>]: [SubnetMask <String>]: [NetworkIdentifier <String>]: [ShouldReplaceIPConfiguration <Boolean?>]: [ShouldReplaceMacAddress <Boolean?>]: [PublicCloud <IVpgSettingsVMNicPublicCloudNetworkApi>]: [IsPrimary <Boolean?>]: [PrivateIP <String>]: [SecurityGroupIdentifiers <String[]>]: [SubnetIdentifier <String>]: [Vcd <IVpgSettingsVMNicVcdNetworkApi>]: [IPAddress <String>]: [IPMode <String>]: [IsConnected <Boolean?>]: [IsPrimary <Boolean?>]: [IsResetMacAddress <Boolean?>]: [RecoveryOrgVdcNetworkIdentifier <String>]: [FailoverTest <IVpgSettingsVMNicNetworkApi>]: [NicIdentifier <String>]: [Recovery <IVpgSettingsVMRecoveryApi>]: [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [FolderIdentifier <String>]: [HostClusterIdentifier <String>]: [HostIdentifier <String>]: [PublicCloud <IVpgSettingsVMPublicCloudRecoveryApi>]: [Failover <IVpgSettingsVMPublicCloudInfoRecoveryApi>]: [Azure <IVpgSettingsVMPublicCloudProviderInfoRecoveryApi>]: [RecoveryDiskType <String>]: [VirtualNetworkIdentifier <String>]: [VmInstanceType <String>]: [FailoverTest <IVpgSettingsVMPublicCloudInfoRecoveryApi>]: [ResourcePoolIdentifier <String>]: [Vcd <IVpgSettingsVMVcdRecoveryApi>]: [StoragePolicyIdentifier <String>]: [Scratch <IVpgSettingsScratchApi>]: [VmIdentifier <String>]: [Volumes <IVpgSettingsVMVolumeApi[]>]: [Datastore <IVpgSettingsVMVolumeDatastoreApi>]: [DatastoreClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [IsThin <Boolean?>]: [Preseed <IVpgSettingsVMVolumePreseedApi>]: [DatastoreIdentifier <String>]: [Path <String>]: [Rdm <IVpgSettingsVMVolumeRdmApi>]: [DeviceIdentifier <String>]: [IsPhysical <Boolean?>]: [Vcd <IVpgSettingsVMVolumeVcdApi>]: [IsThin <Boolean?>]: [VolumeIdentifier <String>]: [VolumeSyncSettings <String>]: [VpgIdentifier <String>]: [VpgSettingsIdentifier <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/import-zvmvpg #> function Import-ZvmVpg { [OutputType([Zerto.ZvmLinux.Models.IVpgSettingsImportVpgsResultApi])] [CmdletBinding(DefaultParameterSetName='ImportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Import', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IImportVpgSettingsApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='ImportExpanded')] [AllowEmptyCollection()] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IExportedVpgSettingsApi[]] # . # To construct, see NOTES section for EXPORTEDVPGSETTINGSAPI properties and create a hash table. ${ExportedVpgSettingsApi}, [Parameter(ParameterSetName='ImportExpanded')] [AllowEmptyCollection()] [Zerto.ZvmLinux.Category('Body')] [System.String[]] # . ${VpgNames}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Import = 'Zerto.ZvmLinux.Commandlets\Import-ZvmVpg_Import'; ImportExpanded = 'Zerto.ZvmLinux.Commandlets\Import-ZvmVpg_ImportExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis End the Manual Retention process (Auth) .Description End the Manual Retention process (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmabortretention #> function Invoke-ZvmAbortRetention { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Abort', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The identifier of the VPG. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Abort = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmAbortRetention_Abort'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Commits a restored journal VM. (Auth) .Description Commits a restored journal VM. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs System.String .Outputs System.String .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmcommitvm #> function Invoke-ZvmCommitVm { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Commit', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The identifier of the VM. # Related endpoint: `v1/vms` ${VmId}, [Parameter(Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${Body}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Commit = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmCommitVm_Commit'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Dismiss encryption event (resolve alert, clear tag checkpoint) (Auth) .Description Dismiss encryption event (resolve alert, clear tag checkpoint) (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IVpgIdentifiersApi .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IVpgIdentifiersApi>: . [VpgIdentifiers <String[]>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmdismissevent #> function Invoke-ZvmDismissEvent { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='DismissExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Dismiss', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVpgIdentifiersApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='DismissExpanded')] [AllowEmptyCollection()] [Zerto.ZvmLinux.Category('Body')] [System.String[]] # . ${VpgIdentifiers}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Dismiss = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmDismissEvent_Dismiss'; DismissExpanded = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmDismissEvent_DismissExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Download a file from output directory (Auth) .Description Download a file from output directory (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IStream .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmdownloadfilefromoutputdirectory #> function Invoke-ZvmDownloadFileFromOutputDirectory { [OutputType([Zerto.ZvmLinux.Models.IStream])] [CmdletBinding(DefaultParameterSetName='Download', PositionalBinding=$false)] param( [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # folder1/folder2/file.ps1 ${Path}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Download = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmDownloadFileFromOutputDirectory_Download'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Download a file from scripts directory (Auth) .Description Download a file from scripts directory (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IStream .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmdownloadfilefromscriptdirectory #> function Invoke-ZvmDownloadFileFromScriptDirectory { [OutputType([Zerto.ZvmLinux.Models.IStream])] [CmdletBinding(DefaultParameterSetName='Download', PositionalBinding=$false)] param( [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # folder1/folder2/file.ps1 ${Path}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Download = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmDownloadFileFromScriptDirectory_Download'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get the state of the encryption detection (enabled/disabled).\nThis API will be deprecated starting Zerto 10.0_U6. Use the following new API for Site Setting configuration: /management/api/settings/v1/settings (Auth) .Description Get the state of the encryption detection (enabled/disabled).\nThis API will be deprecated starting Zerto 10.0_U6. Use the following new API for Site Setting configuration: /management/api/settings/v1/settings (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.ISettingsApi .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <ISettingsApi>: . [EncryptionDetectionEnabled <Boolean?>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmencryptiondetectionenabled #> function Invoke-ZvmEncryptionDetectionEnabled { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Encryption', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Encryption1', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.ISettingsApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='EncryptionExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${EncryptionDetectionEnabled}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='Encryption1')] [Parameter(ParameterSetName='EncryptionExpanded')] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Encryption = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmEncryptionDetectionEnabled_Encryption'; Encryption1 = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmEncryptionDetectionEnabled_Encryption1'; EncryptionExpanded = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmEncryptionDetectionEnabled_EncryptionExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of VMs with encryption data (Auth) .Description Get a list of VMs with encryption data (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IMetricsVMApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmmetricvm #> function Invoke-ZvmMetricVm { [OutputType([Zerto.ZvmLinux.Models.IMetricsVMApi])] [CmdletBinding(DefaultParameterSetName='Metrics', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Metrics = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmMetricVm_Metrics'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of volumes with encryption data (Auth) .Description Get a list of volumes with encryption data (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IMetricsVolumeApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmmetricvolume #> function Invoke-ZvmMetricVolume { [OutputType([Zerto.ZvmLinux.Models.IMetricsVolumeApi])] [CmdletBinding(DefaultParameterSetName='Metrics', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Metrics = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmMetricVolume_Metrics'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of VPGs with encryption data (Auth) .Description Get a list of VPGs with encryption data (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IMetricsVpgApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmmetricvpg #> function Invoke-ZvmMetricVpg { [OutputType([Zerto.ZvmLinux.Models.IMetricsVpgApi])] [CmdletBinding(DefaultParameterSetName='Metrics', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Metrics = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmMetricVpg_Metrics'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get all the relevant points in time for the VM. VpgId may be required if the VM is protected in more than one VPG. (Auth) .Description Get all the relevant points in time for the VM. VpgId may be required if the VM is protected in more than one VPG. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.IPointInTimeApi .Outputs Zerto.ZvmLinux.Models.IPointInTimeStatsApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmpoint #> function Invoke-ZvmPoint { [OutputType([Zerto.ZvmLinux.Models.IPointInTimeApi], [Zerto.ZvmLinux.Models.IPointInTimeStatsApi])] [CmdletBinding(DefaultParameterSetName='Points', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The identifier of the VM. # Related endpoint: `v1/vms` ${VmId}, [Parameter(ParameterSetName='Points')] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The filter interval end date-time. # Related endpoint: `v1/serverDateTime` for date-time format details ${EndDate}, [Parameter(ParameterSetName='Points')] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # The filter interval start date-time. # Related endpoint: `v1/serverDateTime` for date-time format details ${StartDate}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # The identifier of the VPG. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Points = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmPoint_Points'; Points1 = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmPoint_Points1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Rolls back a restored journal VM. (Auth) .Description Rolls back a restored journal VM. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs System.String .Outputs System.String .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmrollbackvm #> function Invoke-ZvmRollbackVm { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Rollback', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The identifier of the VM. # Related endpoint: `v1/vms` ${VmId}, [Parameter(Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${Body}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Rollback = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmRollbackVm_Rollback'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of VMs that are suspected to have an encryption event (Auth) .Description Get a list of VMs that are suspected to have an encryption event (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.ISuspectedVMApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmsuspectedvm #> function Invoke-ZvmSuspectedVm { [OutputType([Zerto.ZvmLinux.Models.ISuspectedVMApi])] [CmdletBinding(DefaultParameterSetName='Suspected', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Suspected = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmSuspectedVm_Suspected'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of Volumes that are suspected to have an encryption event (Auth) .Description Get a list of Volumes that are suspected to have an encryption event (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.ISuspectedVolumeApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmsuspectedvolume #> function Invoke-ZvmSuspectedVolume { [OutputType([Zerto.ZvmLinux.Models.ISuspectedVolumeApi])] [CmdletBinding(DefaultParameterSetName='Suspected', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Suspected = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmSuspectedVolume_Suspected'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of VPGs that are suspected to have an encryption event (Auth) .Description Get a list of VPGs that are suspected to have an encryption event (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Zerto.ZvmLinux.Models.ISuspectedVpgApi .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmsuspectedvpg #> function Invoke-ZvmSuspectedVpg { [OutputType([Zerto.ZvmLinux.Models.ISuspectedVpgApi])] [CmdletBinding(DefaultParameterSetName='Suspected', PositionalBinding=$false)] param( [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Suspected = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmSuspectedVpg_Suspected'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Check system date time casting from parameters. Specify the date and check the return value to prove your expectations. (Auth) .Description Check system date time casting from parameters. Specify the date and check the return value to prove your expectations. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.DateTime .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmsystemdatetimeservice #> function Invoke-ZvmSystemDateTimeService { [OutputType([System.DateTime])] [CmdletBinding(DefaultParameterSetName='Post', PositionalBinding=$false)] param( [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.DateTime] # There are three main ways to specify the date time: # In milliseconds | In UTC format | In any other general format (Local time) ${DateTime}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Post = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmSystemDateTimeService_Post'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Upload a file to scripts directory (Auth) .Description Upload a file to scripts directory (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs System.IO.Stream .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/invoke-zvmuploadfiletoscriptdirectory #> function Invoke-ZvmUploadFileToScriptDirectory { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Upload', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [System.IO.Stream] # . ${File}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Upload = 'Zerto.ZvmLinux.Commandlets\Invoke-ZvmUploadFileToScriptDirectory_Upload'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create a folder in output directory (Auth) .Description Create a folder in output directory (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.ICreateFolderApi .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <ICreateFolderApi>: . [Path <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/new-zvmoutputfolder #> function New-ZvmOutputFolder { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.ICreateFolderApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='CreateExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${Path}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Zerto.ZvmLinux.Commandlets\New-ZvmOutputFolder_Create'; CreateExpanded = 'Zerto.ZvmLinux.Commandlets\New-ZvmOutputFolder_CreateExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create new repository (Auth) .Description Create new repository (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IRepositoriesSettingsApi .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. AZURE <IAzureBackupTargetStorageApi>: . [AzureAppId <String>]: [AzureAppKey <String>]: [AzureCloud <String>]: [AzureSa <String>]: [AzureTenantId <String>]: [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsArchiveTiering <Boolean?>]: [IsCoolTiering <Boolean?>]: [IsImmutable <Boolean?>]: [Path <String>]: [TieringToArchiveInDays <Int32?>]: [TieringToCoolInDays <Int32?>]: BODY <IRepositoriesSettingsApi>: . [Azure <IAzureBackupTargetStorageApi>]: [AzureAppId <String>]: [AzureAppKey <String>]: [AzureCloud <String>]: [AzureSa <String>]: [AzureTenantId <String>]: [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsArchiveTiering <Boolean?>]: [IsCoolTiering <Boolean?>]: [IsImmutable <Boolean?>]: [Path <String>]: [TieringToArchiveInDays <Int32?>]: [TieringToCoolInDays <Int32?>]: [Catalyst <ICatalystBackupTargetStorageApi>]: [CatalystServer <String>]: [CatalystStoreName <String>]: [Password <String>]: [Path <String>]: [Username <String>]: [ConnectionType <String>]: [DefaultRepository <Boolean?>]: [FreeCapacityGb <Int64?>]: [IsIndexRepository <Boolean?>]: [Nfs <INfsBackupTargetStorageObjectApi>]: [Path <String>]: [RepositoryIdentifier <String>]: [RepositoryName <String>]: [RepositoryState <IRepositoryStateApi>]: [AllocatedSpaceInGb <Int64?>]: [AvailableSpaceInGb <Int64?>]: [UsedSpaceInGb <Int64?>]: [S3 <IAwss3BackupTargetStorageApi>]: [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsGlacierTiering <Boolean?>]: [IsImmutable <Boolean?>]: [IsStandardIaTiering <Boolean?>]: [Path <String>]: [S3AccessKey <String>]: [S3BucketName <String>]: [S3EndpointUrl <String>]: [S3Region <String>]: [S3SecretKey <String>]: [S3StorageClass <String>]: [TieringToGlacierInDays <Int32?>]: [TieringToStandardIaInDays <Int32?>]: [S3Compatible <IS3CompatibleStorageObjectApi>]: [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsImmutable <Boolean?>]: [Path <String>]: [S3AccessKey <String>]: [S3BucketName <String>]: [S3EndpointUrl <String>]: [S3Region <String>]: [S3SecretKey <String>]: [Smb <ISmbBackupTargetStorageApi>]: [Password <String>]: [Path <String>]: [UserName <String>]: [StorageType <String>]: [TotalCapacityGb <Int64?>]: [UsedCapacityGb <Int64?>]: CATALYST <ICatalystBackupTargetStorageApi>: . [CatalystServer <String>]: [CatalystStoreName <String>]: [Password <String>]: [Path <String>]: [Username <String>]: NFS <INfsBackupTargetStorageObjectApi>: . [Path <String>]: REPOSITORYSTATE <IRepositoryStateApi>: . [AllocatedSpaceInGb <Int64?>]: [AvailableSpaceInGb <Int64?>]: [UsedSpaceInGb <Int64?>]: S3 <IAwss3BackupTargetStorageApi>: . [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsGlacierTiering <Boolean?>]: [IsImmutable <Boolean?>]: [IsStandardIaTiering <Boolean?>]: [Path <String>]: [S3AccessKey <String>]: [S3BucketName <String>]: [S3EndpointUrl <String>]: [S3Region <String>]: [S3SecretKey <String>]: [S3StorageClass <String>]: [TieringToGlacierInDays <Int32?>]: [TieringToStandardIaInDays <Int32?>]: S3COMPATIBLE <IS3CompatibleStorageObjectApi>: . [ImmutabilityDays <Int32?>]: [ImmutabilityPolicy <String>]: [IsImmutable <Boolean?>]: [Path <String>]: [S3AccessKey <String>]: [S3BucketName <String>]: [S3EndpointUrl <String>]: [S3Region <String>]: [S3SecretKey <String>]: SMB <ISmbBackupTargetStorageApi>: . [Password <String>]: [Path <String>]: [UserName <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/new-zvmrepository #> function New-ZvmRepository { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='NewExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='New', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IRepositoriesSettingsApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IAzureBackupTargetStorageApi] # . # To construct, see NOTES section for AZURE properties and create a hash table. ${Azure}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.ICatalystBackupTargetStorageApi] # . # To construct, see NOTES section for CATALYST properties and create a hash table. ${Catalyst}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${ConnectionType}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${DefaultRepository}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Int64] # . ${FreeCapacityGb}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsIndexRepository}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.INfsBackupTargetStorageObjectApi] # . # To construct, see NOTES section for NFS properties and create a hash table. ${Nfs}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${RepositoryId}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${RepositoryName}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IRepositoryStateApi] # . # To construct, see NOTES section for REPOSITORYSTATE properties and create a hash table. ${RepositoryState}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IAwss3BackupTargetStorageApi] # . # To construct, see NOTES section for S3 properties and create a hash table. ${S3}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IS3CompatibleStorageObjectApi] # . # To construct, see NOTES section for S3COMPATIBLE properties and create a hash table. ${S3Compatible}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.ISmbBackupTargetStorageApi] # . # To construct, see NOTES section for SMB properties and create a hash table. ${Smb}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${StorageType}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Int64] # . ${TotalCapacityGb}, [Parameter(ParameterSetName='NewExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Int64] # . ${UsedCapacityGb}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ New = 'Zerto.ZvmLinux.Commandlets\New-ZvmRepository_New'; NewExpanded = 'Zerto.ZvmLinux.Commandlets\New-ZvmRepository_NewExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create a folder in scripts directory (Auth) .Description Create a folder in scripts directory (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.ICreateFolderApi .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <ICreateFolderApi>: . [Path <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/new-zvmscriptfolder #> function New-ZvmScriptFolder { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.ICreateFolderApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='CreateExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${Path}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Zerto.ZvmLinux.Commandlets\New-ZvmScriptFolder_Create'; CreateExpanded = 'Zerto.ZvmLinux.Commandlets\New-ZvmScriptFolder_CreateExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Delete Retention sets (Auth) .Description Delete Retention sets (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IDeleteRetentionSetsApi .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IDeleteRetentionSetsApi>: . [RetentionSetsToDelete <IDeleteRetentionSetInfoApi[]>]: [FullRetentionSetIdentifier <String>]: [IncrementalRetentionSetsIdentifiers <String[]>]: RETENTIONSETSTODELETE <IDeleteRetentionSetInfoApi[]>: . [FullRetentionSetIdentifier <String>]: [IncrementalRetentionSetsIdentifiers <String[]>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/remove-zvmltrcatalogretentionset #> function Remove-ZvmLtrCatalogRetentionSet { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='DeleteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IDeleteRetentionSetsApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='DeleteExpanded')] [AllowEmptyCollection()] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IDeleteRetentionSetInfoApi[]] # . # To construct, see NOTES section for RETENTIONSETSTODELETE properties and create a hash table. ${RetentionSetsToDelete}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Zerto.ZvmLinux.Commandlets\Remove-ZvmLtrCatalogRetentionSet_Delete'; DeleteExpanded = 'Zerto.ZvmLinux.Commandlets\Remove-ZvmLtrCatalogRetentionSet_DeleteExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Delete a file in output directory (Auth) .Description Delete a file in output directory (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/remove-zvmoutputfile #> function Remove-ZvmOutputFile { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # folder1/folder2/file.ps1 ${Path}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Zerto.ZvmLinux.Commandlets\Remove-ZvmOutputFile_Delete'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Delete a folder in output directory (Auth) .Description Delete a folder in output directory (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/remove-zvmoutputfolder #> function Remove-ZvmOutputFolder { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.Management.Automation.SwitchParameter] # Delete the folder even if it's not empty ${DeleteIfNotEmpty}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # folder1/folder2 ${Path}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Zerto.ZvmLinux.Commandlets\Remove-ZvmOutputFolder_Delete'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Delete existing repository (Auth) .Description Delete existing repository (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/remove-zvmrepository #> function Remove-ZvmRepository { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Remove', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # . ${RepositoryId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Remove = 'Zerto.ZvmLinux.Commandlets\Remove-ZvmRepository_Remove'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Delete a file in scripts directory (Auth) .Description Delete a file in scripts directory (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/remove-zvmscriptfile #> function Remove-ZvmScriptFile { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # folder1/folder2/file.ps1 ${Path}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Zerto.ZvmLinux.Commandlets\Remove-ZvmScriptFile_Delete'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Delete a folder in scripts directory (Auth) .Description Delete a folder in scripts directory (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/remove-zvmscriptfolder #> function Remove-ZvmScriptFolder { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.Management.Automation.SwitchParameter] # Delete the folder even if it's not empty ${DeleteIfNotEmpty}, [Parameter()] [Zerto.ZvmLinux.Category('Query')] [System.String] # folder1/folder2 ${Path}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Zerto.ZvmLinux.Commandlets\Remove-ZvmScriptFolder_Delete'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Removes SSL certificate check .Description Removes SSL certificate check .Example PS C:\>Remove-ZvmSslCheck .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/remove-zvmsslcheck #> function Remove-ZvmSslCheck { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Remove', PositionalBinding=$false)] param() begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Remove = 'Zerto.ZvmLinux.Commandlets\Remove-ZvmSslCheck_Remove'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Delete VPG Scratch settings (Auth) .Description Delete VPG Scratch settings (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/remove-zvmvpgsettingscratch #> function Remove-ZvmVpgSettingScratch { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Remove', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Vpg Settings Identfifier. # Related endpoint: `/v1/vpgSettings` ${VpgSettingsId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Remove = 'Zerto.ZvmLinux.Commandlets\Remove-ZvmVpgSettingScratch_Remove'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Starts Journal Vm restore operation. Returns command task identifier of the operation. (Auth) .Description Starts Journal Vm restore operation. Returns command task identifier of the operation. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IJournalVMRestoreDataApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IJournalVMRestoreDataApi>: . [CheckpointIdentifier <String>]: [CommitPolicy <String>]: [JournalVmRestoreSettings <IJournalVMRestoreSettingsDataApi>]: [DatastoreIdentifier <String>]: [Nics <IJournalVMRestoreNicDataApi[]>]: [Hypervisor <IJournalVMRestoreHypervisorSettingsDataApi>]: [DnsSuffix <String>]: [IPConfig <IJournalVMRestoreIpsettingsDataApi>]: [Gateway <String>]: [IsDhcp <Boolean?>]: [PrimaryDns <String>]: [SecondaryDns <String>]: [StaticIP <String>]: [SubnetMask <String>]: [NetworkIdentifier <String>]: [ShouldReplaceMacAddress <Boolean?>]: [NicIdentifier <String>]: [Volumes <IJournalVMRestoreVolumeDataApi[]>]: [Datastore <IJournalVMRestoreDatastoreDataApi>]: [DatastoreIdentifier <String>]: [IsThin <Boolean?>]: [VolumeIdentifier <String>]: [RestoredVmName <String>]: [ShutdownPolicy <String>]: [TimeToWaitBeforeContinueInSeconds <Int32?>]: [VpgIdentifier <String>]: JOURNALVMRESTORESETTINGS <IJournalVMRestoreSettingsDataApi>: . [DatastoreIdentifier <String>]: [Nics <IJournalVMRestoreNicDataApi[]>]: [Hypervisor <IJournalVMRestoreHypervisorSettingsDataApi>]: [DnsSuffix <String>]: [IPConfig <IJournalVMRestoreIpsettingsDataApi>]: [Gateway <String>]: [IsDhcp <Boolean?>]: [PrimaryDns <String>]: [SecondaryDns <String>]: [StaticIP <String>]: [SubnetMask <String>]: [NetworkIdentifier <String>]: [ShouldReplaceMacAddress <Boolean?>]: [NicIdentifier <String>]: [Volumes <IJournalVMRestoreVolumeDataApi[]>]: [Datastore <IJournalVMRestoreDatastoreDataApi>]: [DatastoreIdentifier <String>]: [IsThin <Boolean?>]: [VolumeIdentifier <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/restore-zvmvm #> function Restore-ZvmVm { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='RestoreExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The identifier of the VM. # Related endpoint: `v1/vms` ${VmId}, [Parameter(ParameterSetName='Restore', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IJournalVMRestoreDataApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='RestoreExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${CheckpointId}, [Parameter(ParameterSetName='RestoreExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${CommitPolicy}, [Parameter(ParameterSetName='RestoreExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IJournalVMRestoreSettingsDataApi] # . # To construct, see NOTES section for JOURNALVMRESTORESETTINGS properties and create a hash table. ${JournalVmRestoreSettings}, [Parameter(ParameterSetName='RestoreExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${RestoredVmName}, [Parameter(ParameterSetName='RestoreExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${ShutdownPolicy}, [Parameter(ParameterSetName='RestoreExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Int32] # . ${TimeToWaitBeforeContinueInSeconds}, [Parameter(ParameterSetName='RestoreExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${VpgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Restore = 'Zerto.ZvmLinux.Commandlets\Restore-ZvmVm_Restore'; RestoreExpanded = 'Zerto.ZvmLinux.Commandlets\Restore-ZvmVm_RestoreExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Add a new license or update an existing one. (Auth) .Description Add a new license or update an existing one. (Auth) .Example PS C:\>Set-ZvmLicense -LicenseKey 5FBD8JZ1JBFGHTX6LKNZC89YHTS5SGLTUKZ .Example PS C:\>Set-ZvmLicense -LicenseKey InvalidLicenceKey Set-ZvmLicense_SetExpanded: Exception occurred in API: Invalid License Key .Inputs Zerto.ZvmLinux.Models.ILicenseKeyApi .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <ILicenseKeyApi>: . [LicenseKey <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/set-zvmlicense #> function Set-ZvmLicense { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='SetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Set', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.ILicenseKeyApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='SetExpanded', Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${LicenseKey}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Set = 'Zerto.ZvmLinux.Commandlets\Set-ZvmLicense_Set'; SetExpanded = 'Zerto.ZvmLinux.Commandlets\Set-ZvmLicense_SetExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis UnInstall VRAs from cluster. Returns TaskIdentifier (Auth) .Description UnInstall VRAs from cluster. Returns TaskIdentifier (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.String .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmclustervrauninstall #> function Start-ZvmClusterVraUninstall { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Cluster identifier. # Related endpoint `/v1/virtualizationsites/{siteIdentifier}/hostclusters` ${ClusterId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmClusterVraUninstall_Start'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Upgrade VRA on cluster. Returns TaskIdentifier (Auth) .Description Upgrade VRA on cluster. Returns TaskIdentifier (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.String .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmclustervraupgrade #> function Start-ZvmClusterVraUpgrade { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Cluster identifier. # Related endpoint `/v1/virtualizationsites/{siteIdentifier}/hostclusters` ${ClusterId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmClusterVraUpgrade_Start'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Restore the VM from the Repository at the recovery site. Returns a token. (Auth) .Description Restore the VM from the Repository at the recovery site. Returns a token. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IRestoreVMApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IRestoreVMApi>: . [DatastoreIdentifier <String>]: [HostIdentifier <String>]: [RetentionSetIdentifier <String>]: [VmIdentifier <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmltrrestorevm #> function Start-ZvmLtrRestoreVm { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IRestoreVMApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${DatastoreId}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${HostId}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${RetentionSetId}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${VmId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmLtrRestoreVm_Start'; StartExpanded = 'Zerto.ZvmLinux.Commandlets\Start-ZvmLtrRestoreVm_StartExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Add a peer site (start pairing). (Auth) .Description Add a peer site (start pairing). (Auth) Note: Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Start-ZvmPair -Host MyHost01.company.com -Port 7071 -Token NIjkLnTa5OtTJ0CHWfkSsMGch/6wvNQ4ddBIHZDLYhqGlJY0z/FI8wmup+c= e89e43b3-4fb5-43f0-a0fa-3ec4b4d87d18.587cfbb5-c22c-4880-995f-df5eb2ddc737 Description: To obtain pairing token, execute 'Get-ZvmPairingToken' for another host .Inputs Zerto.ZvmLinux.Models.IPairDataApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IPairDataApi>: . [HostName <String>]: [Port <Int32?>]: [Token <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmpair #> function Start-ZvmPair { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IPairDataApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='StartExpanded', Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${HostName}, [Parameter(ParameterSetName='StartExpanded', Position=1, Mandatory)] [Zerto.ZvmLinux.Category('Body')] [System.Int32] # . ${Port}, [Parameter(ParameterSetName='StartExpanded', Position=2, Mandatory)] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${Token}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmPair_Start'; StartExpanded = 'Zerto.ZvmLinux.Commandlets\Start-ZvmPair_StartExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Start the Manual Retention process (Auth) .Description Start the Manual Retention process (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IRetentionStartInfoApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IRetentionStartInfoApi>: . [CheckpointId <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmretention #> function Start-ZvmRetention { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # The identifier of the VPG. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IRetentionStartInfoApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${CheckpointId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmRetention_Start'; StartExpanded = 'Zerto.ZvmLinux.Commandlets\Start-ZvmRetention_StartExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Store VRA install settings for a cluster. (Auth) .Description Store VRA install settings for a cluster. (Auth) .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Zerto.ZvmLinux.Models.IVrasOnClusterCreateDataApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IVrasOnClusterCreateDataApi>: . [AutoPopulatePostInstalltion <Boolean?>]: [ClusterIdentifier <String>]: [DatastoreIdentifier <String>]: [GroupName <String>]: [HostRootPassword <String>]: [IsVaio <Boolean?>]: [MemoryInGb <Int32?>]: [NetworkIdentifier <String>]: [NumOfCpus <Int32?>]: [UsePublicKeyInsteadOfCredentials <Boolean?>]: [VraNetworkDataApi <IVraNetworkDataApi>]: [DefaultGateway <String>]: [SubnetMask <String>]: [VraIPAddress <String>]: [VraIPAddressRangeEnd <String>]: [VraIPConfigurationTypeApi <String>]: VRANETWORKDATAAPI <IVraNetworkDataApi>: . [DefaultGateway <String>]: [SubnetMask <String>]: [VraIPAddress <String>]: [VraIPAddressRangeEnd <String>]: [VraIPConfigurationTypeApi <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmsetvraclustersetting #> function Start-ZvmSetVraClusterSetting { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Cluster identifier. # Related endpoint `/v1/virtualizationsites/{siteIdentifier}/hostclusters` ${ClusterId}, [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVrasOnClusterCreateDataApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${AutoPopulatePostInstalltion}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${ClusterIdentifier1}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${DatastoreId}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${GroupName}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${HostRootPassword}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsVaio}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Int32] # . ${MemoryInGb}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${NetworkId}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Int32] # . ${NumOfCpus}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${UsePublicKeyInsteadOfCredentials}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVraNetworkDataApi] # . # To construct, see NOTES section for VRANETWORKDATAAPI properties and create a hash table. ${VraNetworkDataApi}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmSetVraClusterSetting_Start'; StartExpanded = 'Zerto.ZvmLinux.Commandlets\Start-ZvmSetVraClusterSetting_StartExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Clone a VPG using a specific checkpoint or the latest checkpoint if one is not (Auth) .Description Clone a VPG using a specific checkpoint or the latest checkpoint if one is not (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Start-ZvmVpgClone vpganame_1 db1075a6-94a4-4c15-9123-44107d6bb261.a728fb12-2c12-4c9c-872d-47c815fa2b70 .Inputs Zerto.ZvmLinux.Models.ICloneStartDataApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <ICloneStartDataApi>: . [CheckpointId <String>]: [DatastoreIdentifier <String>]: [VmIdentifiers <String[]>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmvpgclone #> function Start-ZvmVpgClone { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.ICloneStartDataApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='StartExpanded', Position=1)] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${CheckpointId}, [Parameter(ParameterSetName='StartExpanded', Position=2)] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${DatastoreId}, [Parameter(ParameterSetName='StartExpanded')] [AllowEmptyCollection()] [Zerto.ZvmLinux.Category('Body')] [System.String[]] # . ${VmIdentifiers}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgClone_Start'; StartExpanded = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgClone_StartExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Delete the VPG (Auth) .Description Delete the VPG (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Start-ZvmVpgDelete “vpga name_1” db1075a6-94a4-4c15-9123-44107d6bb261.a728fb12-2c12-4c9c-872d-47c815fa2b70 .Inputs Zerto.ZvmLinux.Models.IVpgDeleteDataApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IVpgDeleteDataApi>: . [Force <Boolean?>]: [KeepRecoveryVolumes <Boolean?>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmvpgdelete #> function Start-ZvmVpgDelete { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVpgDeleteDataApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${Force}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${KeepRecoveryVolumes}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgDelete_Start'; StartExpanded = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgDelete_StartExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Start a failover test using a specific checkpoint or the latest checkpoint if one is not . (Auth) .Description Start a failover test using a specific checkpoint or the latest checkpoint if one is not . (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Start-ZvmVpgFailoverTest vpganame_1 db1075a6-94a4-4c15-9123-44107d6bb261.a728fb12-2c12-4c9c-872d-47c815fa2b70 .Inputs Zerto.ZvmLinux.Models.IFailOverTestStartDataApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IFailOverTestStartDataApi>: . [CheckpointIdentifier <String>]: [VmIdentifiers <String[]>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmvpgfailovertest #> function Start-ZvmVpgFailoverTest { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IFailOverTestStartDataApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='StartExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${CheckpointId}, [Parameter(ParameterSetName='StartExpanded')] [AllowEmptyCollection()] [Zerto.ZvmLinux.Category('Body')] [System.String[]] # . ${VmIdentifiers}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgFailoverTest_Start'; StartExpanded = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgFailoverTest_StartExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Force synchronization of the VPG. (Auth) .Description Force synchronization of the VPG. (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Start-ZvmVpgForceSync vpganame_1 db1075a6-94a4-4c15-9123-44107d6bb261.a728fb12-2c12-4c9c-872d-47c815fa2b70 .Outputs System.String .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmvpgforcesync #> function Start-ZvmVpgForceSync { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgForceSync_Start'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Pause the protection of the VPG. (Auth) .Description Pause the protection of the VPG. (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Start-ZvmVpgPause vpganame_1 db1075a6-94a4-4c15-9123-44107d6bb261.a728fb12-2c12-4c9c-872d-47c815fa2b70 .Outputs System.String .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmvpgpause #> function Start-ZvmVpgPause { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgPause_Start'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Resume the protection of the VPG. (Auth) .Description Resume the protection of the VPG. (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Start-ZvmVpgResume vpganame_1 db1075a6-94a4-4c15-9123-44107d6bb261.a728fb12-2c12-4c9c-872d-47c815fa2b70 .Outputs System.String .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmvpgresume #> function Start-ZvmVpgResume { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgResume_Start'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create a tagged checkpoint for the VPG. (Auth) .Description Create a tagged checkpoint for the VPG. (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Start-ZvmVpgTaggedCheckpointInsert vpganame_1 -Body $vpgInsertTagCheckpointData db1075a6-94a4-4c15-9123-44107d6bb261.a728fb12-2c12-4c9c-872d-47c815fa2b70 .Inputs Zerto.ZvmLinux.Models.IVpgInsertTagCheckpointDataApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IVpgInsertTagCheckpointDataApi>: . [CheckpointName <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmvpgtaggedcheckpointinsert #> function Start-ZvmVpgTaggedCheckpointInsert { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVpgInsertTagCheckpointDataApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='StartExpanded', Position=1)] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${CheckpointName}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgTaggedCheckpointInsert_Start'; StartExpanded = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVpgTaggedCheckpointInsert_StartExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Change recovery host. (Auth) .Description Change recovery host. (Auth) Note: Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Start-ZvmVraChangeRecoveryHost someVra -Body $vraChangeRecoveryHostSettings db1075a6-94a4-4c15-9123-44107d6bb261.a728fb12-2c12-4c9c-872d-47c815fa2b70 .Inputs Zerto.ZvmLinux.Models.IVraChangeRecoveryHostSettingsApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IVraChangeRecoveryHostSettingsApi>: . [VmsAllocations <IVraVMAllocationApi[]>]: [HostIdentifier <String>]: [VmIdentifier <String>]: VMSALLOCATIONS <IVraVMAllocationApi[]>: . [HostIdentifier <String>]: [VmIdentifier <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/start-zvmvrachangerecoveryhost #> function Start-ZvmVraChangeRecoveryHost { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # Vra identifier. # Related endpoint: `/v1/vras` ${VraId}, [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVraChangeRecoveryHostSettingsApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='StartExpanded', Position=1, Mandatory)] [AllowEmptyCollection()] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IVraVMAllocationApi[]] # . # To construct, see NOTES section for VMSALLOCATIONS properties and create a hash table. ${VmsAllocations}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVraChangeRecoveryHost_Start'; StartExpanded = 'Zerto.ZvmLinux.Commandlets\Start-ZvmVraChangeRecoveryHost_StartExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Abort cloning of the VPG (Auth) .Description Abort cloning of the VPG (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Stop-ZvmVpgClone vpganame_1 db1075a6-94a4-4c15-9123-44107d6bb261.a728fb12-2c12-4c9c-872d-47c815fa2b70 .Outputs System.Boolean .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/stop-zvmvpgclone #> function Stop-ZvmVpgClone { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Stop = 'Zerto.ZvmLinux.Commandlets\Stop-ZvmVpgClone_Stop'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Stops a failover test. Specify if test was successful and provide a summary. (Auth) .Description Stops a failover test. Specify if test was successful and provide a summary. (Auth) Note: Parameter 'VpgId' accepts VPG name as well as VPG GUID Commandlet returns TaskId. Execute 'Get-ZvmTask TaskId' to get more info about running task .Example PS C:\>Stop-ZvmVpgFailoverTest vpganame_1 db1075a6-94a4-4c15-9123-44107d6bb261.a728fb12-2c12-4c9c-872d-47c815fa2b70 .Inputs Zerto.ZvmLinux.Models.IStopFailoverTestDataApi .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <IStopFailoverTestDataApi>: . [FailoverTestSuccess <Boolean?>]: [FailoverTestSummary <String>]: .Link https://learn.microsoft.com/powershell/module/zerto.zvmlinux.commandlets/stop-zvmvpgfailovertest #> function Stop-ZvmVpgFailoverTest { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='StopExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Position=0, Mandatory)] [Zerto.ZvmLinux.Category('Path')] [System.String] # VPG identifier. # Related endpoint: `v1/vpgs` ${VpgId}, [Parameter(ParameterSetName='Stop', Mandatory, ValueFromPipeline)] [Zerto.ZvmLinux.Category('Body')] [Zerto.ZvmLinux.Models.IStopFailoverTestDataApi] # . # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, [Parameter(ParameterSetName='StopExpanded')] [Zerto.ZvmLinux.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${FailoverTestSuccess}, [Parameter(ParameterSetName='StopExpanded', Position=1)] [Zerto.ZvmLinux.Category('Body')] [System.String] # . ${FailoverTestSummary}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [Zerto.ZvmLinux.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Zerto.ZvmLinux.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Stop = 'Zerto.ZvmLinux.Commandlets\Stop-ZvmVpgFailoverTest_Stop'; StopExpanded = 'Zerto.ZvmLinux.Commandlets\Stop-ZvmVpgFailoverTest_StopExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Zerto.ZvmLinux.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } |