<?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 Making a VM managed through API in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/making-a-vm-managed-through-api/m-p/7250126#M3300</link>
    <description>&lt;P&gt;Hi, I was wondering, where is the API call hidden to make an existing VM managed through an API call?&lt;/P&gt;
&lt;P&gt;In the UI, I usually go to: Infrastructure &amp;gt; Clouds &amp;gt; “selected cloud” &amp;gt; VMs &amp;gt; +Virtual Machine &amp;gt; Linux VM.&lt;BR /&gt;
I fill in the wizard with name, description, ssh host, ssh user and ssh password.&lt;BR /&gt;
Once this is done I select the newly added VM and then go to Actions &amp;gt; Convert to Managed&lt;/P&gt;
&lt;P&gt;I am looking to write an API call for this, can this be done?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2022 10:15:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2022-04-13T10:15:02Z</dc:date>
    <item>
      <title>Making a VM managed through API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/making-a-vm-managed-through-api/m-p/7250126#M3300</link>
      <description>&lt;P&gt;Hi, I was wondering, where is the API call hidden to make an existing VM managed through an API call?&lt;/P&gt;
&lt;P&gt;In the UI, I usually go to: Infrastructure &amp;gt; Clouds &amp;gt; “selected cloud” &amp;gt; VMs &amp;gt; +Virtual Machine &amp;gt; Linux VM.&lt;BR /&gt;
I fill in the wizard with name, description, ssh host, ssh user and ssh password.&lt;BR /&gt;
Once this is done I select the newly added VM and then go to Actions &amp;gt; Convert to Managed&lt;/P&gt;
&lt;P&gt;I am looking to write an API call for this, can this be done?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 10:15:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/making-a-vm-managed-through-api/m-p/7250126#M3300</guid>
      <dc:creator />
      <dc:date>2022-04-13T10:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Making a VM managed through API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/making-a-vm-managed-through-api/m-p/7250127#M3301</link>
      <description>&lt;P&gt;Thanks Chris for pointing to the hosts section.&lt;/P&gt;
&lt;P&gt;I also needed the POST API call to add it to the system when ‘inventory instances’ is not enabled on the cloud. (Which returns the server id upon completion) I did notice that the “computeServerType” is required on this call.&lt;/P&gt;
&lt;P&gt;I used 1, which is a blank vm type. When installing the agent it seems to push the type to a correct one, example: ‘Managed Linux Server’.&lt;/P&gt;
&lt;P&gt;If I use 203 (code: vmwareVm, name: VMware Linux VM), which would be the appropriate one for this VM, the UI complains no image found.&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;curl -XPOST $IP/api/servers \
  -H "Authorization: BEARER $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "server": {
      "sshUsername": "myusername",
      "sshPassword": "mypassword",
      "sshHost": "10.5.1.1",
      "name": "test",
      "zone": {"id":3},
      "computeServerType": {"id":1},
    },
  }
' 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 11:18:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/making-a-vm-managed-through-api/m-p/7250127#M3301</guid>
      <dc:creator />
      <dc:date>2022-04-13T11:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Making a VM managed through API</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/making-a-vm-managed-through-api/m-p/7250128#M3302</link>
      <description>&lt;P&gt;Convert to managed API is documented here: &lt;A href="https://apidocs.morpheusdata.com/#convert-to-managed"&gt;https://apidocs.morpheusdata.com/#convert-to-managed&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 10:18:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/making-a-vm-managed-through-api/m-p/7250128#M3302</guid>
      <dc:creator>cdtaylor</dc:creator>
      <dc:date>2022-04-13T10:18:21Z</dc:date>
    </item>
  </channel>
</rss>

