Product Documentation

Enabling a NetScaler Resource

Jun 14, 2016

To enable a resource, invoke the enable() method and to disable, invoke the disable() method.

The following sample code enables a load balancing virtual server named "lb_vip".

Java - Sample code to enable a NetScaler resource 複製

lbvserver obj = new lbvserver();
obj.set_name("lb_vip");
lbvserver.enable(ns_session, obj);

.NET - Sample code to enable a NetScaler resource 複製

lbvserver obj = new lbvserver();
obj.name = "lb_vip";
lbvserver.enable(ns_session, obj);

Python - Sample code to enable a NetScaler resource 複製

obj = lbvserver()
obj.name = "lb_vip"
lbvserver.enable(ns_session, obj)