mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
34 lines
No EOL
746 B
PowerShell
34 lines
No EOL
746 B
PowerShell
function Get-NetboxDCIMFrontPort {
|
|
[CmdletBinding()]
|
|
[OutputType([pscustomobject])]
|
|
param
|
|
(
|
|
[uint16]$Limit,
|
|
|
|
[uint16]$Offset,
|
|
|
|
[Parameter(ValueFromPipelineByPropertyName = $true)]
|
|
[uint64]$Id,
|
|
|
|
[string]$Name,
|
|
|
|
[string]$Device,
|
|
|
|
[uint64]$Device_Id,
|
|
|
|
[string]$Type,
|
|
|
|
[switch]$Raw
|
|
)
|
|
|
|
process {
|
|
|
|
$Segments = [System.Collections.ArrayList]::new(@('dcim', 'front-ports'))
|
|
|
|
$URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
|
|
|
|
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
|
|
|
|
InvokeNetboxRequest -URI $URI -Raw:$Raw
|
|
}
|
|
} |