Create Get-ZARPOBreach and required docs.

This commit is contained in:
Wes Carroll
2019-06-09 10:02:50 -04:00
parent 1c9a5bb6cb
commit b22345dc63
3 changed files with 152 additions and 0 deletions
@@ -0,0 +1,26 @@
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Get-ZARPOBreach {
[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
)
$filter = Get-ZertoApiFilter -FilterTable $PSBoundParameters
$uri = "reports/rpo-breach{0}" -f $filter
Invoke-ZARestRequest -uri $uri
}