how to set WMWARE VAPP runtime lease to NEVER EXPIRE via java api

1.1k views Asked by At

How can I set to a vapp the runtime lease to NEVER EXPIRE on deployment of the vapp?

I'm using the vmware vcloud java api

When I deploy the vapp I use this code :

_vapp.deploy(false, 1000000, false).waitForTask(0);

the second parameter affects the runtime lese, I've tried 0 or 1 but had no effect, I got an error in deployment. How can I set this to NEVER EXPIRE??

1

There are 1 answers

1
kylesm On

Setting the value to 0 will result in an infinite lease assuming your org's lease settings allow such a lease.