<?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 Populate instance list and get the instance id (external) in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247384#M558</link>
    <description>&lt;P&gt;We need the list of instance id (like externald in server list) to be used as backend for Cloudformation based catalog item.&lt;/P&gt;
&lt;P&gt;Using Morpheus api /instances, shows the instance name but cannot get AWS instance id like i-xxxxx. I have tried Instances Wiki but it does not provided full instance list as well as InstanceId is number. Servers and Servers Wiki not provided the result as well.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 07:10:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2023-04-21T07:10:16Z</dc:date>
    <item>
      <title>Populate instance list and get the instance id (external)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247384#M558</link>
      <description>&lt;P&gt;We need the list of instance id (like externald in server list) to be used as backend for Cloudformation based catalog item.&lt;/P&gt;
&lt;P&gt;Using Morpheus api /instances, shows the instance name but cannot get AWS instance id like i-xxxxx. I have tried Instances Wiki but it does not provided full instance list as well as InstanceId is number. Servers and Servers Wiki not provided the result as well.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 07:10:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247384#M558</guid>
      <dc:creator />
      <dc:date>2023-04-21T07:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Populate instance list and get the instance id (external)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247385#M559</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/vsenthilkarasu"&gt;@vsenthilkarasu&lt;/A&gt;  Thanks. I am now able to get the severs, but it is not listing all the servers, so I modified the query as below but it is showing error:&lt;/P&gt;
&lt;P&gt;query - &lt;A href="https://xxx/api/servers?max=2200" rel="noopener nofollow ugc"&gt;https://xxx/api/servers?max=2200&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;error: Error Making HTTP Request for &lt;A href="https://xxxx/api/servers?max=2200" rel="noopener nofollow ugc"&gt;https://xxxx/api/servers?max=2200&lt;/A&gt; - null&lt;/P&gt;
&lt;P&gt;Also If I create two variables with the same option list to select server 1 and server 2, it does not  populate data at all.&lt;/P&gt;
&lt;P&gt;N.B. max=100 seems to work.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 04:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247385#M559</guid>
      <dc:creator />
      <dc:date>2023-04-24T04:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Populate instance list and get the instance id (external)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247386#M560</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/vsenthilkarasu"&gt;@vsenthilkarasu&lt;/A&gt;  Thanks but it does not work as well, I am using typehead but it is not allowing me to select multiple servers as well -&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;H4&gt;
&lt;A name="type-aws-alb-targets-smalltypeaheadsmall-customoptionsalbtargets-1" class="anchor" href="#type-aws-alb-targets-smalltypeaheadsmall-customoptionsalbtargets-1"&gt;&lt;/A&gt;Type AWS ALB Targets &lt;SMALL&gt;(typeahead)&lt;/SMALL&gt; &amp;lt;%= customOptions.albtargets %&amp;gt;&lt;/H4&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Even when I select I server I am getting only the server name, not the external id,&lt;/P&gt;
&lt;P&gt;Here is my Morpheus API query in the Option list -&lt;/P&gt;
&lt;P&gt;if (input.cloudlist &amp;amp;&amp;amp; input.grouplist) {&lt;BR /&gt;
for (var x = 0; x &amp;lt; data.length; x++) {&lt;BR /&gt;
results.push({name:data&lt;SPAN class="chcklst-box checked fa fa-check-square-o fa-fw"&gt;&lt;/SPAN&gt;.name, value:data&lt;SPAN class="chcklst-box checked fa fa-check-square-o fa-fw"&gt;&lt;/SPAN&gt;.externalId});&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;/P&gt;
&lt;P&gt;But it returns name, not the externalId.&lt;/P&gt;
&lt;P&gt;you have mentioned as servers.externalId but it does not show any servers in typehead box at all.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 01:42:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247386#M560</guid>
      <dc:creator />
      <dc:date>2023-04-22T01:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Populate instance list and get the instance id (external)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247387#M561</link>
      <description>&lt;P&gt;Hi Ripon_Banik,&lt;/P&gt;
&lt;P&gt;REST Option List sample below.&lt;BR /&gt;
Translation Script:&lt;BR /&gt;
for(var x=0;x &amp;lt;data.servers.length; x++){&lt;BR /&gt;
results.push({name: data.servers&lt;SPAN class="chcklst-box checked fa fa-check-square-o fa-fw"&gt;&lt;/SPAN&gt;.name,value: data.servers&lt;SPAN class="chcklst-box checked fa fa-check-square-o fa-fw"&gt;&lt;/SPAN&gt;.externalId})&lt;BR /&gt;
}&lt;/P&gt;
&lt;P&gt;Request Script:&lt;BR /&gt;
results=[{name: “zoneId”,value: input.vsClouds}]&lt;/P&gt;
&lt;P&gt;for the typeahead option, please ensure “ALLOW MULTIPLE SELECTIONS” is checked.&lt;BR /&gt;
The output would be “[i-0a8e257cc829972e5, i-00e8dfe5a1498dcd4]” if you select 2 AWS servers in typeahead.&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Velan&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 05:24:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247387#M561</guid>
      <dc:creator />
      <dc:date>2023-04-22T05:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Populate instance list and get the instance id (external)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247388#M562</link>
      <description>&lt;P&gt;Hi Ripon_Banik,&lt;/P&gt;
&lt;P&gt;you can achieve it by using REST option list, please find the REST endpoint,&lt;/P&gt;
&lt;P&gt;/api/servers?name=&lt;BR /&gt;
O/P :- servers.externalId&lt;/P&gt;
&lt;P&gt;/api/instances/?name=&lt;BR /&gt;
O/P :- instances.containerDetails.server.externalId&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Velan&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 09:11:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/populate-instance-list-and-get-the-instance-id-external/m-p/7247388#M562</guid>
      <dc:creator />
      <dc:date>2023-04-21T09:11:08Z</dc:date>
    </item>
  </channel>
</rss>

