CoreOps/System/Get-SDPSystemExpansion.ps1
|
<# .SYNOPSIS Retrieves the current system expansion state from the SDP. .DESCRIPTION Queries the `system/expansion` endpoint. .EXAMPLE Get-SDPSystemExpansion .NOTES Authored by J.R. Phillips (GitHub: JayAreP) .LINK https://github.com/silk-us/silk-sdp-powershell-sdk #> function Get-SDPSystemExpansion { [CmdletBinding()] param( [parameter()] [switch] $doNotResolve, [parameter()] [string] $context = 'sdpconnection' ) begin { $endpoint = "system/expansion" } process { $PSBoundParameters.Remove('doNotResolve') | Out-Null $results = Invoke-SDPRestCall -endpoint $endpoint -method GET -parameterList $PSBoundParameters -context $context -strictURI | Add-SDPTypeName -TypeName 'SDPSystemExpansion' if ($doNotResolve) { return $results } return ($results | Update-SDPRefObjects -context $context) } } |