mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 01:42:28 +00:00
Add Get-NetboxVersion function
This commit is contained in:
parent
ea9f6c41bc
commit
17c4d9d779
2 changed files with 16 additions and 0 deletions
15
Functions/Setup/Get-NetboxVersion.ps1
Normal file
15
Functions/Setup/Get-NetboxVersion.ps1
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
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
|
||||
}
|
||||
|
|
@ -114,6 +114,7 @@
|
|||
<File Build="0" Shared="True" ReferenceFunction="Invoke-Set-NetboxUnstrustedSSL_ps1" ExportFunctions="True">Functions\Setup\Set-NetboxUnstrustedSSL.ps1</File>
|
||||
<File Build="0" Shared="True" ReferenceFunction="Invoke-Set-NetboxTimeout_ps1" ExportFunctions="True">Functions\Setup\Set-NetboxTimeout.ps1</File>
|
||||
<File Build="0" Shared="True" ReferenceFunction="Invoke-Get-NetboxTimeout_ps1" ExportFunctions="True">Functions\Setup\Get-NetboxTimeout.ps1</File>
|
||||
<File Build="0" Shared="True" ReferenceFunction="Invoke-Get-NetboxVersion_ps1" ExportFunctions="True">Functions\Setup\Get-NetboxVersion.ps1</File>
|
||||
</Files>
|
||||
<StartupScript>R:\Netbox\NetboxPS\Test-Module.ps1</StartupScript>
|
||||
</Project>
|
||||
Loading…
Add table
Reference in a new issue