- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Re: Morpheus REST options list
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 05:19 AM
06-23-2023 05:19 AM
Morpheus REST options list
Hi Team,
I am planning to use Morpheus API in the REST option list to retrieve instance name and IP.However it’s not populating any value not sure where I missed the values.
Below is the Translation Script:
for (var x = 0; x < data.length; x++) {
results.push({name:data.instances[0].id, value:data.instances[0].id});
}
- Tags:
- option-lists
- Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2023 08:47 PM
06-25-2023 08:47 PM
Re: Morpheus REST options list
Hi Velan,
Do you have any workaround on the above one?
Regards,
Ibrahim K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 08:24 PM
06-26-2023 08:24 PM
Re: Morpheus REST options list
Thanks Velan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 06:10 AM
06-26-2023 06:10 AM
Re: Morpheus REST options list
Hi Ibrahim,
As connectionInfo is an array object, could you please try the below snippet.
for(var i=0; i<data.instances.length; i++) {
results.push({name: data.instances[i].name, value: data.instances[i].connectionInfo[0].ip});
}
Thanks
Velan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 05:31 AM
06-23-2023 05:31 AM
Re: Morpheus REST options list
Thanks, Velan. Its working as expected.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 05:28 AM
06-23-2023 05:28 AM
Re: Morpheus REST options list
Hi Ibrahim,
Translation script
for (var x = 0; x < data.instances.length; x++) {
results.push({name:data.instances.name, value:data.instances.connectionInfo.ip});
}
Thanks
Velan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 05:50 AM
06-23-2023 05:50 AM
Re: Morpheus REST options list
Hi Velan,
As I checked I am able to see only the VM name. But if I changes name into IP its not showing any value.Also if I print the value its shows as null.
for (var x = 0; x < data.instances.length; x++) {
results.push({name:data.instances.connectionInfo.ip, value:data.instances.connectionInfo.ip});
}