HPE Morpheus VM Essentials
1835249 Members
2270 Online
110078 Solutions
New Discussion

VME Manager API/Scripting Capabilities

 
Craig_Manson
Visitor

VME Manager API/Scripting Capabilities

Does the VM Essentials Manager provide an API or similar capability?

We would love to have some automation scripts triggered externally to perform tasks such as putting a Host into maintenance mode / migrating all the VMs off before running an update/upgrade on a host.   Take a snapshot of a guest before running a script on the guest.  Query the manager for all active snapshots so we can name and shame people who forget to remove snapshots in a timely manner.

1 REPLY 1
Arnout_Verbeken
HPE Pro

Re: VME Manager API/Scripting Capabilities

Hello,

It certainly provides an API that you can access in multiple ways.  Note that below items are used in Morpheus Enterprise, but are also available in VME.  However only the items relevant for VME will work of course.

Take a look at https://apidocs.morpheusdata.com/reference/listactivity for the full list of API endpoints.  It supports live calling if your environment is reachable.
It has syntaxes for a lot of different languages and implementations.

You can also build a full Postman collection yourself by using the YAML of the OpenAPI spec on https://github.com/HewlettPackard/morpheus-openapi
Use redcoly CLI to compress the API (since it's otherwise too large).

I myself am a big fan of the "morpheus-cli": a shell where you can just type what you want.  You can compare it a little bit with Powershell.

Install Guide: https://clidocs.morpheusdata.com/en/8.0.7/CLI-Manual.html

Be sure to check:
Getting Started: https://github.com/gomorpheus/morpheus-cli/wiki/Getting-Started
Managing Instances: https://github.com/gomorpheus/morpheus-cli/wiki/Managing-Instances


For additional tips on using Morpheus CLI, visit https://github.com/gomorpheus/morpheus-cli/wiki/Getting-Started

 

To learn more about the Morpheus API, visit https://apidocs.morpheusdata.com



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo