Skip to content

Instantly share code, notes, and snippets.

@trisharia
Last active March 25, 2017 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trisharia/80847f660dd045cc77949c531c13bf3c to your computer and use it in GitHub Desktop.
Save trisharia/80847f660dd045cc77949c531c13bf3c to your computer and use it in GitHub Desktop.
Deletes a vCenter tag given its ID via VAPI
// VMware vRealize Orchestrator action sample
//
// This sample deletes a vCenter Tag given its ID
//
// For vRO/VAPI 7.0+
//
// Action Inputs:
// endpoint - VAPIEndpoint - VAPI Endpoint
// tagId - string - ID of the vCenter Tag
//
// Return type: void
var tagClient = endpoint.client();
var tagService = new com_vmware_cis_tagging_tag(tagClient);
tagService.delete(tagId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment