mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-14 02:12:28 +00:00
15 lines
408 B
PowerShell
15 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
|
|
}
|