VMware Cloud Community
pkuma191
Contributor
Contributor

Getting error while run "List all tag" flow

Hi Guys,

I am able to fetch the vm tags of "vCenter" using list all tag flow. But i am not able to fetch any particular vmtag of particular VM.

can any one please suggest me how to fetch vm tag of particular vm not the vCenter??

Thanks in Advance

Prince kumar

Reply
0 Kudos
1 Reply
iiliev
VMware Employee
VMware Employee

Hi,

Check the scripting class com_vmware_cis_tagging_tag__association. It has a method list_attached_tags(object_id), which you can invoke, passing the ID of your VM as a parameter, and it will return an array with IDs of all tags attached to this particular VM.

Reply
0 Kudos