Tagging Workflow

Demonstrates tagging CRUD operations
Step 1: Create a Tag category.
Step 2: Create a Tag under the category.
Step 3: Retrieve the managed object id of an existing cluster from its name.
Step 4: Assign the tag to the cluster.
Additional steps when clearData flag is set to TRUE:
Step 5: Detach the tag from the cluster.
Step 6: Delete the tag.
Step 7: Delete the tag category.
Note: the sample needs an existing cluster


This sample is a part of the VMware vSphere Automation SDK for Python

To build and run this sample, please use git to clone the entire SDK locally:
git clone https://github.com/vmware/vsphere-automation-sdk-python.git
The README.md file in the root of the Github project contains a quick start guide and instructions to build and run the samples. The SDK is open source, so the README also contains instructions on how you can contribute samples back to the SDK!

Sign in to be able to add comments.

Comments 0