<?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: Structured path with VMFolders in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/structured-path-with-vmfolders/m-p/7251306#M4480</link>
    <description>&lt;ASIDE class="quote group-Certified-Engineer quote-modified" data-username="cbunge" data-post="2" data-topic="1432"&gt;
cbunge:
&lt;BLOCKQUOTE&gt;
&lt;P&gt;results.push({name: data.folders[i].parent + ’ \ ’ + data.folders[i].name, value: data.folders[i].name})&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;Thanks, managed to get one level of folders with:&lt;/P&gt;
&lt;P&gt;for(i in data.folders){&lt;BR /&gt;
if (data.folders[i].parent != (null)){&lt;BR /&gt;
if (data.folders[i].parent.name != ‘/’){&lt;BR /&gt;
results.push({name: data.folders[i].parent.name + ‘/’ + data.folders[i].name, value: data.folders[i].parent.name + ‘/’ + data.folders[i].name});&lt;BR /&gt;
}&lt;BR /&gt;
else if (data.folders[i].parent.name == ‘/’){&lt;BR /&gt;
results.push({name: data.folders[i].name, value: data.folders[i].name});&lt;BR /&gt;
}&lt;BR /&gt;
}}&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/149708i0D519E1820A3E561/image-size/large?v=v2&amp;amp;px=2000" role="button" title="42f22a6f8fa13b6f5065468ba828d47ffa872870.png" alt="42f22a6f8fa13b6f5065468ba828d47ffa872870.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;But not too sure  how to link the previous parent. Is it possible?&lt;/P&gt;
&lt;P&gt;For example it should be HOOS-WIN/TEST BUILDS/JH&lt;/P&gt;
&lt;P&gt;Unfortunately we had issues with an upgrade to  6.1 and the catalog broke. So we have had to stay on the current release.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2023 14:46:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2023-09-04T14:46:41Z</dc:date>
    <item>
      <title>Structured path with VMFolders</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/structured-path-with-vmfolders/m-p/7251305#M4479</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have created an option list which queries the zone (cloud) for vm folders and it works, however the contents outputted is just flat.&lt;/P&gt;
&lt;P&gt;Is it possible with translation scripts, to include the parent path and the folder name?&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/150212i8079C387615F4281/image-size/large?v=v2&amp;amp;px=2000" role="button" title="58fa6b0f05f89c153928407a3d864eaa4d8b58d9.png" alt="58fa6b0f05f89c153928407a3d864eaa4d8b58d9.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&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/150154i8D087BD9AC494B42/image-size/large?v=v2&amp;amp;px=2000" role="button" title="a4f5a876285f35b9ea57556ae3fb7ea1ab0f4f67.png" alt="a4f5a876285f35b9ea57556ae3fb7ea1ab0f4f67.png" /&gt;&lt;/span&gt;&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/150324i48A5EBBB2987844E/image-size/large?v=v2&amp;amp;px=2000" role="button" title="faac98290a5e98a6c2debab4354f57e0544c6560.png" alt="faac98290a5e98a6c2debab4354f57e0544c6560.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;So it would show TEST BUILDS/JH or TEST BUILDS/ML&lt;/P&gt;
&lt;P&gt;We are using Ansible to take the results of the input and move the VM to the required folder. However it’s failing with subfolders as the result of the input is the end folder not with subfolder.&lt;/P&gt;
&lt;P&gt;Ie it’s trying to move the VM to JH but needs TESTBUILDS/JH as part of the path.&lt;/P&gt;
&lt;P&gt;Ideally we need the name and value to specify the parent path as well.&lt;/P&gt;
&lt;P&gt;Is this possible?&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Jon&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 19:19:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/structured-path-with-vmfolders/m-p/7251305#M4479</guid>
      <dc:creator />
      <dc:date>2023-08-31T19:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Structured path with VMFolders</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/structured-path-with-vmfolders/m-p/7251306#M4480</link>
      <description>&lt;ASIDE class="quote group-Certified-Engineer quote-modified" data-username="cbunge" data-post="2" data-topic="1432"&gt;
cbunge:
&lt;BLOCKQUOTE&gt;
&lt;P&gt;results.push({name: data.folders[i].parent + ’ \ ’ + data.folders[i].name, value: data.folders[i].name})&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;Thanks, managed to get one level of folders with:&lt;/P&gt;
&lt;P&gt;for(i in data.folders){&lt;BR /&gt;
if (data.folders[i].parent != (null)){&lt;BR /&gt;
if (data.folders[i].parent.name != ‘/’){&lt;BR /&gt;
results.push({name: data.folders[i].parent.name + ‘/’ + data.folders[i].name, value: data.folders[i].parent.name + ‘/’ + data.folders[i].name});&lt;BR /&gt;
}&lt;BR /&gt;
else if (data.folders[i].parent.name == ‘/’){&lt;BR /&gt;
results.push({name: data.folders[i].name, value: data.folders[i].name});&lt;BR /&gt;
}&lt;BR /&gt;
}}&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/149708i0D519E1820A3E561/image-size/large?v=v2&amp;amp;px=2000" role="button" title="42f22a6f8fa13b6f5065468ba828d47ffa872870.png" alt="42f22a6f8fa13b6f5065468ba828d47ffa872870.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;But not too sure  how to link the previous parent. Is it possible?&lt;/P&gt;
&lt;P&gt;For example it should be HOOS-WIN/TEST BUILDS/JH&lt;/P&gt;
&lt;P&gt;Unfortunately we had issues with an upgrade to  6.1 and the catalog broke. So we have had to stay on the current release.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 14:46:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/structured-path-with-vmfolders/m-p/7251306#M4480</guid>
      <dc:creator />
      <dc:date>2023-09-04T14:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Structured path with VMFolders</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/structured-path-with-vmfolders/m-p/7251307#M4481</link>
      <description>&lt;P&gt;I don’t have anything off hand, but in theory as long as the parent path or id comes back in the api you should be able to do something like:&lt;/P&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;results.push({name: data.folders[i].parent + ' \ ' + data.folders[i].name, value: data.folders[i].name})&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;That said, if you are using forms we have this natively now and you could just consume that:&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/150414iB3A4D54082915A25/image-size/large?v=v2&amp;amp;px=2000" role="button" title="20bc278204ababfb46685164f9804b94d0e7db3f.png" alt="20bc278204ababfb46685164f9804b94d0e7db3f.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&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/149678i4841B58DEF16CD4B/image-size/large?v=v2&amp;amp;px=2000" role="button" title="6bfa566cdae0f8f2928fc9be80a738fa9c7d9c73.png" alt="6bfa566cdae0f8f2928fc9be80a738fa9c7d9c73.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 19:38:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/structured-path-with-vmfolders/m-p/7251307#M4481</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2023-08-31T19:38:38Z</dc:date>
    </item>
  </channel>
</rss>

