- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Azure catalog item with subnet choice
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
11-29-2023 11:47 PM
11-29-2023 11:47 PM
Azure catalog item with subnet choice
Hello,
I’m still on my “azure catalog item subject”, and i wan’t to choose subnetwork in an option list. I did the option list using a REST call toward the morpheus api and it’s fine, but i don’t understand how to integrate it onto the catalog json.
the code inside the catalog item json for network definition looks like that :
"networkInterfaces": [
{
"primaryInterface": true,
"network": {
"id": "subnet-17",
"hasPool": "",
"subnet": "subnet-17",
"idName": "snet-bel-d-fr-office-poc",
"displayName": "vnet-bel-d-fr-office - snet-bel-d-fr-office-poc"
},
my option does a call on https://morpheus/api/subnets?max=100&sort=name
with that script :
for(var x=0;x < data.subnets.length;x++) {
results.push({name: data.subnets[x].name, value: data.subnets[x].id});
}
did you ever tried that kind of thing ?
regards,
Matthieu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 12:23 AM
11-30-2023 12:23 AM
Re: Azure catalog item with subnet choice
Hi Matthieu,
I have already had a catalog for Azure built using the Morpheus API option list where I have used the “instance Network” option list.
My translation script is as follows
for (var x = 0; x < data.length; x++) {
if(data[x].group == "subnet"){
results.push({name:data[x].name,value:data[x].id});
}
}
Please find the catalog config for networkInterfaces section
"networkInterfaces": [
{
"primaryInterface": true,
"network": {
"id": "<%=customOptions.vsInstanceNetwork%>",
"hasPool": "",
"subnet": "<%=customOptions.vsInstanceNetwork%>",
},
"ipMode": "",
"showNetworkPoolLabel": false,
"showNetworkDhcpLabel": true
}
],
Thanks
Velan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 08:45 AM
12-08-2023 08:45 AM
Re: Azure catalog item with subnet choice
Hello,
I’ve just managed to try this out.
using the morpheus api option list “Instance Network”, I achieved to have the list of subnet, but only when “cloud” is fixed. If i set the cloud with “customoptions”, even when linking the fields with “dependent field”, it doesn’t work anymore.
As the “group” field of this api call is undocumented in Option Lists — Morpheus Docs documentation (morpheusdata.com), can you tell me if I have to modify something else ?
regards,
matthieu