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
ManagedObjectReference currentSnapshot; | |
public void printCurrentSnapshotName() { | |
VirtualMachineSnapshotInfo snapshotInfo = vm.getSnapshot(); | |
if (snapshotInfo != null) { | |
currentSnapshot = snapshotInfo.currentSnapshot; | |
walkSnapshotTree(snapshotInfo.rootSnapshotList); | |
} | |
} |
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
import groovyx.net.http.RESTClient | |
import static groovyx.net.http.ContentType.XML | |
def login(ip, username, password) { | |
String cookie = "" | |
def ucs = new RESTClient("http://${ip}/nuova") | |
def response = ucs.post( | |
contentType: XML, | |
requestContentType: XML, | |
body: { |
NewerOlder