While leveraging the SRM APIs, is there a way to find out when a Test failover or other operation completes when we run it using the Start method under Recovery?
One option that I see is the RecoveryPlanGetInfo() method, which would return something like "running" or "needsCleanup" etc.
But this would involve running the RecoveryPlanGetInfo() method at a regular interval till we see a change in the state, which isn't the most ideal way of doing it.
I want to know if this is the best way out there, or if there is a way to poll the Start() API and find out when the operation ends. Since the return value for Start() is null, I can't get anything there.