I’m starting out trying to create a plugin which will predominantly be used for populating option lists. I’m comfortable with Javascript but Groovy is entirely new to me, and my Java is rusty.
The sources of information for the lists will vary between external systems via API requests, and internal Morpheus information. It’s the latter that I’m struggling with, as I can’t find any simple examples of this…
Things that I’m trying to obtain include:
- List of instances within the current tenant
- Details relating to a specific instance (eg plan, volumes, IP addresses)
- Details of the current logged-in user & their tenant
I’ve been scouring the examples but have been unable to find anything that gives a simple example of option lists being populated with data from within Morpheus. I can create an option list and provide data from a fixed list or external source but can’t work out how to obtain data from Morphues itself. I was hoping to avoid using HttpApiClient to make requests back to the Morpheus REST API, since I’ve then got to deal with getting the current user’s api token.
Any pointers or examples would be very much appreciated!