Get vCenter vApp by Name - case insensitive

Get vCenter vApp by Name - case insensitive

If you are calling vCO workflows via the api, it is often easier to pass in a string than a complex object. When that is the case, it is good to have some sort of intermediate workflow or action that can be used to convert strings into objects. Take for example the need for a VC:VirtualApp object. The attached workflow takes a String (vAppName) and returns a VC:VirtualApp.

How to use:

Add this workflow to your workfow and bind the output to one of your workflow's attributes. You now have a VC:VirtualApp object as an Attribute that can now be passed into the remaining parts of your overall workflow. So you can now clone from this vApp, or perhaps perform power operations.

This approach is can be replicated for any types of objects. The syntax within the scriptable task will vary depending on the plug-in you are working with though. I hope you find this workflow helpful.

NOTE: Workflow provided as-is with no guarantee. Please review the code and understand what it does before using.

Attachments
Comments

many thanks !

Version history
Revision #:
1 of 1
Last update:
‎10-29-2013 09:32 AM
Updated by: