GetResult
This method gets
detailed results of the completed protection task.
Synopsis
vim.TaskInfo[] getResult( )
TaskInfo
is a data object that contains all information about a
task. For more information, see TaskInfo
in the Site
Recovery Manager API Reference Guide
.Faults
- RuntimeFault
For information about the faults that
Site Recovery Manager
throws, see Faults in Site Recovery Manager API. Example for
GetResult
List < TaskInfo > taskInfo = srmPortType.getResult(ManagedObjectReference _this); Where ManagedObjectReference _this = _protectionTaskRef; where _protectionTaskRef can be taken from: SrmServiceInstanceContent content = _srmPortType.retrieveContent(_svcRef); ManagedObjectReference _protectionRef = content.getProtection(); List < ManagedObjectReference > groups = srmPortType.listProtectionGroups(_protectionRef); _protectionGroupRef = groups.get(0); ManagedObjectReference _protectionTaskRef = srmPortType.protectVms( _protectionGroupRef, _vms);