- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Option lists : Morpheus API
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
Forums
Discussions
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
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-13-2023 02:03 AM
06-13-2023 02:03 AM
Option lists : Morpheus API
Hi Team,
Will it be possible to show only Linux or windows Instance in the option lists using Morpheus API instance?
Regards,
Ibrahim K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2023 03:52 AM
06-13-2023 03:52 AM
Re: Option lists : Morpheus API
If your naming policy includes the type, then yes this would be very simple to do in the translation script:
results = [];
for(let i=0; i< data.length; i++) {
// linux only
if (data[i].name.toLowerCase().includes("linux")) {
results.push({name: data[i].name, value: data[i].value});
}
}
If not it would be difficult to determine that based on the data in the built-in instances call which you can find here. Probably need to make REST request to the API.
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]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2023 04:09 AM
06-13-2023 04:09 AM
Re: Option lists : Morpheus API
Thanks Phillips. Yes we already filter based on the naming policy but I wants to know is there any other way we can use of it.