HPE Morpheus Enterprise
1832505 Members
4621 Online
110043 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
Valued Contributor

Re: Custom /ping endpoint via Morpheus Plugin

Is there an open technical request on this?

Ollie-Phillips
Valued Contributor

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.

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