This is an integration example between UCSD and Cohesity.
Posted for Russ (Please direct questions to: rwhitear@cisco.com)
Please watch video for more details:
https://youtu.be/OLqmUm3WMvU
Even more details are here:
Cohesity video with initial explanation slides and HX native snapshots support.
https://youtu.be/YCgF_Ifv2OA
Custom task code:
importPackage(java.util);
importPackage(java.lang);
importPackage(java.io);
loadJar("Cohesity/CohesityREST.jar");
importClass(com.cohesity.auth.CohesityAuth);
importClass(com.cohesity.operations.protectionJobs.CreateProtectionJob);
var protectedVmName = input.protectedVmName;
var vmWareSourceName = input.vmWareSourceName;
var cohesityUsername = input.cohesityUsername;
var cohesityPassword = input.cohesityPassword;
var cohesityDomain = "LOCAL";
var cohesityHost = input.cohesityHost;
logger.addInfo("VMname: " + protectedVmName);
logger.addInfo("Protection Job Name: " + protectedVmName+"-protectionJob");
logger.addInfo("VCenter Source: " + vmWareSourceName);
var credentials = new CohesityAuth(cohesityUsername cohesityPassword, cohesityDomain);
var cohesityCluster = cohesityHost;
var createProtectionJob = new CreateProtectionJob( credentials, cohesityCluster );
createProtectionJob.setProtectionJobName(protectedVmName+"-protectionJob");
createProtectionJob.setVmWareSourceName(vmWareSourceName);
createProtectionJob.setProtectionPolicyName("uktmeDefault");
createProtectionJob.setViewBoxName("DefaultStorageDomain");
createProtectionJob.setVmName(protectedVmName);
createProtectionJob.setStartHour(22);
createProtectionJob.setStartMinute(30);
createProtectionJob.execute();