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
// Param-in: | |
// ruleName (string) | |
// vms (Array/VC:VirtualMachine) | |
// | |
// Param-out: | |
// result (Any) | |
// get VC:ClusterComputeResource | |
var parent = vms[0].resourcePool; |
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
//This code is generated by Cursor.com AI tool | |
// Function to make a REST call using vRO's REST host | |
function makeRestCall(method, url, headers, body) { | |
try { | |
// Create REST host object | |
var restHost = new RESTHost(url); | |
restHost.setHostVerification(false); // Disable SSL verification if needed | |
// Create REST operation |
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
System.log("Requesting " + addNodeCount + " machines.") | |
// COPY FROM MACHINE | |
//var copyMachineProperties = deploymentMachines[0].properties; | |
var copyMachineProperties = deploymentMachines[deploymentMachines.length - 1].properties; | |
var osImage = (os) ? os : copyMachineProperties.image; | |
System.log("Copy Machine Properties: " + JSON.stringify(copyMachineProperties)); | |
// DERIVE NEW MACHINE INFO | |
var countIndex = -1; |
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
/** | |
* | |
* @module com.vmware.pso.spbm | |
* | |
* @version 2.2.0 | |
* | |
* @param {REST:RESTHost} host | |
* @param {string} userName | |
* @param {SecureString} password | |
* |
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
``` | |
#!/bin/bash | |
## Variables ## | |
VROname=${VROserver} | |
VROuser=${VROuser} | |
VROpass=${VROpass} |
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
def handler(context, inputs): | |
outputs = { | |
"vcoUrl": context['vcoUrl'], | |
"token": context['getToken']() | |
} | |
return outputs |
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
#!/bin/env python | |
""" | |
Python wrapper for calling vCO workflows. | |
Author: AV | |
Date: 2018-06-14 | |
Version: 0.6 | |
History: |
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
/* | |
Author: Burke Azbill | |
Purpose: Display various properties of a vCloud:Gateway object in vRealize Orchestrator (vRO) | |
Usage: | |
1) Create a new workflow with a single scriptable task in it | |
2) Add an input named "gateway" of type "vCloud:Gateway" and be sure the input is bound to the scriptable task | |
3) Paste this code into the scriptable task | |
4) Save and Close | |
5) Run the workflow, providing a valid vCloud:Gateway object as input | |
6) Review the Logs tab of your vRealize Orchestrator client |
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
/** | |
* | |
* Associates a Network Pool with NSXT Provider Vdc | |
* | |
* @version 1.0.0 | |
* | |
* @param {string} networkPoolName | |
* @param {vCloud:ProviderVdc} pvdc | |
* @param {vCloud:NsxTManager} nsxtManager | |
* @param {vCloud:Host} host |
NewerOlder