VMware Cloud Community
Guna17
Contributor
Contributor

VM Path Issue.

The VM path is not found while pass it to the search index. Is it correct syntax to pass the VM path to get VMref. I am trying with following ways.

1. [Stack1Vol01] test_vm01/test_vm01.vmx

2. datacentername//folder//vm

Reply
0 Kudos
2 Replies
Wh33ly
Hot Shot
Hot Shot

A bit more information would be helpful, could you explain a bit more what you're trying to do?

Reply
0 Kudos
Guna17
Contributor
Contributor

I am doing vSphere operation through API (Java).

I am using the java codes given in the sample with in vSphere SDK 5.5. When using the java classes called VMClone or SearchIndex with in it. The classes needed input as VMpath.  I given path in following specified ways.

1. [Stack1Vol01] test_vm01/test_vm01.vmx

2. datacentername//folder//vm

anyhow the api couldn't find out the path through both classes. what could be the right way to give the VMpath.

Reply
0 Kudos