<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Getting started with plugin development using data from Morpheus in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/getting-started-with-plugin-development-using-data-from-morpheus/m-p/7250181#M3355</link>
    <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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…&lt;/P&gt;
&lt;P&gt;Things that I’m trying to obtain include:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;List of instances within the current tenant&lt;/LI&gt;
&lt;LI&gt;Details relating to a specific instance (eg plan, volumes, IP addresses)&lt;/LI&gt;
&lt;LI&gt;Details of the current logged-in user &amp;amp; their tenant&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Any pointers or examples would be very much appreciated!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2025 08:59:14 GMT</pubDate>
    <dc:creator>mphe</dc:creator>
    <dc:date>2025-03-13T08:59:14Z</dc:date>
    <item>
      <title>Getting started with plugin development using data from Morpheus</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/getting-started-with-plugin-development-using-data-from-morpheus/m-p/7250181#M3355</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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…&lt;/P&gt;
&lt;P&gt;Things that I’m trying to obtain include:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;List of instances within the current tenant&lt;/LI&gt;
&lt;LI&gt;Details relating to a specific instance (eg plan, volumes, IP addresses)&lt;/LI&gt;
&lt;LI&gt;Details of the current logged-in user &amp;amp; their tenant&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Any pointers or examples would be very much appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 08:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/getting-started-with-plugin-development-using-data-from-morpheus/m-p/7250181#M3355</guid>
      <dc:creator>mphe</dc:creator>
      <dc:date>2025-03-13T08:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with plugin development using data from Morpheus</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/getting-started-with-plugin-development-using-data-from-morpheus/m-p/7250182#M3356</link>
      <description>&lt;P&gt;I think you need to create a dataset which can be targeted by an option list, and I &lt;STRONG&gt;think&lt;/STRONG&gt; the example below may be a good starting point. In it, the dataset is being created using the Morpheus API to list networks.&lt;/P&gt;
&lt;ASIDE class="onebox githubblob" data-onebox-src="https://github.com/gomorpheus/morpheus-plugin-dataset-examples/blob/main/src/main/groovy/com/morpheusdata/datasets/PluginApiDatasetProvider.groovy"&gt;
  &lt;HEADER class="source"&gt;

      &lt;A href="https://github.com/gomorpheus/morpheus-plugin-dataset-examples/blob/main/src/main/groovy/com/morpheusdata/datasets/PluginApiDatasetProvider.groovy" target="_blank" rel="noopener"&gt;github.com/gomorpheus/morpheus-plugin-dataset-examples&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    &lt;H4&gt;&lt;A href="https://github.com/gomorpheus/morpheus-plugin-dataset-examples/blob/main/src/main/groovy/com/morpheusdata/datasets/PluginApiDatasetProvider.groovy" target="_blank" rel="noopener"&gt;src/main/groovy/com/morpheusdata/datasets/PluginApiDatasetProvider.groovy&lt;/A&gt;&lt;/H4&gt;

&lt;DIV class="git-blob-info"&gt;
  &lt;A href="https://github.com/gomorpheus/morpheus-plugin-dataset-examples/blob/main/src/main/groovy/com/morpheusdata/datasets/PluginApiDatasetProvider.groovy" rel="noopener"&gt;&lt;CODE style="background : #f0f1f2;"&gt;main&lt;/CODE&gt;&lt;/A&gt;
&lt;/DIV&gt;


      &lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-groovy"&gt;package com.morpheusdata.datasets

import com.morpheusdata.core.MorpheusContext
import com.morpheusdata.core.Plugin
import com.morpheusdata.core.data.DataQuery
import com.morpheusdata.core.data.DatasetInfo
import com.morpheusdata.core.data.DatasetQuery
import com.morpheusdata.core.providers.AbstractDatasetProvider
import com.morpheusdata.model.Network
import io.reactivex.rxjava3.core.Observable
import groovy.util.logging.Slf4j

@Slf4j
class PluginApiDatasetProvider extends AbstractDatasetProvider&amp;lt;Network, Long&amp;gt; {

	public static final providerName = 'Plugin API Dataset Provider'
	public static final providerNamespace = 'example'
	public static final providerKey = 'pluginApiDatasetExample'
	public static final providerDescription = 'A list of networks retrieved from the Morpheus plugin API'

&lt;/CODE&gt;&lt;/PRE&gt;



  This file has been truncated. &lt;A href="https://github.com/gomorpheus/morpheus-plugin-dataset-examples/blob/main/src/main/groovy/com/morpheusdata/datasets/PluginApiDatasetProvider.groovy" target="_blank" rel="noopener"&gt;show original&lt;/A&gt;

  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;</description>
      <pubDate>Thu, 13 Mar 2025 09:28:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/getting-started-with-plugin-development-using-data-from-morpheus/m-p/7250182#M3356</guid>
      <dc:creator>Ollie-Phillips</dc:creator>
      <dc:date>2025-03-13T09:28:44Z</dc:date>
    </item>
  </channel>
</rss>

