Updated for new Repositories endpoint
This commit is contained in:
@@ -52,6 +52,11 @@ function Get-ZertoVirtualizationSite {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "The identifier of the Zerto Virtual Manager site."
|
HelpMessage = "The identifier of the Zerto Virtual Manager site."
|
||||||
)]
|
)]
|
||||||
|
[Parameter(
|
||||||
|
ParameterSetName = "repositories",
|
||||||
|
Mandatory = $true,
|
||||||
|
HelpMessage = "The identifier of the Zerto Virtual Manager site."
|
||||||
|
)]
|
||||||
[ValidateNotNullOrEmpty()]
|
[ValidateNotNullOrEmpty()]
|
||||||
[Alias("siteId")]
|
[Alias("siteId")]
|
||||||
[string]$siteIdentifier,
|
[string]$siteIdentifier,
|
||||||
@@ -121,7 +126,14 @@ function Get-ZertoVirtualizationSite {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "Return all VMs at the selected site."
|
HelpMessage = "Return all VMs at the selected site."
|
||||||
)]
|
)]
|
||||||
[switch]$vms
|
[switch]$vms,
|
||||||
|
[Parameter(
|
||||||
|
ParameterSetName = "repositories",
|
||||||
|
Mandatory = $true,
|
||||||
|
HelpMessage = "The identifier of the Zerto Virtual Manager site."
|
||||||
|
)]
|
||||||
|
[switch]$repositories
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
begin {
|
begin {
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ Returns information about the hypervisor site where the API is run and all the s
|
|||||||
Get-ZertoVirtualizationSite [<CommonParameters>]
|
Get-ZertoVirtualizationSite [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### repositories
|
||||||
|
```
|
||||||
|
Get-ZertoVirtualizationSite -siteIdentifier <String> [-repositories] [<CommonParameters>]
|
||||||
|
```
|
||||||
|
|
||||||
### folders
|
### folders
|
||||||
```
|
```
|
||||||
Get-ZertoVirtualizationSite -siteIdentifier <String> [-folders] [<CommonParameters>]
|
Get-ZertoVirtualizationSite -siteIdentifier <String> [-folders] [<CommonParameters>]
|
||||||
@@ -225,6 +230,21 @@ Accept pipeline input: False
|
|||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -repositories
|
||||||
|
The identifier of the Zerto Virtual Manager site.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: repositories
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: True
|
||||||
|
Position: Named
|
||||||
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -resourcePools
|
### -resourcePools
|
||||||
Return all resource pools at the selected site.
|
Return all resource pools at the selected site.
|
||||||
|
|
||||||
@@ -245,7 +265,7 @@ The identifier of the Zerto Virtual Manager site.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: folders, devices, vms, resourcePools, networks, hosts, hostClusters, datastores, datastoreClusters, siteIdentifier
|
Parameter Sets: repositories, folders, devices, vms, resourcePools, networks, hosts, hostClusters, datastores, datastoreClusters, siteIdentifier
|
||||||
Aliases: siteId
|
Aliases: siteId
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
@@ -271,7 +291,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