--- external help file: ZertoApiWrapper-help.xml Module Name: ZertoApiWrapper online version: https://github.com/ZertoPublic/ZertoApiWrapper/blob/master/docs/Get-ZertoVirtualizationSite.md schema: 2.0.0 --- # Get-ZertoVirtualizationSite ## SYNOPSIS Returns information about the hypervisor site where the API is run and all the sites paired with this site. The information returned can be tailored to specific information about the resources managed at a specified site. ## SYNTAX ### main (Default) ``` Get-ZertoVirtualizationSite [] ``` ### folders ``` Get-ZertoVirtualizationSite -siteIdentifier [-folders] [] ``` ### devices ``` Get-ZertoVirtualizationSite -siteIdentifier [-devices] [-hostIdentifier ] [] ``` ### vms ``` Get-ZertoVirtualizationSite -siteIdentifier [-vms] [] ``` ### resourcePools ``` Get-ZertoVirtualizationSite -siteIdentifier [-resourcePools] [] ``` ### networks ``` Get-ZertoVirtualizationSite -siteIdentifier [-networks] [] ``` ### hosts ``` Get-ZertoVirtualizationSite -siteIdentifier [-hostIdentifier ] [-hosts] [] ``` ### hostClusters ``` Get-ZertoVirtualizationSite -siteIdentifier [-hostClusters] [] ``` ### datastores ``` Get-ZertoVirtualizationSite -siteIdentifier [-datastores] [] ``` ### datastoreClusters ``` Get-ZertoVirtualizationSite -siteIdentifier [-datastoreClusters] [] ``` ### siteIdentifier ``` Get-ZertoVirtualizationSite -siteIdentifier [] ``` ## DESCRIPTION Returns information about the hypervisor site where the API is run and all the sites paired with this site. The information returned can be tailored to specific information about the resources managed at a specified site. ## EXAMPLES ### Example 1 ```powershell PS C:\> Get-ZertoVirtualizationSite -siteIdentifier "MySiteIdentifier" ``` Returns information about the site with identifier "MySiteIdentifier" ### Example 2 ```powershell PS C:\> Get-ZertoVirtualizationSite -siteIdentifier "MySiteIdentifier" -datastoreClusters ``` Returns information about datastore clusters at site with site identifier "MySiteidentifier" ### Example 3 ```powershell PS C:\> Get-ZertoVirtualizationSite -siteIdentifier "MySiteIdentifier" -datastores ``` Returns information about datastores at site with site identifier "MySiteidentifier" ### Example 4 ```powershell PS C:\> Get-ZertoVirtualizationSite -siteIdentifier "MySiteIdentifier" -devices ``` Returns information about devices at site with site identifier "MySiteidentifier" ## PARAMETERS ### -datastoreClusters When selected, will return all datastore clusters at the specified site. ```yaml Type: SwitchParameter Parameter Sets: datastoreClusters Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -datastores When selected, will return all datastores at the specified site. ```yaml Type: SwitchParameter Parameter Sets: datastores Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -devices When selected, will return all devices at the specified site. ```yaml Type: SwitchParameter Parameter Sets: devices Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -folders Return all folders at the selected site. ```yaml Type: SwitchParameter Parameter Sets: folders Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -hostClusters Return all host clusters at the selected site. ```yaml Type: SwitchParameter Parameter Sets: hostClusters Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -hostIdentifier The identifier of the host at the selected site to return information for only one host. ```yaml Type: String Parameter Sets: devices, hosts Aliases: hostId Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -hosts Return all hosts at the selected site. If a host identifier is provided, return only that host. ```yaml Type: SwitchParameter Parameter Sets: hosts Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -networks Return all networks at the selected site. ```yaml Type: SwitchParameter Parameter Sets: networks Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -resourcePools Return all resource pools at the selected site. ```yaml Type: SwitchParameter Parameter Sets: resourcePools Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -siteIdentifier The identifier of the Zerto Virtual Manager site. ```yaml Type: String Parameter Sets: folders, devices, vms, resourcePools, networks, hosts, hostClusters, datastores, datastoreClusters, siteIdentifier Aliases: siteId Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -vms Return all VMs at the selected site. ```yaml Type: SwitchParameter Parameter Sets: vms Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### 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). ## INPUTS ### None ## OUTPUTS ### System.Object ## NOTES ## RELATED LINKS [Zerto REST API Virtualization Sites End Point Documentation](http://s3.amazonaws.com/zertodownload_docs/Latest/Zerto%20Virtual%20Replication%20Zerto%20Virtual%20Manager%20%28ZVM%29%20-%20vSphere%20Online%20Help/RestfulAPIs/StatusAPIs.5.082.html#)