I'm trying to automate the deployment of vApp Templates provided a custom name for the vApp and custom name for the contained VM. I can fairly easily deploy the template with Instantiate a vApp Template, but I can't seem to find a function/workflow to rename the VM contained within that vApp. Node that I'm not looking to rename the VM via Guest Customization, I want the vCloud VM name to be customized.
Any ideas?
If I recall well just do.
vm.name = "new name";
vm.update();
If I recall well just do.
vm.name = "new name";
vm.update();
That was almost too easy. Is there a good resource to reference for built in functions like that?
The API explorer in vCO is the place where the objects and methods are documented.
Any vCD Java SDK / REST API doc should help as well since the vCO plug-in maps closely to their functionality.
In terms of examples of code, the document tab here and some blogs including mine (vcoteam.info).
Sounds like you might also want to look at the Custom Deploy vApp workflow found on the Documents tab of this discussion... as Christophe mentions, we've got quite a bit of sample code