<?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: Trigger / Execute Task / Workflow remotely (from another script) in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247581#M755</link>
    <description>&lt;P&gt;Hi, my first thought is store an API token for a service account on the master tenant inside the subtenants which need to access this automation using Cypher. A workflow in the subtenant could then run the actual VLAN creation workflow in the master tenant via this endpoint.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://apidocs.morpheusdata.com/reference/executeworkflows" class="onebox" target="_blank" rel="noopener"&gt;https://apidocs.morpheusdata.com/reference/executeworkflows&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 08:17:55 GMT</pubDate>
    <dc:creator>Ollie-Phillips</dc:creator>
    <dc:date>2023-11-07T08:17:55Z</dc:date>
    <item>
      <title>Trigger / Execute Task / Workflow remotely (from another script)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247576#M750</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a requirement where in i need to create VLAN / DVSWITCH (sdn) for clients and provide them access for the same via automation.&lt;BR /&gt;
Some of the script which are sensitive are not inside the tenant but on the ADMIN level. So i need to call them from tenant level or externally to execute the task/workflow and provide the output or so.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;
Bilal Inamdar&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 07:51:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247576#M750</guid>
      <dc:creator />
      <dc:date>2023-11-07T07:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger / Execute Task / Workflow remotely (from another script)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247577#M751</link>
      <description>&lt;P&gt;It’s not possible to share cyphers with sub-tenants. You’d need to create the cypher in each tenant that needed to run the workflow on the master.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 17:12:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247577#M751</guid>
      <dc:creator>Ollie-Phillips</dc:creator>
      <dc:date>2023-11-07T17:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger / Execute Task / Workflow remotely (from another script)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247578#M752</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for the solution but how to use in python ?&lt;/P&gt;
&lt;P&gt;pwd=Cypher(morpheus=morpheus, ssl_verify=False).get(‘secret/vmware’)&lt;/P&gt;
&lt;P&gt;I tried pwd=Cypher(morpheus=morpheus, ssl_verify=False).get(‘secret/vmware’,true) but it failed.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 07:19:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247578#M752</guid>
      <dc:creator />
      <dc:date>2023-11-24T07:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger / Execute Task / Workflow remotely (from another script)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247579#M753</link>
      <description>&lt;P&gt;Yes it is resolved because of the Github link (of morpheus)&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 11:35:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247579#M753</guid>
      <dc:creator />
      <dc:date>2023-11-24T11:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger / Execute Task / Workflow remotely (from another script)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247580#M754</link>
      <description>&lt;P&gt;Sorry, I am confused. Is it resolved?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 11:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247580#M754</guid>
      <dc:creator />
      <dc:date>2023-11-24T11:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger / Execute Task / Workflow remotely (from another script)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247581#M755</link>
      <description>&lt;P&gt;Hi, my first thought is store an API token for a service account on the master tenant inside the subtenants which need to access this automation using Cypher. A workflow in the subtenant could then run the actual VLAN creation workflow in the master tenant via this endpoint.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://apidocs.morpheusdata.com/reference/executeworkflows" class="onebox" target="_blank" rel="noopener"&gt;https://apidocs.morpheusdata.com/reference/executeworkflows&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 08:17:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247581#M755</guid>
      <dc:creator>Ollie-Phillips</dc:creator>
      <dc:date>2023-11-07T08:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger / Execute Task / Workflow remotely (from another script)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247582#M756</link>
      <description>&lt;P&gt;imported cypher?&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;from morpheuscypher import Cypher
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;additional packages: &lt;A href="https://d.pr/i/0XHnde" class="inline-onebox"&gt;Screen Shot 2023-11-24 at 10.06.27.png - Droplr&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 10:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247582#M756</guid>
      <dc:creator />
      <dc:date>2023-11-24T10:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger / Execute Task / Workflow remotely (from another script)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247583#M757</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Yes both entries are already there but the provided entries doesn’t work in python script.&lt;/P&gt;
