Quantcast
Viewing all articles
Browse latest Browse all 2572

Simple get Orchestrator Version workflow

The attached workflow retrieves some system info from Orchestrator, then performs a simple GET request to /vco/api/about and parses the result to return the version and build number.

Image may be NSFW.
Clik here to view.
Screen Shot 2015-05-22 at 11.25.43 AM.png

Get URL Code:

var vROIP = Config.getNetworkInterfaces().getBindInterface();
var vROPort = Config.getNetworkInterfaces().getBindPort();
var getUrl = "https://"+vROIP+":"+vROPort+"/vco/api/about";

Parse Results Code:

System.debug(aboutResult);
System.debug("============");
var aboutObj = JSON.parse(aboutResult);
System.debug("Version: "+aboutObj["version"]);
var version = aboutObj["version"];
System.debug("Build Number: "+aboutObj["build-number"]);
var build = aboutObj["build-number"];
System.debug("Build Date: "+aboutObj["build-date"]);
System.debug("API Version: "+aboutObj["api-version"]);

Workflow Output parameters:

version (string)

build (string)


Viewing all articles
Browse latest Browse all 2572

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>