mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
16 lines
408 B
PowerShell
16 lines
408 B
PowerShell
|
|
|
|||
|
|
function Get-NetboxVersion {
|
|||
|
|
[CmdletBinding()]
|
|||
|
|
param ()
|
|||
|
|
|
|||
|
|
$Segments = [System.Collections.ArrayList]::new(@('status'))
|
|||
|
|
|
|||
|
|
$URIComponents = BuildURIComponents -URISegments $Segments -ParametersDictionary @{
|
|||
|
|
'format' = 'json'
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters -SkipConnectedCheck
|
|||
|
|
|
|||
|
|
InvokeNetboxRequest -URI $URI
|
|||
|
|
}
|