<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: List all Network domains using Morpheus API in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250529#M3703</link>
    <description>&lt;P&gt;Hi Suresh,&lt;BR /&gt;
If the VM is not domain-joined, it’s likely because the domain controller hasn’t been properly configured in the domain settings. Here’s a helpful documentation link that guides you through the process of configuring the domain controller in your domains:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.morpheusdata.com/en/latest/infrastructure/networks/domains.html#adding-domains" class="onebox" target="_blank" rel="noopener"&gt;https://docs.morpheusdata.com/en/latest/infrastructure/networks/domains.html#adding-domains&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Velan&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 10:02:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2024-03-01T10:02:16Z</dc:date>
    <item>
      <title>List all Network domains using Morpheus API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250527#M3701</link>
      <description>&lt;P&gt;We are trying to create dropdown to list all the network domain under the Infrastructure/Networks/Domains. We have got 4 domains including &lt;CODE style="background : #f0f1f2;"&gt;localdomain&lt;/CODE&gt;. We are able to list one domain but cannot list all the domains.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150604iC8040052C4BFFAE4/image-size/large?v=v2&amp;amp;px=2000" role="button" title="bd1dced26ffdea2f04cf02596348ed65e5b5be80.png" alt="bd1dced26ffdea2f04cf02596348ed65e5b5be80.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;API Method&lt;/STRONG&gt;&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150248i05C922BE9AF60873/image-size/large?v=v2&amp;amp;px=2000" role="button" title="ca0c2a0de1fe1016e2ec8f7fd99a2de5c5889212.png" alt="ca0c2a0de1fe1016e2ec8f7fd99a2de5c5889212.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Translation Script:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;for (var x = 0; x &amp;lt; data.length; x++) {  
  if(data[x].networkDomain['name'])
    results.push({name:data[x].networkDomain['name'], value:data[x].networkDomain['id']});
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Request Script:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;results.zoneId = input.cloud
results.siteId = input.group
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But this is displaying only one domain instead of 3 domain, so we are not sure if this is right approach. Please advise.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 06:15:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250527#M3701</guid>
      <dc:creator />
      <dc:date>2024-02-23T06:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: List all Network domains using Morpheus API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250528#M3702</link>
      <description>&lt;P&gt;Thank you, this one worked. But this is not getting added to the hostname. How can we bind this domain to the server during provision via catalog. Any example or suggestions plz.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 17:12:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250528#M3702</guid>
      <dc:creator />
      <dc:date>2024-02-23T17:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: List all Network domains using Morpheus API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250529#M3703</link>
      <description>&lt;P&gt;Hi Suresh,&lt;BR /&gt;
If the VM is not domain-joined, it’s likely because the domain controller hasn’t been properly configured in the domain settings. Here’s a helpful documentation link that guides you through the process of configuring the domain controller in your domains:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.morpheusdata.com/en/latest/infrastructure/networks/domains.html#adding-domains" class="onebox" target="_blank" rel="noopener"&gt;https://docs.morpheusdata.com/en/latest/infrastructure/networks/domains.html#adding-domains&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Velan&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 10:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250529#M3703</guid>
      <dc:creator />
      <dc:date>2024-03-01T10:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: List all Network domains using Morpheus API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250530#M3704</link>
      <description>&lt;P&gt;Do you mean its not being added to the domain?&lt;/P&gt;
&lt;P&gt;If so you need to make sure to provide the domain ID in the “networkDomain” section of the catalog. (As well as make sure the Domain in Morpheus is configured correctly)&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150301iBBC75C11693AC126/image-size/large?v=v2&amp;amp;px=2000" role="button" title="06b990cbe7e446c4d477401f4e89d7b96c2e30da.png" alt="06b990cbe7e446c4d477401f4e89d7b96c2e30da.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Or do you mean the hostname in Morpheus is not getting updated?&lt;BR /&gt;
Remember the hostname of a VM and the display name is deferent. To see the hostname (not the instance or server display name) you would need to click into the server and look at “Hostname” in the “info” section.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 22:55:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250530#M3704</guid>
      <dc:creator>tyboyd</dc:creator>
      <dc:date>2024-02-24T22:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: List all Network domains using Morpheus API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250531#M3705</link>
      <description>&lt;P&gt;Hi Suresh,&lt;BR /&gt;
If you’re looking to list all the network domains under Infrastructure/Networks/Domains, then the recommended approach is to utilize the REST option by using the API endpoint /api/networks/domains?max=-1. You can find more details about this endpoint in the API documentation here:&lt;BR /&gt;
&lt;A href="https://apidocs.morpheusdata.com/reference/getnetworkdomains" class="inline-onebox"&gt;Get all Network Domains&lt;/A&gt; with the translation script as below&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;for(var x=0;x &amp;lt; data.networkDomains.length; x++) {
 var domain = data.networkDomains[x].active
 if (domain==true){ //Only show active domains
  results.push({name: data.networkDomains[x].name,value:data.networkDomains[x].id});
  }
 }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Morpheus API option list for networks will return the network domains attached to the networks. It seems that in your environment, a network domain has been attached to one network, which is why you’re seeing only one network domain from the Morpheus API option list.&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Velan&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 06:51:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/list-all-network-domains-using-morpheus-api/m-p/7250531#M3705</guid>
      <dc:creator />
      <dc:date>2024-02-23T06:51:54Z</dc:date>
    </item>
  </channel>
</rss>

