2023-03-13 15:29:52 +00:00
|
|
|
|
|
|
|
|
|
|
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,
|
2023-03-13 15:29:52 +00:00
|
|
|
|
|
|
|
|
|
|
[string]$Device,
|
|
|
|
|
|
|
|
|
|
|
|
[uint16]$Device_Id,
|
|
|
|
|
|
|
2023-03-13 17:13:08 +00:00
|
|
|
|
[string]$Type,
|
2023-03-13 15:29:52 +00:00
|
|
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|