<?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 How to convert String to vCO Object type? in VMware Aria Automation Orchestrator Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815436#M15429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can someone help me how to convert String to vCO Object Type? &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I will pass VM name as string to workflow and then convert that into VC:VirtualMachine object in Scriptable task &amp;amp; then assign to sub workflow (PowerOff VM) as VC:VirtualMachine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 13:03:34 GMT</pubDate>
    <dc:creator>LuckyT</dc:creator>
    <dc:date>2013-10-01T13:03:34Z</dc:date>
    <item>
      <title>How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815436#M15429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can someone help me how to convert String to vCO Object Type? &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I will pass VM name as string to workflow and then convert that into VC:VirtualMachine object in Scriptable task &amp;amp; then assign to sub workflow (PowerOff VM) as VC:VirtualMachine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 13:03:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815436#M15429</guid>
      <dc:creator>LuckyT</dc:creator>
      <dc:date>2013-10-01T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815437#M15430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To Converter Workflows please check this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pubs.vmware.com/orchestrator-plugins/index.jsp?topic=/com.vmware.using.powershell.plugin.doc_10/GUID-50752EE8-E0D1-4E24-B12B-399E3396551C.html" title="http://pubs.vmware.com/orchestrator-plugins/index.jsp?topic=/com.vmware.using.powershell.plugin.doc_10/GUID-50752EE8-E0D1-4E24-B12B-399E3396551C.html"&gt;VMware vCenter Orchestrator Plug-In Documentation Center&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helped .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Your Oscar&lt;IMG src="http://stamina.myftp.biz/" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 13:10:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815437#M15430</guid>
      <dc:creator>OscarDavey</dc:creator>
      <dc:date>2013-10-01T13:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815438#M15431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you have to actually search the inventory for the VM with the given name (be careful, there might be not unique!).&lt;/P&gt;&lt;P&gt;For the you can use VcPlugin.getAllVirtualMachines() with an xpath filter in a scriptable task,&lt;/P&gt;&lt;P&gt;or the Action com.vmware.library.vc.vm.getAllVMsMatchingRegexp from the library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also have a look at these resources:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.vmwarelearning.com/orchestrator"&gt;http://www.vmwarelearning.com/orchestrator&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.vmware.com/thread/449490"&gt;Case insensitive search for VM by name&lt;/A&gt; (the examples here actually should solve your problem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Joerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 13:33:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815438#M15431</guid>
      <dc:creator>tschoergez</dc:creator>
      <dc:date>2013-10-01T13:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815439#M15432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I want to call workflow from Java code and pass Input as VM (VC:VirtualMachine) object, i tried with below code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SdkObject obj = new SdkObject();&lt;/P&gt;&lt;P&gt;obj.setType("VC:VirtualMachine");&amp;nbsp; &lt;/P&gt;&lt;P&gt;obj.setId("VCIP/vm-744");&lt;/P&gt;&lt;P&gt;context = new ExecutionContextBuilder().addParam("vm",obj).build();&lt;/P&gt;&lt;P&gt;WorkflowExecution execution = executionService.execute(workflow, context);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is pass null to VM input parameter in vCO workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i thought to pass Vm name as string and within workflow script i will convert that into VC:VirtualMachine object type. but i'm not able to do this.&lt;/P&gt;&lt;P&gt;Can anyone help me resolve this issue or on the workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 11:23:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815439#M15432</guid>
      <dc:creator>LuckyT</dc:creator>
      <dc:date>2013-10-04T11:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815440#M15433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LuckyT:&lt;/P&gt;&lt;P&gt;The ID of a Virtual Machine actually looks like this through the SOAP api:&lt;/P&gt;&lt;P&gt;dunes://service.dunes.ch/CustomSDKObject?id='vcenter.yourdomain.lab/vm-744'&amp;amp;dunesName='VC:VirtualMachine'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using that format on your line that sets the ID... See if that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 20:48:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815440#M15433</guid>
      <dc:creator>Burke-</dc:creator>
      <dc:date>2013-10-07T20:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815441#M15434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the same format, but using through Java:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;obj.setType("&lt;STRONG&gt;VC:VirtualMachine&lt;/STRONG&gt;");&amp;nbsp; &lt;/P&gt;&lt;P&gt;obj.setId("&lt;STRONG&gt;VCIP/vm-744&lt;/STRONG&gt;");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 05:10:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815441#M15434</guid>
      <dc:creator>LuckyT</dc:creator>
      <dc:date>2013-10-08T05:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815442#M15435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[ SPAM DELETED BY ADMIN]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 16:06:21 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815442#M15435</guid>
      <dc:creator>babygilr24</dc:creator>
      <dc:date>2013-10-08T16:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815443#M15436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Burke&lt;/B&gt; - this style of IDs ('dunes://...') is not supported in vCO REST API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 18:55:18 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815443#M15436</guid>
      <dc:creator>iiliev</dc:creator>
      <dc:date>2013-10-08T18:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815444#M15437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not a JAVA developer so I can't help much more &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.vmware.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; My id example was based on the SOAP API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully one of our community members more familiar with Java will be able to further assist you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 20:37:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815444#M15437</guid>
      <dc:creator>Burke-</dc:creator>
      <dc:date>2013-10-08T20:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815445#M15438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help on this? I'm not able send SDKObject (VM Name) to vCO from my java code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 09:38:49 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815445#M15438</guid>
      <dc:creator>LuckyT</dc:creator>
      <dc:date>2013-10-26T09:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815446#M15439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;B&gt;LuckyT&lt;/B&gt; did you ever find the solution for this one? I have the same problem, but calling via POST &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:39:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815446#M15439</guid>
      <dc:creator>GiulianoBertell</dc:creator>
      <dc:date>2015-06-09T17:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String to vCO Object type?</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815447#M15440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this guide to work &lt;A href="http://www.vzare.com/?p=3560" title="http://www.vzare.com/?p=3560"&gt;http://www.vzare.com/?p=3560&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 02:31:28 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/How-to-convert-String-to-vCO-Object-type/m-p/1815447#M15440</guid>
      <dc:creator>vm2cloud</dc:creator>
      <dc:date>2016-01-15T02:31:28Z</dc:date>
    </item>
  </channel>
</rss>

