NetboxPS/Functions/DCIM/RearPorts/Get-NetboxDCIMRearPort.ps1

37 lines
749 B
PowerShell
Raw Normal View History


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