Hello,
I’m trying to figure out how I could best approach reading in the network-domain values a group has access to in Morpheus, but I can’t find any logical/good way.
The goal is to create a Dynamic Input dropdown box to use in Blueprints that would provide the user with domains associate with the Group they selected to build under (as a user can be a member of more than one group via their SAML group membership information).
My issue is I can’t seem to find any good way of of this as the ‘Morpheus API’ only lists “Networks”, which we don’t map the vCenter Port Group “Network” in Morpheus to a specific Domain as there is not a 1-to-1 relationship there between Portgroup/VLAN and IPAM DNS for us.
Looking over the API docs, I also don’t see a good way to query /network/domains and be able to search for only network-domains by group permission, as it looks like any REST input option I’d make would require credentials inserted there vs calling as the currently logged in user (am I wrong there?). But, even then, that would still pull in all network-domains that have any group the user is a member of, vs just specific one(s) where that group is granted permission.
Any hints, tips, tricks, etc around this would be greatly appreciated as I can’t find a good starting point to try to build out from.
This sort of is related to the ask/question in Populate a REST API Option List accessing Morpheus REST API using the apiAccessToken for user specific options...basically build your own Morpheus API Option List as well it seems, at least in terms of using the logged in users access token for the API call to filter if somehow querying based on the selected Group being built under is not possible.
Thanks!