<?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: Triggering a snapshot during a workflow? in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249355#M2529</link>
    <description>&lt;P&gt;Hey &lt;A class="mention" href="https://community.hpe.com/u/malberg"&gt;@malberg&lt;/A&gt;!  The easiest way will be calling the API via a post task to call to snapshot.  Give me 2 minutes and I’ll whip something up!&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 18:11:16 GMT</pubDate>
    <dc:creator>cbunge</dc:creator>
    <dc:date>2022-04-29T18:11:16Z</dc:date>
    <item>
      <title>Triggering a snapshot during a workflow?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249353#M2527</link>
      <description>&lt;P&gt;I’m developing a provisioning workflow to run in our vmware cloud.  I want to trigger a snapshot of the VM once it’s booted.  What’s the easiest way to set up a task I can drop in the workflow?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 17:41:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249353#M2527</guid>
      <dc:creator />
      <dc:date>2022-04-29T17:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a snapshot during a workflow?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249354#M2528</link>
      <description>&lt;P&gt;That worked!  Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 19:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249354#M2528</guid>
      <dc:creator />
      <dc:date>2022-04-29T19:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a snapshot during a workflow?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249355#M2529</link>
      <description>&lt;P&gt;Hey &lt;A class="mention" href="https://community.hpe.com/u/malberg"&gt;@malberg&lt;/A&gt;!  The easiest way will be calling the API via a post task to call to snapshot.  Give me 2 minutes and I’ll whip something up!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 18:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249355#M2529</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-04-29T18:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a snapshot during a workflow?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249356#M2530</link>
      <description>&lt;P&gt;Damn… took me 6 minutes. I have failed you &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;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 18:19:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249356#M2530</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-04-29T18:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a snapshot during a workflow?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249357#M2531</link>
      <description>&lt;P&gt;So per the API docs &lt;A href="https://apidocs.morpheusdata.com/#snapshot-an-instance"&gt;here&lt;/A&gt; you can do a task like the local executed shell script below.&lt;/P&gt;
&lt;P&gt;Optionally you can send a body payload to configure a name/description as well &lt;IMG src="https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20" /&gt;&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;URL='&amp;lt;%=morpheus.applianceUrl%&amp;gt;'
INSTANCE='&amp;lt;%=instance.id%&amp;gt;'
TOKEN='&amp;lt;%=morpheus.apiAccessToken%&amp;gt;'

curl -X PUT "$URL/api/instances/$INSTANCE/snapshot" \
  -H "Authorization: BEARER $TOKEN" \
  -H "Content-Type: application/json"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Apr 2022 18:18:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249357#M2531</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-04-29T18:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a snapshot during a workflow?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249358#M2532</link>
      <description>&lt;P&gt;Followup… I need to revert to that snapshot later on in the workflow.&lt;/P&gt;
&lt;P&gt;I guess I can use &lt;EM&gt;GET $serverUrl/api/instances/:id/snapshots&lt;/EM&gt; to get the snapshot listing for the instance, then &lt;EM&gt;PUT $serverUrl/api/instances/:id/revert-snapshot/:snapshotId&lt;/EM&gt; to revert.  The list of snapshots is returned as json.  is there a best practice for parsing JSON inside a bash task?&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 17:04:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249358#M2532</guid>
      <dc:creator />
      <dc:date>2022-05-10T17:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a snapshot during a workflow?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249359#M2533</link>
      <description>&lt;P&gt;You can make the API calls in really any language.  If you are utilizing bash, probably best bet is to use jquery or something to easily manipulate JSON returns.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 19:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/triggering-a-snapshot-during-a-workflow/m-p/7249359#M2533</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-05-10T19:20:53Z</dc:date>
    </item>
  </channel>
</rss>

