Product Documentation

Updating a NetScaler Resource

Sep 01, 2016

To update the details of an existing resource on the NetScaler appliance, specify the name of the resource in the URL, and in the request payload,within the specific resource object, specify the name and the updated details of the resource.

For example, to change the load balancing method to ROUNDROBIN and update the comment property for a load balancing virtual server named MyFirstLbVServer:

  • Request:

    HTTP Method
    PUT
    URL
    http://<netscaler-ip-address>/nitro/v1/config/lbvserver/MyFirstLbVServer
    Request Headers
    Cookie:NITRO_AUTH_TOKEN=<tokenvalue> 
    Content-Type:application/json
    
    Request Payload
    { 
        "lbvserver": 
        { 
            "name":"MyFirstLbVServer", 
            "lbmethod":"ROUNDROBIN", 
            "comment":"Updated comments" 
        } 
    }
    
  • 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.