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 | |
// vRA 8.4 | |
//action input type: None | |
//action return type: string (ARRAY) | |
// this code below gets all clusters | |
var clusters=VcPlugin.getAllClusterComputeResources(); |
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 | |
// vRA 8.4 | |
//action input type: cluster (string, Enter the cluster entry so that the host can be selected) | |
//action return type: VC:HostSystem | |
// this code below gets all clusters | |
var clusters =VcPlugin.getAllClusterComputeResources(); |
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 | |
// vRA 8.4 | |
//action input type: cluster (string) | |
//action return type: VC:ResourcePool (array) | |
// this code below gets all clusters | |
var clusters =VcPlugin.getAllClusterComputeResources(); |
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 | |
// vRA 8.4 | |
//action input type: configurationElementName (string), attributeElement(string) | |
//action return type: Properties | |
var configurationElementPath = "web-root"; | |
// var configurationElementName = "Catalog Item Credentials"; |
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
var vms = VcPlugin.getAllVirtualMachines(); | |
var output = []; | |
for (var i = 0 ; i < vms.length ; i++){ | |
output.push(vms[i].name); | |
} | |
return output[0]; |
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 | |
// vRA 8.4 | |
//action input type: date2 (string) , date1 (string) | |
//action return type: number | |
//while using this action; time format should be like this: '2021-11-04T08:37:38.273456Z' | |
var createdAt=date1; | |
var updatedAt=date2; |
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 | |
// vRA 8.4 | |
//action input type: vm (VC:VirtualMachine), newNotes (string) | |
//action return type: string | |
if(vm==null){ | |
throw("You have not made an entry for virtual machine"); | |
} |
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 workflow sample | |
// vRA 8.4 | |
//workflow input type: guestOSName (ARRAY/VC:VirtualMachineGuestOSIdentifier), | |
// guestOSDescription (ARRAY/string), | |
// OS (string), | |
// vmName (string) | |
//workflow return type: guestOSName (ARRAY/VC:VirtualMachineGuestOSIdentifier) |
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 | |
// vRA 8.4 | |
//workflow input type: VM (VC:VirtualMachine) | |
// snapshotname (string) | |
// removeAllSnapshotsOfVM | |
//workflow output type: | |
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 | |
// vRA 8.4 | |
//action input type: vm (VC:VirtualMachine) | |
//action return type: VC:ClusterComputeResource | |
var parent = vm.runtime.host; | |
while (parent !== null && ! (parent instanceof VcClusterComputeResource)) { |
OlderNewer