Skip to content

Instantly share code, notes, and snippets.

@trisharia
trisharia / executeTransientRESTOperation.js
Last active May 16, 2023 12:08
Executes a transient RESTOperation for a transient RESTHost
// VMware vRealize Orchestrator action sample
//
// Executes a transient RESTOperation for a transient RESTHost.
// Performs the operation without having the operation nor the host persist in the RESTHost Inventory.
// Returns the response string and status code as named key-value pairs "responseString" and "statusCode", respectively.
//
// For vRO 7.0+
//
// Action Inputs:
// baseUrl - string - Base URL for connecting to the RESTful application
@vmwarecode
vmwarecode / snippet.js
Last active October 5, 2016 13:52
Connect all NICs on vSphere VM
// Copyright 2016, VMware, Inc. All Rights Reserved
//
// VMware vRealize Orchestrator action sample
//
// Checks the 'Connected' and 'Connect at power on' setting for every Network Adapter on a VM.
// If the value is false, the workflow will update the setting to true on the Network Adapter.
// VM can be powered off or powered on. All changes applied with a single vm reconfig task
//
//Action Inputs:
// vm - VC:VirtualMachine