When running the command Get-CohesityRestoreTask without any parameters the command errors out (error below) and does not display any restore task information.
To Reproduce
Run Get-CohesityRestoreTask
View error.
Expected behavior
Expecting an output with a list of restore tasks.
During this testing I currently have 3 kCloneVMs (AWS) restore tasks in the Recovery tab in the web GUI (2 success, 1 cancelled).
Actual Behavior
The command outputs this error:
Get-CohesityRestoreTask : Error converting value "kCancelled" to type 'System.Nullable`1[Cohesity.Model.RestoreObjectState+ObjectStatusEnum]'. Path '[1].restoreObjectState[0].objectStatus', line 1, position 1291.
At line:1 char:1
+ Get-CohesityRestoreTask
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-CohesityRestoreTask], JsonSerializationException
+ FullyQualifiedErrorId : Newtonsoft.Json.JsonSerializationException,Cohesity.Powershell.Cmdlets.Recovery.GetCohesityRestoreTask
🐛 Bug Report
When running the command
Get-CohesityRestoreTask
without any parameters the command errors out (error below) and does not display any restore task information.To Reproduce
Get-CohesityRestoreTask
Expected behavior
Expecting an output with a list of restore tasks.
During this testing I currently have 3 kCloneVMs (AWS) restore tasks in the Recovery tab in the web GUI (2 success, 1 cancelled).
Actual Behavior
The command outputs this error: