'How can I shutdown/restart a deployment with OpsManager API?

I’d like to restart and shutdown a mongodb deployment managed by OpsManager using API. I’ve read through the documentation, but couldn’t figure how I can do so? Any ideas about it?

Any help would highly be appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source