<?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 Impossible to export VM properties in a convenient format in VMware Aria Automation Orchestrator Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490022#M3713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;I am developping a workflow to export VM properties. This workflow must be used used by API calls. The output type is "array of Properties .The problem is that the properties in the json we get with the API call (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Helvetica',sans-serif; color: #505050; background: #FAFAFA;"&gt;/catalog-service/api/consumer/requests/{idRequest}/forms/details) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;is in the format :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;{&amp;nbsp; "key": "vmName" ,"value" : {"type":"string","value" :"MyVirtualMachine"} }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The format I expected was : { "vmName" : "myVirtualMachine"}. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The size is greatly increased and it becomes far more difficult to read. If I "stringify" the json directly on vRO I get the right format. I also tried to send the stringified json as well (by changing workflow ouptut type) but it was extracted by API with "\" before each special character. The &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif; color: black;"&gt;backslashes &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;were unvisible on vRO before the API call so I cannot remove it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;I searched on the Internet but I couldn't find any satisfying solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Do you know how I can send the properties or which API call I can use to solve the problem ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2019 14:06:16 GMT</pubDate>
    <dc:creator>EleK47</dc:creator>
    <dc:date>2019-08-14T14:06:16Z</dc:date>
    <item>
      <title>Impossible to export VM properties in a convenient format</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490022#M3713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;I am developping a workflow to export VM properties. This workflow must be used used by API calls. The output type is "array of Properties .The problem is that the properties in the json we get with the API call (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Helvetica',sans-serif; color: #505050; background: #FAFAFA;"&gt;/catalog-service/api/consumer/requests/{idRequest}/forms/details) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;is in the format :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;{&amp;nbsp; "key": "vmName" ,"value" : {"type":"string","value" :"MyVirtualMachine"} }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The format I expected was : { "vmName" : "myVirtualMachine"}. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The size is greatly increased and it becomes far more difficult to read. If I "stringify" the json directly on vRO I get the right format. I also tried to send the stringified json as well (by changing workflow ouptut type) but it was extracted by API with "\" before each special character. The &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif; color: black;"&gt;backslashes &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;were unvisible on vRO before the API call so I cannot remove it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;I searched on the Internet but I couldn't find any satisfying solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Do you know how I can send the properties or which API call I can use to solve the problem ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:06:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490022#M3713</guid>
      <dc:creator>EleK47</dc:creator>
      <dc:date>2019-08-14T14:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to export VM properties in a convenient format</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490023#M3714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;EleK47&lt;/B&gt;​&lt;/P&gt;&lt;P&gt;This may help&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.vmware.com/thread/516663"&gt;Accessing Custom Properties of a VM via REST API&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:40:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490023#M3714</guid>
      <dc:creator>asajm</dc:creator>
      <dc:date>2019-08-14T14:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to export VM properties in a convenient format</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490024#M3715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I'll take a look !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:48:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490024#M3715</guid>
      <dc:creator>EleK47</dc:creator>
      <dc:date>2019-08-14T14:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to export VM properties in a convenient format</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490025#M3716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And this&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.vmware.com/en/vRealize-Automation/7.3/com.vmware.vra.programming.doc/GUID-BB64C3D7-6AC1-4BB4-B5C4-3F8BCEFD565D.html" title="https://docs.vmware.com/en/vRealize-Automation/7.3/com.vmware.vra.programming.doc/GUID-BB64C3D7-6AC1-4BB4-B5C4-3F8BCEFD565D.html"&gt;View Machine Details Example&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:59:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490025#M3716</guid>
      <dc:creator>asajm</dc:creator>
      <dc:date>2019-08-14T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to export VM properties in a convenient format</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490026#M3717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you know the format of the response all you need to do is a quick extraction and pass that on to your api call.&amp;nbsp; If you are getting back:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif;"&gt;{&amp;nbsp; "key": "vmName" ,"value" : {"type":"string","value" :"MyVirtualMachine"} }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif;"&gt;just do something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif;"&gt;var passThisValueToApi = JSON.parse(whateverVariableHoldsYourResponse).value.value;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 22:33:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Impossible-to-export-VM-properties-in-a-convenient-format/m-p/490026#M3717</guid>
      <dc:creator>qc4vmware</dc:creator>
      <dc:date>2019-08-15T22:33:52Z</dc:date>
    </item>
  </channel>
</rss>

