Skip to content

Instantly share code, notes, and snippets.

View trisharia's full-sized avatar

Trisha Navarro trisharia

View GitHub Profile
@trisharia
trisharia / addCasCatalogSourceToProject.js
Created September 13, 2019 00:43
Add vRA/vRA Cloud Catalog Source to Project
// VMware vRealize Orchestrator action sample
//
// Add a vRA/vRA Cloud catalog source to a given project
// 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 / createCasProject.js
Created September 13, 2019 00:39
Create vRA/vRA Cloud Project
// VMware vRealize Orchestrator action sample
//
// Create a vRA/vRA Cloud project
// Assumes the presence of action System.getModule("com.vmware.pso.rest").executeTransientRESTOperation
// Obtain the action here: https://gist.github.com/trisharia/7b62fcdf12600511b3d7e9b635981b2c
// Hint: to understand the format for the JSON input parameters, do a GET on existing projects
// shown here: https://gist.github.com/trisharia/a7345c779601fdd380b99acc764fb666
//
// For vRA Cloud 7.0+ and vRA 8.0+
//
@trisharia
trisharia / tagCasNetwork.js
Created September 13, 2019 00:32
Tag vRA/vRA Cloud Network
// VMware vRealize Orchestrator action sample
//
// Add/update tags on a vRA/vRA Cloud network
// 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 / patchCasDeployment.js
Created September 13, 2019 00:28
Patch vRA/vRA Cloud Deployment
// VMware vRealize Orchestrator action sample
//
// Update a vRA/vRA Cloud deployment
// 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 / getCasCloudZoneByName.js
Created September 13, 2019 00:20
Get all vRA/vRA Cloud Cloud Zone by name
// VMware vRealize Orchestrator action sample
//
// Get vRA/vRA Cloud cloud zone details in JSON format, given its name
// 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 / getCasCloudZoneById.js
Created September 13, 2019 00:18
Get all vRA/vRA Cloud Cloud Zone by ID
// VMware vRealize Orchestrator action sample
//
// Get vRA/vRA Cloud cloud zone details in JSON format, given its ID
// 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 / getCasProjectEntitlements.js
Created September 13, 2019 00:12
Get all vRA/vRA Cloud Project Entitlements
// VMware vRealize Orchestrator action sample
//
// Get an array of all vRA/vRA Cloud entitlement details for a given project 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 / getCasProjectByName.js
Created September 13, 2019 00:10
Get all vRA/vRA Cloud Project by name
// VMware vRealize Orchestrator action sample
//
// Get vRA/vRA Cloud project details in JSON format, given its name
// 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 / getCasNetworkDomainByName.js
Created September 13, 2019 00:05
Get all vRA/vRA Cloud Network Domain by name
// VMware vRealize Orchestrator action sample
//
// Get vRA/vRA Cloud network domain details in JSON format, given its name
// 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 / getCasNetworkByNameAndExternalRegionId.js
Created September 13, 2019 00:04
Get all vRA/vRA Cloud Network by name and external region ID
// VMware vRealize Orchestrator action sample
//
// Get vRA/vRA Cloud network details in JSON format, given its name and external region ID
// 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