&lt;P&gt;I resolved this by checking the github issues for cypher and also this solution is mentioned in youtube minutes for cypher.&lt;/P&gt;
&lt;ASIDE class="onebox githubissue" data-onebox-src="https://github.com/tryfan/python-morpheus-cypher/issues/4"&gt;
  &lt;HEADER class="source"&gt;

      &lt;A href="https://github.com/tryfan/python-morpheus-cypher/issues/4" target="_blank" rel="noopener nofollow ugc"&gt;github.com/tryfan/python-morpheus-cypher&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    &lt;DIV class="github-row"&gt;
  &lt;DIV class="github-icon-container" title="Issue"&gt;
	  &lt;SVG width="60" height="60" class="github-icon" viewbox="0 0 14 16" aria-hidden="true"&gt;&lt;PATH fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"&gt;&lt;/PATH&gt;&lt;/SVG&gt;
  &lt;/DIV&gt;

  &lt;DIV class="github-info-container"&gt;
    &lt;H4&gt;
      &lt;A href="https://github.com/tryfan/python-morpheus-cypher/issues/4" target="_blank" rel="noopener nofollow ugc"&gt;option to set flag true to be used in subtenant&lt;/A&gt;
    &lt;/H4&gt;

    &lt;DIV class="github-info"&gt;
      &lt;DIV class="date"&gt;
        opened &lt;SPAN class="discourse-local-date" data-format="ll" data-date="2021-10-26" data-time="15:16:55" data-timezone="UTC"&gt;03:16PM - 26 Oct 21 UTC&lt;/SPAN&gt;
      &lt;/DIV&gt;

        &lt;DIV class="date"&gt;
          closed &lt;SPAN class="discourse-local-date" data-format="ll" data-date="2021-10-27" data-time="13:21:15" data-timezone="UTC"&gt;01:21PM - 27 Oct 21 UTC&lt;/SPAN&gt;
        &lt;/DIV&gt;

      &lt;DIV class="user"&gt;
        &lt;span class="lia-inline-image-display-wrapper" image-alt="cuxtud"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149416i376F83294A8432C4/image-size/large?v=v2&amp;amp;px=2000" role="button" title="0e23769b8005ad68e204fed6caecb2a9f82f73f4.png" alt="0e23769b8005ad68e204fed6caecb2a9f82f73f4.png" /&gt;&lt;/span&gt;
      &lt;/DIV&gt;
    &lt;/DIV&gt;

    &lt;DIV class="labels"&gt;
    &lt;/DIV&gt;
  &lt;/DIV&gt;
&lt;/DIV&gt;

  &lt;DIV class="github-row"&gt;
    &lt;P class="github-body-container"&gt;&lt;A href="https://d.pr/i/5z1eUj" target="_blank"&gt;https://d.pr/i/5z1eUj&lt;/A&gt; by adding the true flag the cypher can be used with tasks &lt;SPAN class="show-more-container"&gt;&lt;A href="https://community.hpe.com/" rel="noopener" class="show-more"&gt;…&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="excerpt hidden"&gt;whih are attached to workflow used in subtenants.&lt;/SPAN&gt;&lt;/P&gt;
  &lt;/DIV&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;BLOCKQUOTE&gt;
&lt;P&gt;Use &lt;CODE style="background : #f0f1f2;"&gt;&amp;lt;%=cypher.read('secret/myuserpassword')%&amp;gt;&lt;/CODE&gt; as a command argument within your Morpheus task. Then within your Python code use &lt;CODE style="background : #f0f1f2;"&gt;cypher = sys.argv[1]&lt;/CODE&gt; which will have the value. It will call/use the &lt;STRONG&gt;secret/myuserpassword&lt;/STRONG&gt; Cypher stored in the master tenant&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 24 Nov 2023 11:09:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247583#M757</guid>
      <dc:creator />
      <dc:date>2023-11-24T11:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger / Execute Task / Workflow remotely (from another script)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247584#M758</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Thanks for link will check that&lt;/LI&gt;
&lt;LI&gt;I haven’t had success in Sharing Cypher between master tenant and subtenant. Also i am unable to understand what you said. Please can you explain again the cypher thing.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Initially the script is working fine in Master tenant. Also necessary VMWARE creds are stored in master tenant cypher. Now when i share the workflow with subtenant i get cypher error. Which i understand. But how exactly i can secure plus make this workable ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 08:45:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247584#M758</guid>
      <dc:creator />
      <dc:date>2023-11-07T08:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger / Execute Task / Workflow remotely (from another script)</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247585#M759</link>
      <description>&lt;P&gt;Have you tried this. You can reference the original owner of a workflow so that keys can be used in a subtenant. Example &lt;CODE style="background : #f0f1f2;"&gt;PASSWORD=&amp;lt;%=cypher.read('secret/myuserpassword')%&amp;gt;&lt;/CODE&gt; could be changed to &lt;CODE style="background : #f0f1f2;"&gt;PASSWORD=&amp;lt;%=cypher.read('secret/myuserpassword',true)%&amp;gt;&lt;/CODE&gt; within a library or a workflow and the true means OWNER true. This will keep that key in the master tenants cypher store.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 13:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-execute-task-workflow-remotely-from-another-script/m-p/7247585#M759</guid>
      <dc:creator>rbmorph</dc:creator>
      <dc:date>2023-11-17T13:04:37Z</dc:date>
    </item>
  </channel>
</rss>

