Public/Get-Pax8ProductProvisioning.ps1
function Get-Pax8ProductProvisioning { [CmdletBinding()] Param( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)] [string]$id ) Process { $Product = Invoke-Pax8Request -method get -resource "products/$id/provision-details" if ($Product) { [PSCustomObject]@{ id = $id details = $Product.content } } } } |