Pax8API/Public/Partner/Get-Pax8SubscriptionById.ps1
|
<#
.SYNOPSIS Get Subscription By ID .DESCRIPTION Returns the Subscription record specified by the subscriptionId OpenAPI: GET /subscriptions/{subscriptionId} Scope: Partner. Audience: https://api.pax8.com. .PARAMETER SubscriptionId path parameter 'subscriptionId'. .PARAMETER Raw Returns the unmodified API response instead of unwrapping paginated content. .EXAMPLE Get-Pax8SubscriptionById -SubscriptionId 'value' .LINK https://devx.pax8.com/openapi/partner-endpoints.json #> function Get-Pax8SubscriptionById { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string]$SubscriptionId, [switch]$Raw ) process { $boundParameters = @{} foreach ($entry in $PSBoundParameters.GetEnumerator()) { $boundParameters[$entry.Key] = $entry.Value } Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters } } |