VMware Cloud Community
NoTr3x
Contributor
Contributor

vSphere Tags

Hi,

i have to solve a problem.

My vCenter is full of tags and now it's time for an automatic deployment. So i have to read out the tags. But i only find VcTag.key. In the Logs it returned a null.

I saw from the vcoteam, the plugin, but only to set tags, my goal is to read out it and convert it to strings.

Can you give my any advice?

Thanks!

Tags (3)
0 Kudos
4 Replies
iiliev
VMware Employee
VMware Employee

Hi,

You have several options:

  • Wait until the tagging plug-in is updated to provide tag querying functionality (not sure if this is in the plug-in's roadmap)
  • Use PowerShell / PowerCLI
  • Use vAPI plug-in that ships out of the box with vRO 7.x. It contains some example tag-related workflows, like list all tags/categories or get a tag by its ID, and you can easily write your own custom code if more complex tag queries/operations are needed.
0 Kudos
Hazenet
Enthusiast
Enthusiast

I have a package for working with vSphere Tags, using the vAPI plugin (which is part of the default vRO).

Drop me a direct message here, and I can share it with you (unable to share it completely public, unfortunately)

0 Kudos
NoTr3x
Contributor
Contributor

Your message in my inbox is broken.

0 Kudos
Mnemonic
Enthusiast
Enthusiast

0 Kudos