<?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: How to use workflow API in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/how-to-use-workflow-api/m-p/7247908#M1082</link>
    <description>&lt;P&gt;Make sure you are defining the payload of which phase to run per the apidocs &lt;A href="https://apidocs.morpheusdata.com/reference/runworkflowinstance"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This for example, works for me. (Note: Operational Workflows are a provisioning phase)&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/150164iB37AA3E6F2FB2035/image-size/large?v=v2&amp;amp;px=2000" role="button" title="0c18fa03f019beb438eeedf3cd578637d13b812c.png" alt="0c18fa03f019beb438eeedf3cd578637d13b812c.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 13:08:44 GMT</pubDate>
    <dc:creator>cbunge</dc:creator>
    <dc:date>2024-01-25T13:08:44Z</dc:date>
    <item>
      <title>How to use workflow API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/how-to-use-workflow-api/m-p/7247907#M1081</link>
      <description>&lt;P&gt;I have a workflow that runs on servers. I want to call the workflow using API.&lt;BR /&gt;
If I run just the retrieve information (via PowerShell):&lt;BR /&gt;
&lt;EM&gt;Invoke-WebRequest -URI “$serverUrl/api/task-sets” -Method GET -Headers @{“Authorization”= “Bearer $accessToken”}&lt;/EM&gt; I get 200&lt;BR /&gt;
but now I want to execute the workflow.&lt;BR /&gt;
I tried&lt;BR /&gt;
&lt;EM&gt;Invoke-WebRequest -URI “$serverUrl/api/servers/27708/workflow?workflowId=108” -Method PUT -Headers @{“Authorization”= “Bearer $accessToken”}&lt;/EM&gt;&lt;BR /&gt;
and&lt;BR /&gt;
&lt;EM&gt;Invoke-WebRequest -URI “$serverUrl/api/instances/27708/workflow?workflowId=108” -Method PUT -Headers @{“Authorization”= “Bearer $accessToken”}&lt;/EM&gt;&lt;BR /&gt;
and in both cases I get the same error&lt;BR /&gt;
Invoke-WebRequest : The remote server returned an error: (404) Not Found.&lt;/P&gt;
&lt;P&gt;Can someone know why?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 12:50:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/how-to-use-workflow-api/m-p/7247907#M1081</guid>
      <dc:creator />
      <dc:date>2024-01-25T12:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use workflow API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/how-to-use-workflow-api/m-p/7247908#M1082</link>
      <description>&lt;P&gt;Make sure you are defining the payload of which phase to run per the apidocs &lt;A href="https://apidocs.morpheusdata.com/reference/runworkflowinstance"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This for example, works for me. (Note: Operational Workflows are a provisioning phase)&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/150164iB37AA3E6F2FB2035/image-size/large?v=v2&amp;amp;px=2000" role="button" title="0c18fa03f019beb438eeedf3cd578637d13b812c.png" alt="0c18fa03f019beb438eeedf3cd578637d13b812c.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 13:08:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/how-to-use-workflow-api/m-p/7247908#M1082</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2024-01-25T13:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use workflow API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/how-to-use-workflow-api/m-p/7247909#M1083</link>
      <description>&lt;P&gt;I added the taskPhase and customOptions, the error is the same.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 13:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/how-to-use-workflow-api/m-p/7247909#M1083</guid>
      <dc:creator />
      <dc:date>2024-01-25T13:40:07Z</dc:date>
    </item>
  </channel>
</rss>

