mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
48 lines
1.3 KiB
PowerShell
48 lines
1.3 KiB
PowerShell
|
|
<#
|
|||
|
|
.NOTES
|
|||
|
|
===========================================================================
|
|||
|
|
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2020 v5.7.172
|
|||
|
|
Created on: 3/19/2020 14:11
|
|||
|
|
Created by: Claussen
|
|||
|
|
Organization: NEOnet
|
|||
|
|
Filename: Get-NetboxVirtualizationClusterGroup.ps1
|
|||
|
|
===========================================================================
|
|||
|
|
.DESCRIPTION
|
|||
|
|
A description of the file.
|
|||
|
|
#>
|
|||
|
|
|
|||
|
|
|
|||
|
|
function Get-NetboxVirtualizationClusterGroup {
|
|||
|
|
[CmdletBinding()]
|
|||
|
|
param
|
|||
|
|
(
|
|||
|
|
[uint16]$Limit,
|
|||
|
|
|
|||
|
|
[uint16]$Offset,
|
|||
|
|
|
|||
|
|
[string]$Name,
|
|||
|
|
|
|||
|
|
[string]$Slug,
|
|||
|
|
|
|||
|
|
[switch]$Raw
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
$uriSegments = [System.Collections.ArrayList]::new(@('virtualization', 'cluster-groups'))
|
|||
|
|
|
|||
|
|
$URIParameters = @{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
foreach ($CmdletParameterName in $PSBoundParameters.Keys) {
|
|||
|
|
if ($CmdletParameterName -in $CommonParameterNames) {
|
|||
|
|
# These are common parameters and should not be appended to the URI
|
|||
|
|
Write-Debug "Skipping parameter $CmdletParameterName"
|
|||
|
|
continue
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$URIParameters[$CmdletParameterName.ToLower()] = $PSBoundParameters[$CmdletParameterName]
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$uri = BuildNewURI -Segments $uriSegments -Parameters $URIParameters
|
|||
|
|
|
|||
|
|
InvokeNetboxRequest -URI $uri -Raw:$Raw
|
|||
|
|
}
|