Public/Get-bConnectImage.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
Function Get-bConnectImage() { <# .Synopsis Get the image for the specified GUID. .Parameter Id Valid GUID of an image. .Outputs Image (see bConnect documentation for more details). #> Param ( [Parameter(Mandatory=$true)][string]$Id ) $_connectVersion = Get-bConnectVersion If($_connectVersion -ge "1.0") { $_body = @{ Id = $Id } return Invoke-bConnectGet -Controller "Images" -Version $_connectVersion -Data $_body } else { return $false } } |