NetboxPS/Functions/DCIM/FrontPorts/Get-NetboxDCIMFrontPort.ps1
2023-03-13 14:17:41 +00:00

37 lines
No EOL
751 B
PowerShell

function Get-NetboxDCIMFrontPort
{
[CmdletBinding()]
[OutputType([pscustomobject])]
param
(
[uint16]$Limit,
[uint16]$Offset,
[Parameter(ValueFromPipelineByPropertyName = $true)]
[uint16]$Id,
[uint16]$Name,
[string]$Device,
[uint16]$Device_Id,
[uint16]$Type,
[switch]$Raw
)
process
{
$Segments = [System.Collections.ArrayList]::new(@('dcim', 'front-ports'))
$URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
InvokeNetboxRequest -URI $URI -Raw:$Raw
}
}