zohaibkhan
Contributor
Contributor

Requesting catalog item via API that requires entity type VC:VirtualMachine

Jump to solution

I have a blueprint that requires a parameter of entity type VC:VirtualMachine. I am executing this blueprint through the vRA api. I was able to manually get the reference object of the VM by setting the default on vRA and requesting the schema. 

{ "classId": "VC:VirtualMachine", "componentId": null, "href": "https://VRAHOST:443/vco/api/inventory/VC/SdkConnection...vm-863/", "id": "VCENTERHOST/vm-863", "label": "vm50", "type": "entityRefEx" }

I create this VM through a blueprint and have the request ID and resource ID. How can I find the above object through the API?

1 Solution

Accepted Solutions
hawks76
Enthusiast
Enthusiast

It might be easier to change the input type to a string, pass the vm name through the string, and the use code to find the vc:virtualmachine object in a scriptable task and then pass that to have the work done.

View solution in original post

1 Reply
hawks76
Enthusiast
Enthusiast

It might be easier to change the input type to a string, pass the vm name through the string, and the use code to find the vc:virtualmachine object in a scriptable task and then pass that to have the work done.

View solution in original post