mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
46 lines
1.3 KiB
PowerShell
46 lines
1.3 KiB
PowerShell
|
|
<#
|
|||
|
|
.NOTES
|
|||
|
|
===========================================================================
|
|||
|
|
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2020 v5.7.172
|
|||
|
|
Created on: 3/23/2020 12:10
|
|||
|
|
Created by: Claussen
|
|||
|
|
Organization: NEOnet
|
|||
|
|
Filename: Get-NetboxDCIMInterfaceConnection.ps1
|
|||
|
|
===========================================================================
|
|||
|
|
.DESCRIPTION
|
|||
|
|
A description of the file.
|
|||
|
|
#>
|
|||
|
|
|
|||
|
|
|
|||
|
|
function Get-NetboxDCIMInterfaceConnection {
|
|||
|
|
[CmdletBinding()]
|
|||
|
|
[OutputType([pscustomobject])]
|
|||
|
|
param
|
|||
|
|
(
|
|||
|
|
[uint16]$Limit,
|
|||
|
|
|
|||
|
|
[uint16]$Offset,
|
|||
|
|
|
|||
|
|
[uint16]$Id,
|
|||
|
|
|
|||
|
|
[object]$Connection_Status,
|
|||
|
|
|
|||
|
|
[uint16]$Site,
|
|||
|
|
|
|||
|
|
[uint16]$Device,
|
|||
|
|
|
|||
|
|
[switch]$Raw
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
if ($null -ne $Connection_Status) {
|
|||
|
|
$PSBoundParameters.Connection_Status = ValidateDCIMChoice -ProvidedValue $Connection_Status -InterfaceConnectionStatus
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$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
|
|||
|
|
}
|