I’m trying to duplicate the VM reconfigure menu within a service dialog. I’m doing this since I’ll be hosting several tenants on the same vCenter using the same DVS, and I need to restrict which VLANs each can see. This logic isn’t available in the reconfigure menu.
The part I’m stuck on is instantiating a vm_reconfigure_request object. I’m assuming that once I create the request object, populate the necessary attributes, and run it the code within it will step through the request approval logic and, if successful, execute the vm_reconfigure_task.
Are there any examples of instantiating a new request object from within an inline script? Thoughts on other ways to accomplish the above goal are also welcome.