I'm creating REST calls to execute workflows in VRO. Let's say I want to input the network which is a VC:DistributedVirtualPortgroup object in vro. I need to pass in the sdk_object. The sdk_object has an href. My question is this.
Is there a reference or place I can browse to get all the hrefs I'll need for the different possible values that can be input? I have multiple object types that we'll input.
Better yet, is there a way to convert a string into the internal object so that I don't have to manage this mapping from the tool I'm writing to make the REST call to start the workflow?
I think it would be easier to use SDK objects providing object type and object ID instead of object href.
Object types (in your example, VC:DistributedVirtualPortgroup) are the types defined by certain vRO plug-in. You can browse the available types in your vRO instance by opening vRO API Explorer (vRO Java Client -> Tools -> API Explorer). Near the end of the tree view in the top left part are tree nodes for all deployed vRO plug-ins.
BTW, if you haven't found it already, you may want to check Burke's tutorial at https://www.vcoteam.info/articles/learn-vco/268-how-to-use-the-rest-api-to-start-a-workflow.html
Thanks for the reply. I used that as a great primer for getting started.
Are you saying I can just specify the id and type? If so, I'll still need to get there values and will follow your steps to do so if they still apply.
I set the sdk object with all three. Tell me the minimum I need and I'll use it.
Thank you. One less thing to maintain. Still need to lookup the ids. Will keep searching for a way to reflect a string into vmware type. If it doesn't exist, it would be nice to have.