Public/EquipmentRequestedServices/Get-AspireEquipmentRequestedServices.ps1
|
<#
.SYNOPSIS Retrieves a list of equipment requested services from the Aspire API. .DESCRIPTION Uses Invoke-AspireRequest to perform a GET request to the /EquipmentRequestedServices endpoint with support for OData query parameters. .PARAMETER Filter Optional OData filter query (e.g., "Status eq 'Open'"). .PARAMETER Top Optional number of records to return (integer). .PARAMETER Skip Optional number of records to skip (integer). .PARAMETER Select Optional comma-separated list of fields to include (e.g., "ID,Name"). .PARAMETER Expand Optional comma-separated list of related entities to expand (e.g., "Equipment"). .OUTPUTS The response from the API containing the list of equipment requested services. .EXAMPLE Get-AspireEquipmentRequestedServices -Filter "Status eq 'Open'" -Top 10 -Skip 5 -Select "ID,Name" -Expand "Equipment" #> function Get-AspireEquipmentRequestedServices { [CmdletBinding()] param( [string]$Filter = $null, [int]$Top = $null, [int]$Skip = $null, [string]$Select = $null, [string]$Expand = $null ) $queryParams = @{} if ($Filter) { $queryParams['$filter'] = $Filter } if ($Top) { $queryParams['$top'] = $Top } if ($Skip) { $queryParams['$skip'] = $Skip } if ($Select) { $queryParams['$select'] = $Select } if ($Expand) { $queryParams['$expand'] = $Expand } return Invoke-AspireRequest -Method GET -Path "/EquipmentRequestedServices" -QueryParams $queryParams } |