Create function and associated docs.

Get-ZANetworkVpgSummary
This commit is contained in:
Wes Carroll
2019-06-10 09:40:00 -04:00
parent b0763e965e
commit 2ed0169a00
3 changed files with 136 additions and 0 deletions
@@ -0,0 +1,23 @@
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Get-ZANetworkVpgSummary {
[CmdletBinding()]
param (
[Parameter(
HelpMessage = "The VPG identifier.",
Mandatory
)]
[string]$vpgIdentifier,
[Parameter(
HelpMessage = "Start date in RFC 3339 standard ('1970-01-01T00:00:00Z'). If the start date is omitted, the default start date is 7 days before the end date."
)]
[string]$startDate,
[Parameter(
HelpMessage = "End date in RFC 3339 standard ('1970-01-01T00:00:00Z'). If the end date is omitted, the default end date is the current time."
)]
[string]$endDate
)
$filter = Get-ZertoAPIFilter -filtertable $PSBoundParameters
$uri = "reports/vpg-network-summary{0}" -f $filter
Invoke-ZARestRequest -uri $uri
}