We have used various Workflows for creating the VM instances on both On-prem and Cloud. So i think that all the instances are mapped to respective Workflows to the run the Teardown Phase task while deleting the VM through the Morpheus.
Now we planned to cleanup Workflows and also created a new workflow which will be suitable for all the conditions in our Environment.
I wanted to replace the old workflows entry from the existing VM instance which we used during provisioning with the new one which we created. So that all the Instance will follow the same teardown process while deleting the VM from the Morpheus.
I cannot able to find any API which gives the workflow ID or Workflow Name which an instance is mapped.(USED https://apidocs.morpheusdata.com/reference/getinstance) and Request you all to guide to replace the existing Workflow to new Workflow. so i can Delete the workflows in our Morpheus and will have only one workflow which will be suitable for all the conditions in our Environment.
Thanks in Advance