VMware Cloud Community
GHUser911
Contributor
Contributor
Jump to solution

vCAC Plugin for vCO - retrieve custom properties

Hi,

I've installed the vCAC plugin in the Orchestrator and I'm trying to retrieve information from a vCAC:VirtualMachine Object.

Does anyone know how can I retrieve from this object custom properties that I've defined in vCAC?

I can only get the default properties for the object type such as display name but I would like to retrieve properties that I have created using the property dictionary in vCAC.

Also, does anyone know how can I set the properties using the vCO such as the machine name. It seems not to do anything when I'm trying to set a value.

I'm using vCO 5.1 and vCAC 5.2.

Thanks in advance,

Maxim.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
cdecanini_
VMware Employee
VMware Employee
Jump to solution

Please look at the vCAC extensibility package in the document tab. it includes the code to get the properties of the vCAC VM.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter

View solution in original post

0 Kudos
6 Replies
cdecanini_
VMware Employee
VMware Employee
Jump to solution

Please look at the vCAC extensibility package in the document tab. it includes the code to get the properties of the vCAC VM.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
dcoulter
Enthusiast
Enthusiast
Jump to solution

Hi Christophe, can you provide an example of accessing vCAC custom properties of a vCAC VM?  The only samples I see from the vCAC plug-in documentation are CRUD operations for vCAC entities (versus VMs) with no specific examples of accessing related custom property data (separate table in DB schema).  I'm also looking for a way to get the child VMs for a given vCAC host, but that's a topic for another day...

Thanks,

David

0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

I am offsite, without access to the workflows. I know I have a workflow template displaying all the custom properties in the extensibility package in the document tab.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
dcoulter
Enthusiast
Enthusiast
Jump to solution

Hi Christophe, my apologies, I was thinking the vCAC extensibility package and the plug-in were one and the same.  I've included a link below to the package:

vCloud Automation Center extensibility package

0 Kudos
GHUser911
Contributor
Contributor
Jump to solution

Hi Christophe,

Thanks you very much for the information.

Unfortunately I still can't find how can I retrieve a custom property from a vCAC VM Object.

Can you point me to the appropriate page?

Any help will be appreciated.

Maxim.

0 Kudos
dcoulter
Enthusiast
Enthusiast
Jump to solution

Hi Maxim, try the "getPropertiesFromVirtualMachine" action from the vCAC extensibility package mentioned above (supply the vCAC host and vCAC VM as inputs):

var vmCustomProps = System.getModule("com.vmware.coe.vcac").getPropertiesFromVirtualMachine(vcacHost, vcacVm);

0 Kudos