Add new LTR API Endpoint
Added new LTR endpoint and help messages to indicate that it will only work with Version 8.0 and above. Also updated help message for backup settings indicating that backup settings only work with 7.5 and below.
This commit is contained in:
@@ -19,7 +19,7 @@ function Get-ZertoVpgSetting {
|
|||||||
ValueFromPipelineByPropertyName = $true,
|
ValueFromPipelineByPropertyName = $true,
|
||||||
ValueFromRemainingArguments = $true,
|
ValueFromRemainingArguments = $true,
|
||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "The identifier of the VPG settings object for which information is retrieved."
|
HelpMessage = "The identifier of the VPG settings object for which information is retrieved. Please note, this parameter is ONLY available in Zerto version 7.5 and earlier. Attempting to run this switch against a Zerto Virtual Manager version 8.0 or higher result in an error."
|
||||||
)]
|
)]
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "dayOfWeek",
|
ParameterSetName = "dayOfWeek",
|
||||||
@@ -149,31 +149,39 @@ function Get-ZertoVpgSetting {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "The identifier of the VPG settings object for which information is retrieved."
|
HelpMessage = "The identifier of the VPG settings object for which information is retrieved."
|
||||||
)]
|
)]
|
||||||
|
[Parameter(
|
||||||
|
ParameterSetName = "ltr",
|
||||||
|
ValueFromPipeline = $true,
|
||||||
|
ValueFromPipelineByPropertyName = $true,
|
||||||
|
ValueFromRemainingArguments = $true,
|
||||||
|
Mandatory = $true,
|
||||||
|
HelpMessage = "The identifier of the VPG settings object for which information is retrieved."
|
||||||
|
)]
|
||||||
[ValidateNotNullOrEmpty()]
|
[ValidateNotNullOrEmpty()]
|
||||||
[Alias("vpgSettingsId", "settingsId")]
|
[Alias("vpgSettingsId", "settingsId")]
|
||||||
[string[]]$vpgSettingsIdentifier,
|
[string[]]$vpgSettingsIdentifier,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "backup",
|
ParameterSetName = "backup",
|
||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "Return backup information for VPG identifier specified"
|
HelpMessage = "Return backup information for VPG identifier specified. Please note, this parameter is ONLY available in Zerto version 7.5 and earlier. Attempting to run this switch against a Zerto Virtual Manager version 8.0 or higher result in an error."
|
||||||
)]
|
)]
|
||||||
[switch]$backup,
|
[switch]$backup,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "dayOfWeek",
|
ParameterSetName = "dayOfWeek",
|
||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "Get the day of week a backup is scheduled"
|
HelpMessage = "Get the day of week a backup is scheduled. Please note, this parameter is ONLY available in Zerto version 7.5 and earlier. Attempting to run this switch against a Zerto Virtual Manager version 8.0 or higher result in an error."
|
||||||
)]
|
)]
|
||||||
[switch]$dayOfWeek,
|
[switch]$dayOfWeek,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "retentionPeriod",
|
ParameterSetName = "retentionPeriod",
|
||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "Get the retention period for a backup"
|
HelpMessage = "Get the retention period for a backup. Please note, this parameter is ONLY available in Zerto version 7.5 and earlier. Attempting to run this switch against a Zerto Virtual Manager version 8.0 or higher result in an error."
|
||||||
)]
|
)]
|
||||||
[switch]$retentionPeriod,
|
[switch]$retentionPeriod,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "schedulerPeriod",
|
ParameterSetName = "schedulerPeriod",
|
||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "Get the backup schedule"
|
HelpMessage = "Get the backup schedule. Please note, this parameter is ONLY available in Zerto version 7.5 and earlier. Attempting to run this switch against a Zerto Virtual Manager version 8.0 or higher result in an error."
|
||||||
)]
|
)]
|
||||||
[switch]$schedulerPeriod,
|
[switch]$schedulerPeriod,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
@@ -280,7 +288,14 @@ function Get-ZertoVpgSetting {
|
|||||||
)]
|
)]
|
||||||
[ValidateNotNullOrEmpty()]
|
[ValidateNotNullOrEmpty()]
|
||||||
[Alias("volumeId")]
|
[Alias("volumeId")]
|
||||||
[string]$volumeIdentifier
|
[string]$volumeIdentifier,
|
||||||
|
[Parameter(
|
||||||
|
ParameterSetName = "ltr",
|
||||||
|
Mandatory = $true,
|
||||||
|
HelpMessage = "Return LTR information for the specified VPG. Please note, this parameter is ONLY available in Zerto version 8.0 and later. Attempting to run this switch against a Zerto Virtual Manager version 7.5 or lower will result in an error."
|
||||||
|
)]
|
||||||
|
[switch]$ltr
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
begin {
|
begin {
|
||||||
|
|||||||
@@ -17,6 +17,11 @@ Returns information when a VPG Settings object is created to create a new or edi
|
|||||||
Get-ZertoVpgSetting [<CommonParameters>]
|
Get-ZertoVpgSetting [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### ltr
|
||||||
|
```
|
||||||
|
Get-ZertoVpgSetting -vpgSettingsIdentifier <String[]> [-ltr] [<CommonParameters>]
|
||||||
|
```
|
||||||
|
|
||||||
### volumeIdentifier
|
### volumeIdentifier
|
||||||
```
|
```
|
||||||
Get-ZertoVpgSetting -vpgSettingsIdentifier <String[]> -vmIdentifier <String> -volumeIdentifier <String>
|
Get-ZertoVpgSetting -vpgSettingsIdentifier <String[]> -vmIdentifier <String> -volumeIdentifier <String>
|
||||||
@@ -151,10 +156,17 @@ PS C:\> Get-ZertoVpgSetting -vpgSettingsIdentifier "MySettingsIdentifier" -basic
|
|||||||
|
|
||||||
Returns current basic settings for vpgSettingsIdentifier "MySettingsIdentifier"
|
Returns current basic settings for vpgSettingsIdentifier "MySettingsIdentifier"
|
||||||
|
|
||||||
|
### Example 6
|
||||||
|
```powershell
|
||||||
|
PS C:\> Get-ZertoVpgSetting -vpgSettingsIdentifier "MySettingsIdentifier" -ltr
|
||||||
|
```
|
||||||
|
|
||||||
|
Returns current LTR settings for vpgSettingsIdentifier "MySettingsIdentifier"
|
||||||
|
|
||||||
## PARAMETERS
|
## PARAMETERS
|
||||||
|
|
||||||
### -backup
|
### -backup
|
||||||
Return backup information for VPG identifier specified
|
Return backup information for VPG identifier specified. Please note, this parameter is ONLY available in Zerto version 7.5 and earlier. Attempting to run this switch against a Zerto Virtual Manager version 8.0 or higher result in an error.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: SwitchParameter
|
||||||
@@ -199,7 +211,7 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### -dayOfWeek
|
### -dayOfWeek
|
||||||
Get the day of week a backup is scheduled
|
Get the day of week a backup is scheduled. Please note, this parameter is ONLY available in Zerto version 7.5 and earlier. Attempting to run this switch against a Zerto Virtual Manager version 8.0 or higher result in an error.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: SwitchParameter
|
||||||
@@ -228,6 +240,21 @@ Accept pipeline input: False
|
|||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -ltr
|
||||||
|
Return LTR information for the specified VPG. Please note, this parameter is ONLY available in Zerto version 8.0 and later. Attempting to run this switch against a Zerto Virtual Manager version 7.5 or lower will result in an error.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: ltr
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: True
|
||||||
|
Position: Named
|
||||||
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -networks
|
### -networks
|
||||||
Get VPG Network Settings
|
Get VPG Network Settings
|
||||||
|
|
||||||
@@ -304,7 +331,7 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### -retentionPeriod
|
### -retentionPeriod
|
||||||
Get the retention period for a backup
|
Get the retention period for a backup. Please note, this parameter is ONLY available in Zerto version 7.5 and earlier. Attempting to run this switch against a Zerto Virtual Manager version 8.0 or higher result in an error.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: SwitchParameter
|
||||||
@@ -319,7 +346,7 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### -schedulerPeriod
|
### -schedulerPeriod
|
||||||
Get the backup schedule
|
Get the backup schedule. Please note, this parameter is ONLY available in Zerto version 7.5 and earlier. Attempting to run this switch against a Zerto Virtual Manager version 8.0 or higher result in an error.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: SwitchParameter
|
||||||
@@ -413,7 +440,7 @@ The identifier of the VPG settings object for which information is retrieved.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: volumeIdentifier, volumes, nicIdentifier, nics, vmIdentifier, vms, scripting, recovery, priority, networks, journal, bootGroup, basic, schedulerPeriod, retentionPeriod, dayOfWeek, backup, vpgSettingsIdentifier
|
Parameter Sets: ltr, volumeIdentifier, volumes, nicIdentifier, nics, vmIdentifier, vms, scripting, recovery, priority, networks, journal, bootGroup, basic, schedulerPeriod, retentionPeriod, dayOfWeek, backup, vpgSettingsIdentifier
|
||||||
Aliases: vpgSettingsId, settingsId
|
Aliases: vpgSettingsId, settingsId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
@@ -424,7 +451,7 @@ Accept wildcard characters: False
|
|||||||
```
|
```
|
||||||
|
|
||||||
### CommonParameters
|
### CommonParameters
|
||||||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
|
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
|
||||||
|
|
||||||
## INPUTS
|
## INPUTS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user