Skip to content

Instantly share code, notes, and snippets.

@kclinden
Created December 11, 2018 20:03
Show Gist options
  • Save kclinden/39170c5be74b1ad4c1d5fbfe464e133f to your computer and use it in GitHub Desktop.
Save kclinden/39170c5be74b1ad4c1d5fbfe464e133f to your computer and use it in GitHub Desktop.
Associate Tag
//Inputs: vapiEndpoint [VAPI:VAPIEndpoint], object_id_type [string], object_id_id [string], tag_id [string]
//Outputs: void
var object_id = new com_vmware_vapi_std_dynamic__ID()
object_id.type = object_id_type;
object_id.id = object_id_id;
var client = vapiEndpoint.client();
var service = new com_vmware_cis_tagging_tag__association(client);
service.attach(tag_id,object_id);
client.close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment