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