Instruction manual

Appendix B: NetScaler API Reference
B-6 NetScaler 9000 Series Installation and Configuration Guide - Volume 1
NSICG60_JAN05
HTTP message. For more information on this, see http://
www.w3.org/TR/SOAP.
The following is the CLI command to create a Load Balancing virtual server:
add lb vserver vipLB1 HTTP 10.100.101.1 80
The following is the corresponding API method for the above CLI command:
ns__addlbvserver (handle, “vipLB1”, “HTTP”,
“10.100.101.1”, 80, &out);
The request XML generated for this request would be:
The following is the XML response for the above request:
B.8 Example: Querying the NetScaler Configuration
This example shows an API request that queries the NetScaler configuration
and receives a list of entities.
Note: The actual API method and the XML SOAP message contents may
differ from the example shown below.
The following is the CLI command to show the configured Load Balancing
virtual servers:
show lb vservers
<ns:addlbvserver>
<vServerName xsi:type="xsd:string" >vipLB1</vServerName>
<serviceType xsi:type="ns:vservicetypeEnum>HTTP</
serviceType>
<IPAddress xsi:type="xsd:string">10.100.101.1</IPAddress>
<port xsi:type="xsd:unsignedInt" >80</port>
< /ns:addlbvserver >
<ns:addlbvserverResponse>
<rc xsi:type="xsd:unsignedInt">0</rc>
<message xsi:type="xsd:string">Done</message>
</ns:addlbvserverResponse>