Files
ZertoApiWrapper/ZertoApiWrapper/Public/Get-ZAJournalSiteHistorySummary.ps1
T
Wes Carroll 7a80131e95 Create Function and required docs
Get-ZAJournalSiteHistorySummary
2019-06-09 15:31:09 -04:00

32 lines
1.3 KiB
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Get-ZAJournalSiteHistorySummary {
[CmdletBinding()]
param (
[Parameter(
HelpMessage = "The identifier of the VPG.",
Mandatory
)]
[ValidateNotNullOrEmpty()]
[string]$vpgIdentifier,
[Parameter(
HelpMessage = "The starting date of the report, in RFC 3339 standard ('1970-01-01T00:00:00Z'). If only the end date is added, the start date by default will be the end date minus 7 days."
)]
[ValidateNotNullOrEmpty()]
[string]$startDate,
[Parameter(
HelpMessage = "The end date of the report, in RFC 3339 standard ('1970-01-01T00:00:00Z'). The default is the current time."
)]
[ValidateNotNullOrEmpty()]
[string]$endDate,
[Parameter(
HelpMessage = "The interval selected within the duration of the report. The interval can be per hour, for up to 15 days time frame or per day, for between 15 to 30 days' time frame. Submit value in Seconds"
)]
[ValidateRange(60, 2678400)]
[Int32]$interval
)
$filter = Get-ZertoApiFilter -filtertable $PSBoundParameters
$uri = "reports/site-journal-history-summary{0}" -f $filter
Invoke-ZARestRequest -uri $uri
}