Skip to content

Instantly share code, notes, and snippets.

View trisharia's full-sized avatar

Trisha Navarro trisharia

View GitHub Profile
@trisharia
trisharia / getCasDeploymentResources.js
Created September 12, 2019 23:41
Get all vRA/vRA Deployment Resources
// VMware vRealize Orchestrator action sample
//
// Get an array of all vRA/vRA Cloud resources for a given deployment in JSON format
// Assumes the presence of action System.getModule("com.vmware.pso.rest").executeTransientRESTOperation
// Obtain the action here: https://gist.github.com/trisharia/7b62fcdf12600511b3d7e9b635981b2c
//
// For vRA Cloud 7.0+ and vRA 8.0+
//
// Action Inputs:
// cspBaseUrl - string - Base URL for connecting to VMware Cloud Services RESTful API
@trisharia
trisharia / getCasCloudAccounts.js
Created September 12, 2019 23:37
Get all vRA/vRA Cloud Cloud Accounts
// VMware vRealize Orchestrator action sample
//
// Get an array of all vRA/vRA Cloud cloud account details in JSON format
// Assumes the presence of action System.getModule("com.vmware.pso.rest").executeTransientRESTOperation
// Obtain the action here: https://gist.github.com/trisharia/7b62fcdf12600511b3d7e9b635981b2c
//
// For vRA Cloud 7.0+ and vRA 8.0+
//
// Action Inputs:
// cspBaseUrl - string - Base URL for connecting to VMware Cloud Services RESTful API
@trisharia
trisharia / getCasCatalogSources.js
Last active September 12, 2019 23:34
Get all vRA/vRA Cloud Catalog Sources
// VMware vRealize Orchestrator action sample
//
// Get an array of all vRA/vRA Cloud catalog source details in JSON format
// Assumes the presence of action System.getModule("com.vmware.pso.rest").executeTransientRESTOperation
// Obtain the action here: https://gist.github.com/trisharia/7b62fcdf12600511b3d7e9b635981b2c
//
// For vRA Cloud 7.0+ and vRA 8.0+
//
// Action Inputs:
// cspBaseUrl - string - Base URL for connecting to VMware Cloud Services RESTful API
@trisharia
trisharia / getCasCatalogItems.js
Last active September 12, 2019 23:35
Get all vRA/vRA Cloud Catalog Items
// VMware vRealize Orchestrator action sample
//
// Get an array of all vRA/vRA Cloud catalog item details in JSON format
// Assumes the presence of action System.getModule("com.vmware.pso.rest").executeTransientRESTOperation
// Obtain the action here: https://gist.github.com/trisharia/7b62fcdf12600511b3d7e9b635981b2c
//
// For vRA Cloud 7.0+ and vRA 8.0+
//
// Action Inputs:
// cspBaseUrl - string - Base URL for connecting to VMware Cloud Services RESTful API
@trisharia
trisharia / getCasBlueprintRequests.js
Last active September 12, 2019 23:35
Get all vRA Cloud Blueprint Requests
// VMware vRealize Orchestrator action sample
//
// Get an array of all vRA/vRA Cloud blueprint request details in JSON format
// Assumes the presence of action System.getModule("com.vmware.pso.rest").executeTransientRESTOperation
// Obtain the action here: https://gist.github.com/trisharia/7b62fcdf12600511b3d7e9b635981b2c
//
// For vRA Cloud 7.0+ and vRA 8.0+
//
// Action Inputs:
// cspBaseUrl - string - Base URL for connecting to VMware Cloud Services RESTful API
@trisharia
trisharia / getCspAuthToken.js
Last active September 12, 2019 23:25
Authenticate against VMware Cloud Services via REST using a transient RESTHost
// VMware vRealize Orchestrator action sample
//
// Authenticates against VMware Cloud Services via REST using a transient RESTHost.
// Assumes the presence of action System.getModule("com.vmware.pso.rest").executeTransientRESTOperation
// Obtain the action here: https://gist.github.com/trisharia/7b62fcdf12600511b3d7e9b635981b2c
//
// For vRA Cloud 7.0+ and vRA 8.0+
//
// Action Inputs:
// cspBaseUrl - string - Base URL for connecting to VMware Cloud Services RESTful API
@trisharia
trisharia / getNetworkProfileNames.js
Created March 18, 2019 19:14
Get vRA Network Profiles
// VMware vRealize Orchestrator action sample
//
// Returns the names of all network profiles defined in a vRA instance
//
// For vRA 7.0+/vRO 7.0+
//
// Action Inputs:
// vcacHost - vCAC:VCACHost - vRA IaaS Host
//
// Return type: Array/string - the names of the network profiles
@trisharia
trisharia / getSubtenantNameFromId.js
Last active September 30, 2018 22:23
Get the name of a vRA Subtenant or Business Group given its ID
// VMware vRealize Orchestrator action sample
//
// Get the name of a vRealize Automation Subtenant (a.k.a. Business Group) given its ID
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// cafeHost - vCACCAFE:vCACHost - vRealize Automation host
// id - string - ID of the vRA Subtenant
//
@trisharia
trisharia / createMimeAttachment.js
Last active May 18, 2018 03:00
Send email with attachments
// VMware vRealize Orchestrator action sample
//
// Creates a simple Mime document
//
// For vRO 7.0+
//
// Action Inputs:
// name - string - Name to call the Mime document
// mimeType - string - MIME type (See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types)
// contents - string - Contents of the Mime document
@trisharia
trisharia / getNetworkProfilesOfReservation.js
Created May 12, 2018 01:02
Get the network profiles of a vRA reservation (IaaS)
// VMware vRealize Orchestrator action sample
//
// Get the network profiles of a vRA reservation (IaaS)
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// vcacHost - vCAC:VCACHost - vRA IaaS Host
// reservationEntity - vCAC:Entity - Reservation entity
//