Skip to content

Instantly share code, notes, and snippets.

@trisharia
Last active March 25, 2017 00:49
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/af3f8234dae6861635ab777107957f2d to your computer and use it in GitHub Desktop.
Save trisharia/af3f8234dae6861635ab777107957f2d to your computer and use it in GitHub Desktop.
Deletes a vCenter tag category given its ID via VAPI
// VMware vRealize Orchestrator action sample
//
// This sample deletes a vCenter Tag Category given its ID
//
// For vRO/VAPI 7.0+
//
// Action Inputs:
// endpoint - VAPIEndpoint - VAPI Endpoint
// categoryId - string - ID of the vCenter Tag Category
//
// Return type: void
var client = endpoint.client();
var catService = new com_vmware_cis_tagging_category(client);
catService.delete(categoryId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment