2023-03-17 19:27:55 +00:00
|
|
|
|
function Get-NetboxDCIMCable {
|
|
|
|
|
|
[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
|
|
|
|
|
|
|
|
|
|
[string]$Label,
|
|
|
|
|
|
|
|
|
|
|
|
[string]$Termination_A_Type,
|
|
|
|
|
|
|
2023-07-28 15:38:16 -04:00
|
|
|
|
[uint64]$Termination_A_ID,
|
2023-03-17 19:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
[string]$Termination_B_Type,
|
|
|
|
|
|
|
2023-07-28 15:38:16 -04:00
|
|
|
|
[uint64]$Termination_B_ID,
|
2023-03-17 19:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
[string]$Type,
|
|
|
|
|
|
|
|
|
|
|
|
[string]$Status,
|
|
|
|
|
|
|
|
|
|
|
|
[string]$Color,
|
|
|
|
|
|
|
2023-07-28 15:38:16 -04:00
|
|
|
|
[uint64]$Device_ID,
|
2023-03-17 19:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
[string]$Device,
|
|
|
|
|
|
|
2023-07-28 15:38:16 -04:00
|
|
|
|
[uint64]$Rack_Id,
|
2023-03-17 19:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
[string]$Rack,
|
|
|
|
|
|
|
2023-07-28 15:38:16 -04:00
|
|
|
|
[uint64]$Location_ID,
|
2023-03-17 19:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
[string]$Location,
|
|
|
|
|
|
|
|
|
|
|
|
[switch]$Raw
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
#endregion Parameters
|
|
|
|
|
|
|
|
|
|
|
|
process {
|
|
|
|
|
|
$Segments = [System.Collections.ArrayList]::new(@('dcim', 'cables'))
|
|
|
|
|
|
|
|
|
|
|
|
$URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Raw'
|
|
|
|
|
|
|
|
|
|
|
|
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
|
|
|
|
|
|
|
|
|
|
|
|
InvokeNetboxRequest -URI $URI -Raw:$Raw
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|