<?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: Option List script example for specific Azure plans in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/option-list-script-example-for-specific-azure-plans/m-p/7246936#M110</link>
    <description>&lt;P&gt;Yep so if you make a REST Option Type, set it to:&lt;BR /&gt;
&lt;A href="https://FQDN/api/service-plans?max=1000&amp;amp;includeZones=true&amp;amp;provisionTypeId=4"&gt;https://FQDN/api/service-plans?max=1000&amp;amp;includeZones=true&amp;amp;provisionTypeId=4&lt;/A&gt;  (you will have to determine the provisionTypeId for Azure)&lt;/P&gt;
&lt;P&gt;Then the translate is&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;for(var x=0;x &amp;lt; data.servicePlans.length; x++) {
  results.push({name: data.servicePlans[x].name, value:data.servicePlans[x].id});
}
&lt;/CODE&gt;&lt;/PRE&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/149629iE1345D55C14A84E1/image-size/large?v=v2&amp;amp;px=2000" role="button" title="68949d69d472d3c435309c5994bbd079c0f47935.png" alt="68949d69d472d3c435309c5994bbd079c0f47935.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;That should work!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 18:50:04 GMT</pubDate>
    <dc:creator>cbunge</dc:creator>
    <dc:date>2022-04-12T18:50:04Z</dc:date>
    <item>
      <title>Option List script example for specific Azure plans</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/option-list-script-example-for-specific-azure-plans/m-p/7246935#M109</link>
      <description>&lt;P&gt;Is there a way to extract only specific Azure plans from the Options List with REST/API?  If this is possible could you provide an example of a translation/request script?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 18:39:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/option-list-script-example-for-specific-azure-plans/m-p/7246935#M109</guid>
      <dc:creator />
      <dc:date>2022-04-12T18:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Option List script example for specific Azure plans</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/option-list-script-example-for-specific-azure-plans/m-p/7246936#M110</link>
      <description>&lt;P&gt;Yep so if you make a REST Option Type, set it to:&lt;BR /&gt;
&lt;A href="https://FQDN/api/service-plans?max=1000&amp;amp;includeZones=true&amp;amp;provisionTypeId=4"&gt;https://FQDN/api/service-plans?max=1000&amp;amp;includeZones=true&amp;amp;provisionTypeId=4&lt;/A&gt;  (you will have to determine the provisionTypeId for Azure)&lt;/P&gt;
&lt;P&gt;Then the translate is&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;for(var x=0;x &amp;lt; data.servicePlans.length; x++) {
  results.push({name: data.servicePlans[x].name, value:data.servicePlans[x].id});
}
&lt;/CODE&gt;&lt;/PRE&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/149629iE1345D55C14A84E1/image-size/large?v=v2&amp;amp;px=2000" role="button" title="68949d69d472d3c435309c5994bbd079c0f47935.png" alt="68949d69d472d3c435309c5994bbd079c0f47935.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;That should work!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 18:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/option-list-script-example-for-specific-azure-plans/m-p/7246936#M110</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-04-12T18:50:04Z</dc:date>
    </item>
  </channel>
</rss>

