<?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: Get vmwarefolderId List in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248248#M1422</link>
    <description>&lt;ASIDE class="quote group-Morpheus-Team" data-username="jdickson" data-post="4" data-topic="1676"&gt;
jdickson:
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;results.push({name: 'zoneId', value : data.morpheusCloud});&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;Hello James,&lt;BR /&gt;
It works perfectly fine.&lt;BR /&gt;
Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 20:26:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2024-01-23T20:26:34Z</dc:date>
    <item>
      <title>Get vmwarefolderId List</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248244#M1418</link>
      <description>&lt;P&gt;Hello team,&lt;BR /&gt;
How can i create an option list that will gather all the forlderIds of a specific vmware cloud ?&lt;/P&gt;
&lt;P&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/149736i894D23422B11A5D4/image-size/large?v=v2&amp;amp;px=2000" role="button" title="2da1cf5cc4ed09620188389b7f307fc0d92b68f7.png" alt="2da1cf5cc4ed09620188389b7f307fc0d92b68f7.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;can’t find any api into the swagger &lt;IMG src="https://emoji.discourse-cdn.com/twitter/frowning.png?v=12" title=":frowning:" class="emoji" alt=":frowning:" loading="lazy" width="20" height="20" /&gt;&lt;BR /&gt;
regards,&lt;BR /&gt;
Matthieu&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 15:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248244#M1418</guid>
      <dc:creator />
      <dc:date>2024-01-23T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get vmwarefolderId List</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248245#M1419</link>
      <description>&lt;P&gt;The API endpoint for that is documented here: &lt;A href="https://apidocs.morpheusdata.com/reference/listcloudfolders"&gt;Retrieves all resource folders for Specified Cloud&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 16:56:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248245#M1419</guid>
      <dc:creator />
      <dc:date>2024-01-23T16:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get vmwarefolderId List</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248246#M1420</link>
      <description>&lt;P&gt;Hello, thank you for your answer.&lt;/P&gt;
&lt;P&gt;I’ve managed to get it work on a specified cloud :&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/150542iA9E8E5A6ADD8B5C8/image-size/large?v=v2&amp;amp;px=2000" role="button" title="e307e7c5631aba35d67e286c8ea8f4c5f8547fa3.png" alt="e307e7c5631aba35d67e286c8ea8f4c5f8547fa3.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;with this translation script :&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;console.log('DEBUG REST OL : '+data['folders'].length)
for (var x = 0; x &amp;lt; data['folders'].length; x++) {
console.log('DEBUG REST OL : value no '+x+' = '+data['folders'][x].name)
  results.push({name:data['folders'][x].name,value:data['folders'][x].id});
  }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;do you have an idea to do it with having cloud as an input in a catalog item ?&lt;BR /&gt;
The final goal is to choose a cloud tighted to a vmware cluster in a catalog item, an then be able to choose the folder in which the VM will be created&lt;BR /&gt;
regards,&lt;/P&gt;
&lt;P&gt;Matthieu&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 17:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248246#M1420</guid>
      <dc:creator />
      <dc:date>2024-01-23T17:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get vmwarefolderId List</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248247#M1421</link>
      <description>&lt;P&gt;Hi Matthieu,&lt;/P&gt;
&lt;P&gt;For this use case you can use the option source url: &lt;CODE style="background : #f0f1f2;"&gt;/api/options/vmware/vmwareFolders?zoneId=354&lt;/CODE&gt;&lt;BR /&gt;
To use this in a catalog item, set the option list Source URL to &lt;CODE style="background : #f0f1f2;"&gt;&lt;A href="https://morpheus-dev/devops.groupe-bel.net/api/options/vmware/vmwareFolders" target="_blank"&gt;https://morpheus-dev/devops.groupe-bel.net/api/options/vmware/vmwareFolders&lt;/A&gt;&lt;/CODE&gt;&lt;BR /&gt;
Then on the folder input you can specify the &lt;CODE style="background : #f0f1f2;"&gt;zoneId&lt;/CODE&gt; query parameter as the value from your cloud input in the request script, for this example I’ve assumed the cloud input name is &lt;CODE style="background : #f0f1f2;"&gt;morpheusCloud&lt;/CODE&gt; so the request script is:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;results.push({name: 'zoneId', value : data.morpheusCloud});
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Finally, you also need to change your translation script to match the json response structure from the new url, so the translation script is:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;console.log('DEBUG REST OL : '+data['data'].length)
for (var x = 0; x &amp;lt; data['data'].length; x++) {
console.log('DEBUG REST OL : value no '+x+' = '+data['data'][x].name)
  results.push({name:data['data'][x].name,value:data['data'][x].value});
  }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That should do it, just let us know.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;
James&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 18:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248247#M1421</guid>
      <dc:creator />
      <dc:date>2024-01-23T18:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get vmwarefolderId List</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248248#M1422</link>
      <description>&lt;ASIDE class="quote group-Morpheus-Team" data-username="jdickson" data-post="4" data-topic="1676"&gt;
jdickson:
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;results.push({name: 'zoneId', value : data.morpheusCloud});&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;Hello James,&lt;BR /&gt;
It works perfectly fine.&lt;BR /&gt;
Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 20:26:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-vmwarefolderid-list/m-p/7248248#M1422</guid>
      <dc:creator />
      <dc:date>2024-01-23T20:26:34Z</dc:date>
    </item>
  </channel>
</rss>

