VMware {code} Community
jherry
Contributor
Contributor

powerOn through the SDK Java

How do you call the powerOn service when using the JAVA SDK?

Note: the JAVA SDK forum is not writable for me

Tags (2)
0 Kudos
4 Replies
jherry
Contributor
Contributor

I'm doing this:

Vapp.powerOn(myClient, myVMRef);

But it makes a POST to /api/v1.0/vdc//power/action/powerOn

What's wrong?

0 Kudos
rkamal
VMware Employee
VMware Employee

Hi,

This has been identified as a bug and will be fixed in the next release.

You should be able to power on like this

Vapp vm = Vapp.getVappByReference(client, vmRef);

vm.powerOn();

Regards,

Rajesh Kamal.

0 Kudos
heyitspablo
VMware Employee
VMware Employee

Hey guys just wanted to let you know we have a shiny new forum dedicated to all things Java - sample codes, and best of all it is monitored by the team that wrote it http://communities.vmware.com/community/developer/forums/vcloudsdkjava

Regards,

Pablo Roesch

Keep up with latest info on vSphere PowerCLI http://blogs.vmware.com/vipowershell - Follow me on Twitter @heyitspablo
jherry
Contributor
Contributor

This forum is read-only for me Smiley Sad

0 Kudos