<?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 Create instance and assign tags in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/create-instance-and-assign-tags/m-p/7247141#M315</link>
    <description>&lt;P&gt;I have an instance type configured with inputs that are entered on the “add instance” wizard form, and used to tag the instance.  The inputs are marked “export as tag” so they are exported to VMware vCenter and assigned to the VM.&lt;/P&gt;
&lt;P&gt;If I use the API to create an instance, I would like to assign tags to the instance when it is created and have them exported to vCenter (as described above). I have added “tags”:[{}] containing name value pairs to the JSON body but they don’t get added to the instance nor do they get assigned to the VM in vCenter.&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;P&gt;“tags”:[&lt;BR /&gt;
{“name”:“tag1”,“value”:“abcd”}&lt;BR /&gt;
]&lt;/P&gt;
&lt;P&gt;The request is accepted by the API and the instance is provisioned, but the tags do not get assigned.  I am using the same instance type and the name of the tags matches the “Field Name” of the tags.   I have also tried using the name of the input as well.&lt;/P&gt;
&lt;P&gt;Have I missed something?  What am I doing wrong?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 15:23:59 GMT</pubDate>
    <dc:creator>CA1239945</dc:creator>
    <dc:date>2024-02-22T15:23:59Z</dc:date>
    <item>
      <title>Create instance and assign tags</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/create-instance-and-assign-tags/m-p/7247141#M315</link>
      <description>&lt;P&gt;I have an instance type configured with inputs that are entered on the “add instance” wizard form, and used to tag the instance.  The inputs are marked “export as tag” so they are exported to VMware vCenter and assigned to the VM.&lt;/P&gt;
&lt;P&gt;If I use the API to create an instance, I would like to assign tags to the instance when it is created and have them exported to vCenter (as described above). I have added “tags”:[{}] containing name value pairs to the JSON body but they don’t get added to the instance nor do they get assigned to the VM in vCenter.&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;P&gt;“tags”:[&lt;BR /&gt;
{“name”:“tag1”,“value”:“abcd”}&lt;BR /&gt;
]&lt;/P&gt;
&lt;P&gt;The request is accepted by the API and the instance is provisioned, but the tags do not get assigned.  I am using the same instance type and the name of the tags matches the “Field Name” of the tags.   I have also tried using the name of the input as well.&lt;/P&gt;
&lt;P&gt;Have I missed something?  What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 15:23:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/create-instance-and-assign-tags/m-p/7247141#M315</guid>
      <dc:creator>CA1239945</dc:creator>
      <dc:date>2024-02-22T15:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create instance and assign tags</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/create-instance-and-assign-tags/m-p/7247142#M316</link>
      <description>&lt;P&gt;Thanks very much for that.  It has worked. &lt;IMG src="https://emoji.discourse-cdn.com/twitter/slightly_smiling_face.png?v=12" title=":slightly_smiling_face:" class="emoji" alt=":slightly_smiling_face:" loading="lazy" width="20" height="20" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 12:48:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/create-instance-and-assign-tags/m-p/7247142#M316</guid>
      <dc:creator>CA1239945</dc:creator>
      <dc:date>2024-02-23T12:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create instance and assign tags</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/create-instance-and-assign-tags/m-p/7247143#M317</link>
      <description>&lt;P&gt;If you want to add the inputs which have &lt;EM&gt;export as tag&lt;/EM&gt; checked, the payload should look like this,&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;  "config": {
    "customOptions": {
      "tag1": "abcd"
    },
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where &lt;CODE style="background : #f0f1f2;"&gt;tag1&lt;/CODE&gt; is the Field Name of that input and &lt;CODE style="background : #f0f1f2;"&gt;abcd&lt;/CODE&gt; is the value.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 16:56:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/create-instance-and-assign-tags/m-p/7247143#M317</guid>
      <dc:creator>dgaharwar</dc:creator>
      <dc:date>2024-02-22T16:56:50Z</dc:date>
    </item>
  </channel>
</rss>

