Pax8API/Public/Partner/Get-Pax8UsageSummaryLine.ps1
|
<#
.SYNOPSIS List Usage Summary Lines .DESCRIPTION Fetch a paginated list of usage lines. Default page is 0 and default size is 10. The maximum page size is 200 OpenAPI: GET /usage-summaries/{usageSummaryId}/usage-lines Scope: Partner. Audience: https://api.pax8.com. .PARAMETER UsageSummaryId The usage summary id .PARAMETER UsageDate The date usage was recorded .PARAMETER ProductId Return only usage summaries with this ```productId``` value .PARAMETER Raw Returns the unmodified API response instead of unwrapping paginated content. .EXAMPLE Get-Pax8UsageSummaryLine -UsageSummaryId '00000000-0000-0000-0000-000000000000' -UsageDate 'value' .LINK https://devx.pax8.com/openapi/partner-endpoints.json #> function Get-Pax8UsageSummaryLine { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [guid]$UsageSummaryId, [Parameter(Mandatory = $true)] [string]$UsageDate, [guid]$ProductId, [switch]$Raw ) process { $boundParameters = @{} foreach ($entry in $PSBoundParameters.GetEnumerator()) { $boundParameters[$entry.Key] = $entry.Value } Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters } } Set-Alias -Name 'Get-UsageSummaryLines' -Value 'Get-Pax8UsageSummaryLine' |