Skip to content

Instantly share code, notes, and snippets.

View trisharia's full-sized avatar

Trisha Navarro trisharia

View GitHub Profile
@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 / getCatalogRequestIdOfVcacVm.js
Last active March 25, 2017 01:24
Get the ID of the Catalog Request of a vRA VM
// VMware vRealize Orchestrator action sample
//
// Get the ID of the Catalog Request for a vRA IaaS VM
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// host - vCAC:VCACHost - vRA IaaS Host
// virtualMachine - vCAC:VirtualMachine - vRA IaaS VM
//
@trisharia
trisharia / getCatalogResourcesOfVraCatalogItemRequest.js
Last active March 25, 2017 01:25
Get all Catalog Resources associated with a vRA Catalog Item Request
// VMware vRealize Orchestrator action sample
//
// Gets all Catalog Resources (deployments, machines, etc.) for the given catalog item request
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// host - vCACCAFE:VCACHost - vRA CAFE Host
// request - vCACCAFE:CatalogItemRequest - vRA Catalog Item Request
//
@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 / 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 / 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 / getVcHostSystemServiceKeys.js
Created March 27, 2017 20:01
Start, stop, restart, or uninstall services of an ESXi Host in vCenter
// VMware vRealize Orchestrator action sample
//
// Get all the security profile service keys (IDs) of an ESXi Host, used as parameters for starting/stopping/restarting a service.
//
// For vRO 6.0+/vCenter 6.0+
//
// Action Inputs:
// host - VC:HostSystem - ESXi Host from which to retrieve services
// logging - boolean - If true, write verbosely to the vRO system logs
//
@trisharia
trisharia / getActionsOfVraCatalogResource.js
Last active March 28, 2017 16:11
Get the entitied actions of a vRA Catalog Resource
// VMware vRealize Orchestrator action sample
//
// Gets the entitied actions of a vRA Catalog Resource
//
// For vRO/vRA 7.0+
//
// Action Inputs:
// catalogResource - VCACCAFE:CatalogResource - catalog resource
//
// Return type: Array/VCACCAFE:CatalogResourceActions - actions of the catalog resource