Hi,
The both operations are different (and are easily confused since the names match):
- executing PowerOff from the UI is actually executing undeploy operation (powers off the VMs and releases the networking resources)
- executing PowerOff from the API is only powering off the VMs but the vApp is still deployed
If you want to achieve the same result from the API you have to execute /action/undeploy operation on the vApp.
Regards,
Todor Todorov