var objVclLBPersistence = new VclLBPersistence(); | ||
objVclLBPersistence["method"] = "COOKIE"; | ||
objVclLBPersistence["cookieName"] = "VCOSESSIONID"; | ||
objVclLBPersistence["cookieMode"] = "INSERT"; | ||
var objVclLBVirtualServerServiceProfile = new VclLBVirtualServerServiceProfile(); | ||
objVclLBVirtualServerServiceProfile["isEnabled"] = true; | ||
objVclLBVirtualServerServiceProfile["protocol"] = "HTTP"; | ||
objVclLBVirtualServerServiceProfile["port"] = "80"; | ||
objVclLBVirtualServerServiceProfile["persistence"] = objVclLBPersistence; | ||
var objVclLoadBalancerVirtualServer = new VclLoadBalancerVirtualServer(); | ||
objVclLoadBalancerVirtualServer["isEnabled"] = true; | ||
objVclLoadBalancerVirtualServer["logging"] = false; | ||
objVclLoadBalancerVirtualServer["pool"] = strVclVAppName + "-Pool"; | ||
objVclLoadBalancerVirtualServer["name"] = strVclVAppName + "-VirtualServer"; | ||
objVclLoadBalancerVirtualServer["description"] = strLoadBalancerHostName; | ||
objVclLoadBalancerVirtualServer["ipAddress"] = strLoadBalancerIP; | ||
objVclLoadBalancerVirtualServer["interface"] = objVclOrgVdcNetwork.getReference(); | ||
objVclLoadBalancerVirtualServer["serviceProfile"].add(objVclLBVirtualServerServiceProfile); | ||
var objVclLoadBalancerService; | ||
objVclLoadBalancerService = new VclLoadBalancerService(); | ||
objVclLoadBalancerService["isEnabled"] = true; | ||
objVclLoadBalancerService["pool"].add(objVclLoadBalancerPool); | ||
objVclLoadBalancerService["virtualServer"].add(objVclLoadBalancerVirtualServer); |
↧
Re: can´t vcac roll out vapps with vshield ?
↧