remove_vm_tag
Remove a specified NSX tag from a virtual machine to instantly alter dynamic security group membership, while preserving other tags.
Instructions
[WRITE] Remove an NSX tag from a virtual machine.
Only the exact scope/value pair is removed — other tags on the VM are preserved. Removing a tag can change dynamic security group membership immediately (groups with tag Conditions stop matching the VM). Use list_vm_tags first to confirm the exact scope and value.
Args: vm_id: VM external ID (fabric UUID, obtainable from list_vm_tags). tag_scope: Tag scope string of the tag to remove (e.g. 'env'). tag_value: Tag value string of the tag to remove (e.g. 'production'). target: Optional NSX Manager target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_id | Yes | ||
| tag_scope | Yes | ||
| tag_value | Yes | ||
| target | No |