2023-03-17 19:27:55 +00:00
|
|
|
|
function Get-NetboxDCIMCableTermination {
|
|
|
|
|
|
[CmdletBinding()]
|
|
|
|
|
|
#region Parameters
|
|
|
|
|
|
param
|
|
|
|
|
|
(
|
|
|
|
|
|
[uint16]$Limit,
|
|
|
|
|
|
|
|
|
|
|
|
[uint16]$Offset,
|
|
|
|
|
|
|
|
|
|
|
|
[Parameter(ValueFromPipelineByPropertyName = $true)]
|
2023-07-28 16:17:23 -04:00
|
|
|
|
[uint64[]]$Id,
|
2023-03-17 19:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
[uint16]$Cable,
|
|
|
|
|
|
|
|
|
|
|
|
[string]$Cable_End,
|
|
|
|
|
|
|
|
|
|
|
|
[string]$Termination_Type,
|
|
|
|
|
|
|
2023-07-28 15:38:16 -04:00
|
|
|
|
[uint64]$Termination_ID,
|
2023-03-17 19:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
[switch]$Raw
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
#endregion Parameters
|
|
|
|
|
|
|
|
|
|
|
|
process {
|
|
|
|
|
|
$Segments = [System.Collections.ArrayList]::new(@('dcim', 'cable-terminations'))
|
|
|
|
|
|
|
|
|
|
|
|
$URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Raw'
|
|
|
|
|
|
|
|
|
|
|
|
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
|
|
|
|
|
|
|
|
|
|
|
|
InvokeNetboxRequest -URI $URI -Raw:$Raw
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|