2021-07-21 22:22:28 +02:00
|
|
|
|
<#
|
2021-03-25 16:52:08 -04:00
|
|
|
|
.NOTES
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2020 v5.7.174
|
|
|
|
|
|
Created on: 4/28/2020 11:57
|
|
|
|
|
|
Created by: Claussen
|
|
|
|
|
|
Organization: NEOnet
|
|
|
|
|
|
Filename: Get-NetboxAPIDefinition.ps1
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
.DESCRIPTION
|
|
|
|
|
|
A description of the file.
|
|
|
|
|
|
#>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Get-NetboxAPIDefinition {
|
2021-07-21 22:22:28 +02:00
|
|
|
|
[CmdletBinding()]
|
|
|
|
|
|
param ()
|
|
|
|
|
|
|
|
|
|
|
|
#$URI = "https://netbox.neonet.org/api/docs/?format=openapi"
|
|
|
|
|
|
|
|
|
|
|
|
$Segments = [System.Collections.ArrayList]::new(@('docs'))
|
|
|
|
|
|
|
|
|
|
|
|
$URIComponents = BuildURIComponents -URISegments $Segments -ParametersDictionary @{'format' = 'openapi' }
|
|
|
|
|
|
|
|
|
|
|
|
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters -SkipConnectedCheck
|
|
|
|
|
|
|
2021-07-22 11:06:13 -04:00
|
|
|
|
InvokeNetboxRequest -URI $URI
|
2021-03-25 16:52:08 -04:00
|
|
|
|
}
|