Product Documentation

Resetting Properties of a NetScaler Resource

Jun 14, 2016

To unset the value that is set to a parameter, invoke the unset() method on the resource class, by passing the name of the resource and the parameters to be unset. If the parameter has a default value, the value is reset to that value.

The following sample code unsets the load balancing method and the comments of a load balancing virtual server named "lb_123".

Java - Sample code to reset properties 複製

lbvserver lb1 = new lbvserver();
lb1.set_name("lb_123");
String args[] = {"comment", "lbmethod"};
lbvserver.unset(ns_session, lb1, args);

.NET - Sample code to reset properties 複製

lbvserver obj = new lbvserver();
obj.name = "lb_123";
String[] args = { "lbmethod","comment" };
lbvserver.unset(ns_session, lb1, args);

Python - Sample code to reset properties 複製

lb1 = lbvserver()
lb1.name = "lb_123"
args = ["comment", "lbmethod"]
lbvserver.unset(nitroService, lb1, args)