Question

How to start 'Test Failover' from rest api?

  • 11 August 2022
  • 0 replies
  • 32 views

 

Hi,

  I found ‘recovery_plan_jobs’  subject from rest api explorer. There is a ‘POST’ action look like allow us to ‘cleanup’ and ‘rerun’ the job. But when I’m trying to using ‘rerun’ action there was an error.  

 

Thank you

Wira

 

curl -X 'POST' \
'https://10.38.187.39:9440/api/nutanix/v3/recovery_plan_jobs/cf7c7951-cd22-43bb-93a4-578060a7d143/rerun' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-Nutanix-Client-Type: ui' \
-d '{
"should_continue_rerun_on_validation_failure": true,
"rerun_recovery_plan_job_uuid": "cf7c7951-cd22-43bb-93a4-578060a7d143"
}'
"message": "Given input is invalid. Action Type rerun specified in Recovery Plan Job spec is invalid.",

0 replies

Be the first to reply!

Reply