Skip to content

Instantly share code, notes, and snippets.

View trisharia's full-sized avatar

Trisha Navarro trisharia

View GitHub Profile
@trisharia
trisharia / getCasProjects.js
Created September 12, 2019 23:47
Get all vRA/vRA Cloud Projects
// VMware vRealize Orchestrator action sample
//
// Get an array of all vRA/vRA Cloud project 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 / getCasFlavorMappings.js
Created September 12, 2019 23:44
Get all vRA/vRA Cloud Flavor Mappings
// VMware vRealize Orchestrator action sample
//
// Get an array of all vRA/vRA Cloud flavor mapping 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 / getCasDeployments.js
Created September 12, 2019 23:42
Get all vRA/vRA Cloud Deployments
// VMware vRealize Orchestrator action sample
//
// Get an array of all vRA/vRA Cloud deployment 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 / 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 / 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 / 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 / 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 / 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