<?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 API Option list with Morpheus API URL and Parameters in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247105#M279</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to call back Morpheus API with parameters for Nutanix Prism categories which need to use in service catalog. I am not getting any data. I can get data if I call to other API without parameters.&lt;/P&gt;
&lt;P&gt;This is API URL with parameters &amp;gt; &lt;A href="https://morpheus/api/options/typeahead?optionTypeId=2258&amp;amp;zoneId=1&amp;amp;cloudId=1&amp;amp;siteId=1" rel="noopener nofollow ugc"&gt;https://morpheus/api/options/typeahead?optionTypeId=2258&amp;amp;zoneId=1&amp;amp;cloudId=1&amp;amp;siteId=1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This is json respond body.&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;
“success”: true,&lt;BR /&gt;
“data”: [&lt;BR /&gt;
{&lt;BR /&gt;
“name”: “AppTier:Default”,&lt;BR /&gt;
“value”: “AppTier:Default”&lt;BR /&gt;
},&lt;BR /&gt;
{&lt;BR /&gt;
“name”: “AppTier:Testing_App_Tier”,&lt;BR /&gt;
“value”: “AppTier:Testing_App_Tier”&lt;BR /&gt;
},&lt;BR /&gt;
{&lt;BR /&gt;
“name”: “AppType:Apache_Spark”,&lt;BR /&gt;
“value”: “AppType:Apache_Spark”&lt;BR /&gt;
}&lt;BR /&gt;
]&lt;BR /&gt;
}&lt;/P&gt;
&lt;P&gt;Here is my translation script.&lt;/P&gt;
&lt;P&gt;results = &lt;SPAN class="chcklst-box fa fa-square-o fa-fw"&gt;&lt;/SPAN&gt;;&lt;BR /&gt;
for (let i = 0; i &amp;lt; data.success.length; i++){&lt;BR /&gt;
results.push({&lt;BR /&gt;
name : data.data[i].name,&lt;BR /&gt;
value : data.data[i].value&lt;BR /&gt;
})&lt;BR /&gt;
}&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2024 16:51:14 GMT</pubDate>
    <dc:creator>AungKT</dc:creator>
    <dc:date>2024-04-17T16:51:14Z</dc:date>
    <item>
      <title>API Option list with Morpheus API URL and Parameters</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247105#M279</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to call back Morpheus API with parameters for Nutanix Prism categories which need to use in service catalog. I am not getting any data. I can get data if I call to other API without parameters.&lt;/P&gt;
&lt;P&gt;This is API URL with parameters &amp;gt; &lt;A href="https://morpheus/api/options/typeahead?optionTypeId=2258&amp;amp;zoneId=1&amp;amp;cloudId=1&amp;amp;siteId=1" rel="noopener nofollow ugc"&gt;https://morpheus/api/options/typeahead?optionTypeId=2258&amp;amp;zoneId=1&amp;amp;cloudId=1&amp;amp;siteId=1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This is json respond body.&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;
“success”: true,&lt;BR /&gt;
“data”: [&lt;BR /&gt;
{&lt;BR /&gt;
“name”: “AppTier:Default”,&lt;BR /&gt;
“value”: “AppTier:Default”&lt;BR /&gt;
},&lt;BR /&gt;
{&lt;BR /&gt;
“name”: “AppTier:Testing_App_Tier”,&lt;BR /&gt;
“value”: “AppTier:Testing_App_Tier”&lt;BR /&gt;
},&lt;BR /&gt;
{&lt;BR /&gt;
“name”: “AppType:Apache_Spark”,&lt;BR /&gt;
“value”: “AppType:Apache_Spark”&lt;BR /&gt;
}&lt;BR /&gt;
]&lt;BR /&gt;
}&lt;/P&gt;
&lt;P&gt;Here is my translation script.&lt;/P&gt;
&lt;P&gt;results = &lt;SPAN class="chcklst-box fa fa-square-o fa-fw"&gt;&lt;/SPAN&gt;;&lt;BR /&gt;
for (let i = 0; i &amp;lt; data.success.length; i++){&lt;BR /&gt;
results.push({&lt;BR /&gt;
name : data.data[i].name,&lt;BR /&gt;
value : data.data[i].value&lt;BR /&gt;
})&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 16:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247105#M279</guid>
      <dc:creator>AungKT</dc:creator>
      <dc:date>2024-04-17T16:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: API Option list with Morpheus API URL and Parameters</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247106#M280</link>
      <description>&lt;P&gt;In your translation script, instead of &lt;CODE style="background : #f0f1f2;"&gt;data.success.length&lt;/CODE&gt; will &lt;CODE style="background : #f0f1f2;"&gt;data.length&lt;/CODE&gt; get you results?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 20:45:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247106#M280</guid>
      <dc:creator>Ollie-Phillips</dc:creator>
      <dc:date>2024-04-17T20:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: API Option list with Morpheus API URL and Parameters</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247107#M281</link>
      <description>&lt;P&gt;Thank you so much, it worked.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 16:32:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247107#M281</guid>
      <dc:creator>AungKT</dc:creator>
      <dc:date>2024-04-18T16:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: API Option list with Morpheus API URL and Parameters</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247108#M282</link>
      <description>&lt;P&gt;Ah, very good catch &lt;A class="mention" href="https://community.hpe.com/u/dgaharwar"&gt;@dgaharwar&lt;/A&gt;. Double &lt;CODE style="background : #f0f1f2;"&gt;data&lt;/CODE&gt;…&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 17:50:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247108#M282</guid>
      <dc:creator>Ollie-Phillips</dc:creator>
      <dc:date>2024-04-18T17:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: API Option list with Morpheus API URL and Parameters</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247109#M283</link>
      <description>&lt;P&gt;Instead of &lt;CODE style="background : #f0f1f2;"&gt;data.success.length&lt;/CODE&gt; use &lt;CODE style="background : #f0f1f2;"&gt;data.data.length&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 13:49:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/api-option-list-with-morpheus-api-url-and-parameters/m-p/7247109#M283</guid>
      <dc:creator>dgaharwar</dc:creator>
      <dc:date>2024-04-18T13:49:42Z</dc:date>
    </item>
  </channel>
</rss>

