<?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: Morpheus API Calls from Python in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249226#M2400</link>
    <description>&lt;P&gt;As a matter of fact, it is!&lt;/P&gt;
&lt;ASIDE class="onebox allowlistedgeneric" data-onebox-src="https://github.com/tryfan/pymorpheus"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://github.githubassets.com/favicons/favicon.svg" class="site-icon" width="32" height="32" /&gt;

      &lt;A href="https://github.com/tryfan/pymorpheus" target="_blank" rel="noopener"&gt;GitHub&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    &lt;DIV class="aspect-image" style="--aspect-ratio:690/345;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="caf39d71a2d41056ea473207d8fe40ec11fb791d.png"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149577iC5EC054EDB9D501A/image-size/large?v=v2&amp;amp;px=2000" role="button" title="caf39d71a2d41056ea473207d8fe40ec11fb791d.png" alt="caf39d71a2d41056ea473207d8fe40ec11fb791d.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;

&lt;H3&gt;&lt;A href="https://github.com/tryfan/pymorpheus" target="_blank" rel="noopener"&gt;GitHub - tryfan/pymorpheus&lt;/A&gt;&lt;/H3&gt;

  &lt;P&gt;Contribute to tryfan/pymorpheus development by creating an account on GitHub.&lt;/P&gt;


  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;

&lt;P&gt;It’s just a wrapper to make requests easier to deal with.  Not incredibly robust.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 22:33:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2022-04-20T22:33:09Z</dc:date>
    <item>
      <title>Morpheus API Calls from Python</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249219#M2393</link>
      <description>&lt;P&gt;I use Python to interact with Morpheus for internal and external clients and I wanted an easy way to make calls to the Morpheus API without dealing with Python &lt;CODE style="background : #f0f1f2;"&gt;requests&lt;/CODE&gt;.  Enter pymorpheus, an easy Python module to act as a wrapper to the Morpheus API.&lt;/P&gt;
&lt;P&gt;If I wanted to get a list of instances with a phrase matching “test”, it’s super easy:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;from pymorpheus import MorpheusClient
morpheus = MorpheusClient("https://yoururl", username="youruser", password="yourpass")
results = morpheus.call("get", path="instances", options=[("phrase","testing")])
print(results)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Adding json payloads to &lt;CODE style="background : #f0f1f2;"&gt;POST&lt;/CODE&gt; calls is handled within the same call as well.  You can also use a token to authenticate.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 20:59:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249219#M2393</guid>
      <dc:creator />
      <dc:date>2022-03-30T20:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus API Calls from Python</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249220#M2394</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/jwheeler"&gt;@jwheeler&lt;/A&gt; 's solution will work for user level.  If using it in a Python task in Morpheus, you can put &lt;CODE style="background : #f0f1f2;"&gt;pymorpheus&lt;/CODE&gt; into the Additional Packages box of the task.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 21:35:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249220#M2394</guid>
      <dc:creator />
      <dc:date>2022-03-30T21:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus API Calls from Python</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249221#M2395</link>
      <description>&lt;P&gt;Absolutely.  Those will be ephemeral for the duration of the task.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 13:24:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249221#M2395</guid>
      <dc:creator />
      <dc:date>2022-03-31T13:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus API Calls from Python</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249222#M2396</link>
      <description>&lt;P&gt;Thanks for sharing! Is the source available anywhere?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 20:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249222#M2396</guid>
      <dc:creator />
      <dc:date>2022-04-20T20:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus API Calls from Python</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249223#M2397</link>
      <description>&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;pip install pymorpheus&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 21:04:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249223#M2397</guid>
      <dc:creator />
      <dc:date>2022-03-30T21:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus API Calls from Python</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249224#M2398</link>
      <description>&lt;P&gt;Instead of username, password and url, can we use morpheus[‘morpheus’][‘apiAccessToken’] and morpheus[‘morpheus’][‘applianceUrl’] ?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 11:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249224#M2398</guid>
      <dc:creator />
      <dc:date>2022-03-31T11:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus API Calls from Python</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249225#M2399</link>
      <description>&lt;P&gt;How do I install pymorpheus?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 21:01:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249225#M2399</guid>
      <dc:creator />
      <dc:date>2022-03-30T21:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Morpheus API Calls from Python</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249226#M2400</link>
      <description>&lt;P&gt;As a matter of fact, it is!&lt;/P&gt;
&lt;ASIDE class="onebox allowlistedgeneric" data-onebox-src="https://github.com/tryfan/pymorpheus"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://github.githubassets.com/favicons/favicon.svg" class="site-icon" width="32" height="32" /&gt;

      &lt;A href="https://github.com/tryfan/pymorpheus" target="_blank" rel="noopener"&gt;GitHub&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    &lt;DIV class="aspect-image" style="--aspect-ratio:690/345;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="caf39d71a2d41056ea473207d8fe40ec11fb791d.png"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149577iC5EC054EDB9D501A/image-size/large?v=v2&amp;amp;px=2000" role="button" title="caf39d71a2d41056ea473207d8fe40ec11fb791d.png" alt="caf39d71a2d41056ea473207d8fe40ec11fb791d.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;

&lt;H3&gt;&lt;A href="https://github.com/tryfan/pymorpheus" target="_blank" rel="noopener"&gt;GitHub - tryfan/pymorpheus&lt;/A&gt;&lt;/H3&gt;

  &lt;P&gt;Contribute to tryfan/pymorpheus development by creating an account on GitHub.&lt;/P&gt;


  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;

&lt;P&gt;It’s just a wrapper to make requests easier to deal with.  Not incredibly robust.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 22:33:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/morpheus-api-calls-from-python/m-p/7249226#M2400</guid>
      <dc:creator />
      <dc:date>2022-04-20T22:33:09Z</dc:date>
    </item>
  </channel>
</rss>

