NetboxPS/Functions/DCIM/Interfaces/Get-NetboxDCIMInterfaceConnection.ps1
2023-07-28 15:38:16 -04:00

29 lines
No EOL
680 B
PowerShell

function Get-NetboxDCIMInterfaceConnection {
[CmdletBinding()]
[OutputType([pscustomobject])]
param
(
[uint16]$Limit,
[uint16]$Offset,
[uint64]$Id,
[object]$Connection_Status,
[uint64]$Site,
[uint64]$Device,
[switch]$Raw
)
$Segments = [System.Collections.ArrayList]::new(@('dcim', 'interface-connections'))
$URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Raw'
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
InvokeNetboxRequest -URI $URI -Raw:$Raw
}