HPE Morpheus Enterprise Software
1862952 Members
1924 Online
110446 Solutions
New Discussion

Rif.: Custom /ping endpoint via Morpheus Plugin: errore 404

 
cdtaylor
Trusted Contributor

Custom /ping endpoint via Morpheus Plugin

Hello,

Here I provide a brief example of how to use a Morpheus PluginController plugin to add a custom endpoint “/plugin/ping” to the Morpheus application.

The response of “/plugin/ping” will be the hostname and IP address of the node handling the request.

After uploading the plugin ensure your user has Full access to the plugin generated feature permission “Node UI Integration” before you can access /plugin/ping

Repo: GitHub - cpdtaylor/morpheus-node-identifier-plugin: Morpheus Plugin that provides endpoint(s) for identifying the node a web request is handled by.
5.4.6 compatible JAR: morpheus-node-identifier-plugin-0.0.1.jar.zip - Droplr

Please feel free to extend this plugin via pull requests or re-use.

4 REPLIES 4
Not applicable

Re: Custom /ping endpoint via Morpheus Plugin

Hello @ctaylor

I have created this plugin, and now how to access this endpoint through API call.

Thanks
Mahesh

Ollie-Phillips
HPE Pro

Re: Custom /ping endpoint via Morpheus Plugin

Is there an open technical request on this?



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
Ollie-Phillips
HPE Pro

Re: Custom /ping endpoint via Morpheus Plugin

Hi, the endpoint is effectively another page in the Morpheus Appliance accessible via HTTP/S. Pages in the UI are not resources you’d access via the API.

If you meant something else, please provide more information.



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
Addy25
Visitor

Rif.: Custom /ping endpoint via Morpheus Plugin: errore 404

Hello,
after running the ./gradlew shadow command, uploading the resulting .jar file, and verifying that the permissions were set to Full, I received a 404 response.
However, when I uploaded the .jar file you provided, everything worked fine.

What could be causing the 404 error with the .jar built using ./gradlew shadow?
How can I resolve this issue?
Thanks