Public/Get-MoveVMDetailedInfo.ps1
|
function Get-MoveVMDetailedInfo { [CmdletBinding()] param( [Parameter()][string]$MoveSession = 'Default', [Parameter()][string]$WorkloadUUID, [Parameter()][string]$PlanUUID ) $MoveSessionConfig = Get-MoveSession $MoveSession $RestMethodSplat = @{ Uri = 'https://{0}:{1}/move/v2/plans/{2}/workloads/{3}/custom' -f $MoveSessionConfig.MoveServer, $MoveSessionConfig.MovePort, $PlanUUID, $WorkloadUUID Method = 'GET' WebSession = $MoveSessionConfig.MoveWebSession SkipCertificateCheck = $MoveSessionConfig.AllowInsecureSSL } Invoke-RestMethod @RestMethodSplat } |