Product Documentation

Enabling a NetScaler Resource

Jun 14, 2016

To enable a resource on the NetScaler appliance, specify the action as "enable" in the URL query string, and in the request payload, specify the resource to be enabled.

For example, to enable a load balancing virtual server named MyFirstLbVServer:
  • Request:

    HTTP Method
    POST
    URL
    http://<netscaler-ip-address>/nitro/v1/config/lbvserver?action=enable
    Request Headers
    Cookie:NITRO_AUTH_TOKEN=<tokenvalue> 
    Content-Type:application/vnd.com.citrix.netscaler.lbvserver+json
    Request Payload
    { 
        "lbvserver": 
        { 
            "name":"MyFirstLbVServer" 
        } 
    }
  • Response:

    HTTP Status Code on Success
    200 OK
    HTTP Status Code on Failure
    4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error.
Note: To disable a resource, in the URL query string, specify the action as "disable".