Skip to content

Instantly share code, notes, and snippets.

View trisharia's full-sized avatar

Trisha Navarro trisharia

View GitHub Profile
@trisharia
trisharia / executeTransientRESTOperation.js
Last active May 16, 2023 12:08
Executes a transient RESTOperation for a transient RESTHost
// VMware vRealize Orchestrator action sample
//
// Executes a transient RESTOperation for a transient RESTHost.
// Performs the operation without having the operation nor the host persist in the RESTHost Inventory.
// Returns the response string and status code as named key-value pairs "responseString" and "statusCode", respectively.
//
// For vRO 7.0+
//
// Action Inputs:
// baseUrl - string - Base URL for connecting to the RESTful application
@trisharia
trisharia / createVcenterTag.js
Last active March 25, 2017 01:31
Create a vCenter tag via VAPI
// VMware vRealize Orchestrator action sample
//
// Create a vCenter tag via VAPI
// If description is empty, sets the description as the Tag name by default.
//
// For vRO/VAPI 7.0+
//
// Action Inputs:
// endpoint - VAPIEndpoint - VAPI Endpoint
// name - string - Name of the Tag
@trisharia
trisharia / createVcenterTagCategory.js
Last active March 25, 2017 01:32
Creates a vCenter Tag Category via VAPI
// VMware vRealize Orchestrator action sample
//
// Create a vCenter tag category via VAPI
// If description is empty, sets the description as the tag category name by default.
//
// For vRO/VAPI 7.0+
//
// Action Inputs:
// endpoint - VAPIEndpoint - VAPI Endpoint
// name - string - Name of the Tag Category
@trisharia
trisharia / deleteVcenterTagCategory.js
Last active March 25, 2017 00:49
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
//
@trisharia
trisharia / deleteVcenterTag.js
Last active March 25, 2017 00:56
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
//
@trisharia
trisharia / assignVcenterTagToVm.js
Last active August 7, 2018 03:41
Assign a vCenter tag to a VM via VAPI
// VMware vRealize Orchestrator action sample
//
// This sample assigns a vCenter Tag to a VM
//
// For vRO/VAPI 7.0+
//
// Action Inputs:
// endpoint - VAPIEndpoint - VAPI Endpoint
// tagId - string - ID of the vCenter Tag
// vm - VC:VirtualMachine - VM to which tag will be assigned
@trisharia
trisharia / getReservationPolicyIdOfVcacReservation.js
Last active March 25, 2017 01:28
Get the ID of the Reservation Policy of a vRA Reservation
// VMware vRealize Orchestrator action sample
//
// Get the ID of the Reservation Policy of a vRA Reservation
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// host - vCAC:VCACHost - vRA IaaS Host
// reservation - vCAC:Reservation - vRA IaaS Reservation
//
@trisharia
trisharia / getReservationOfVcacVm.js
Last active June 2, 2017 04:17
Get the Reservation of a vRA VM
// VMware vRealize Orchestrator action sample
//
// Get the Reservation of a vRA VM
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// host - vCAC:VCACHost - vRA IaaS Host
// virtualMachine - vCAC:VirtualMachine - vRA IaaS VM
//
@trisharia
trisharia / getVcacVmOfCatalogResource.js
Last active March 25, 2017 01:27
Get the VM of a vRA Catalog Resource
// VMware vRealize Orchestrator action sample
//
// Get the vRA IaaS VM of a Catalog Resource
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// host - vCAC:VCACHost - vRA CAFE Host
// catalogResource - vCACCAFE:CatalogResource - the vRA Catalog Resource
//
@trisharia
trisharia / getCatalogResourceOfVcacVm.js
Last active January 14, 2019 15:09
Get the Catalog Resource of a vRA VM
// VMware vRealize Orchestrator action sample
//
// Get the Catalog Resource of a vRA IaaS VM
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// cafeHost - vCACCAFE:VCACHost - vRA CAFE Host
// virtualMachine - vCAC:VirtualMachine - vRA IaaS VM
//