This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Removes duplicates from an array, with the option to also sort the array | |
// | |
// For vRO 6.0+ | |
// | |
// Action Inputs: | |
// a - Array/Any - Array with potential duplicates | |
// doSort - boolean - Sort the array also? Potentially better performance than unsorted algorithm | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Returns the cluster of a given vCenter VM | |
// | |
// For vRO 7.0+/vCenter 6.0+ | |
// | |
// Action Inputs: | |
// vm - VC:VirtualMachine - vCenter VM | |
// | |
// Return type: VC:ClusterComputeResoure - the cluster to which the VM belongs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Returns the VM folder of a given vCenter VM | |
// | |
// For vRO 7.0+/vCenter 6.0+ | |
// | |
// Action Inputs: | |
// vm - VC:VirtualMachine - vCenter VM | |
// | |
// Return type: VC:VmFolder - the folder to which the VM belongs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Returns the vCenter ClusterComputeResource with the given name | |
// Assumes there is only 1 | |
// Does a case-insensitive search | |
// | |
// For vRO 7.0+/vCenter 6.0+ | |
// | |
// Action Inputs: | |
// clustername - string - Name of the cluster to find |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Use VM-host compatibility checker, which is native to the vCenter plugin, | |
// to determine if a host is compatible with a given VM and resource pool | |
// | |
// For vRO 7.0+/vCenter 6.0+ | |
// | |
// Action Inputs: | |
// host - VC:HostSystem - vCenter host | |
// vm - VC:VirtualMachine - vCenter VM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Get all compatible datastores for a given host, resource pool, and virtual machine. | |
// The datstore must have enough free storage space necessary for the VM, and must be | |
// accessible and not in an overall status of "Red". | |
// | |
// For vRO 7.0+/vCenter 6.0+ | |
// | |
// Action Inputs: | |
// host - VC:HostSystem - vCenter host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Returns the value of a given key defined in a vCACCAFE:vCACCAFELiteralMap | |
// Performs depth-first search | |
// | |
// For vRA 7.0+/vRO 7.0+ | |
// | |
// Action Inputs: | |
// map - Any - the vCACCAFE:vCACCAFELiteralMap to parse | |
// key - string - Key for searching in the literal map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Returns the parent of a given vCACCAFE:CatalogResource | |
// For example, find the Deployment resource of a Machine | |
// | |
// For vRA 7.0+/vRO 7.0+ | |
// | |
// Action Inputs: | |
// childCatalogResource - vCACCAFE:CatalogResource - catalog resource for which to get the parent | |
// cafeHost - vCACCAFE:VCACHost - vRA CAFE host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Returns day-2 or resource action request(s) that have been submitted for a vRA catalog resource | |
// | |
// For vRA 7.0+/vRO 7.0+ | |
// | |
// Action Inputs: | |
// cafeHost - vCACCAFE:VCACHost - vRA CAFE host | |
// resource - vCACCAFE:CatalogResource - catalog resource for which to get day-2 requests | |
// actionLabel - string - optional action label to filter by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Determine whether the given vCenter VM is a template | |
// | |
// For vRO 7.0+/vCenter 6.0+ | |
// | |
// Action Inputs: | |
// vm - VC:VirtualMachine - vCenter VM | |
// | |
// Return type: boolean - true if the VM is a template |