There are quite a few tag samples available but as I found none providing this functionality I have quickly implemented it and thought this could be useful if shared. Pre-requisite: Get the vCenter ID in the inventory (click on vCenter and copy ID property) Run the library workflow "Import vAPI metamodel" vAPI endpoint URL : https://[ID]/api Username : [user]@[domain] (I.E administrator@vsphere.local) Check all check boxes Run the "get VMs by tag" workflow. #vRO #vcentertags #Apache2.0 #vRealizeOrchestrator #vROPackage
com.vmware.cse.vcenter.tags.package
Overview This is a plug-in to handle vCenter tags. It works with leveraging vCenter 6 vAPI. vCenter 6 is the first vCenter version providing a public API for tagging
vapiresttagplugin-version-0.0.2.package
vRO package containing workflows and actions to manage vCenter tags and add/remove them from VMs. The core vAPI tagging actions were created using code from https://code.vmware.com/user/tnavarro1 and https://gist.github.com/trisharia
vro-vapi-vcenter-tagging-master.zip
Assign vCenter tags via VAPI using a single VAPI client to minimize session creation. Always creates nonexistent tags, and optionally creates nonexistent tag categories. #Orchestrator #vRO #VcenterServer #tag #vRealizeOrchestratorPlug-inSDK #tagging #MIT #JavaScript #vAPI #vRealizeOrchestrator
assignVcenterTagsWithSingleVapiClient.js
Assign a vCenter tag to a VM via VAPI #vRealizeOrchestratorPlug-inSDK #tag #vAPI #vRO #vCenter #MIT #JavaScript #VcenterServer #vRealizeOrchestrator #tagging
assignVcenterTagToVm.js
Please use it at your own risk and read comments in the script. #vROPS #customgroup #vcentertags #restapi #PowerShell #Rest #MIT #vRealizeOperationsManager
snippet.ps1