Public/Get-SKOperationStatus.ps1
function Get-SKOperationStatus { [CmdletBinding()] param ( [Parameter( Mandatory = $true, Position = 0, ValueFromPipeline = $true)] [guid]$operationId ) Begin { $endpoint = "/operation/$operationId" } Process { $return = Invoke-SkykickAPIGeneric -endpoint $endpoint -method GET } End { return $return } } |