Product Documentation

nshttpparam

Sep 07, 2016

Configuration for HTTP parameter resource.

Properties (click to see Operations)

Name Data Type Permissions Description
dropinvalreqs
<String>
Read-write
Drop invalid HTTP requests or responses.
Default value: OFF
Possible values = ON, OFF
markhttp09inval
<String>
Read-write
Mark HTTP/0.9 requests as invalid.
Default value: OFF
Possible values = ON, OFF
markconnreqinval
<String>
Read-write
Mark CONNECT requests as invalid.
Default value: OFF
Possible values = ON, OFF
insnssrvrhdr
<String>
Read-write
Enable or disable NetScaler server header insertion for NetScaler generated HTTP responses.
Default value: OFF
Possible values = ON, OFF
nssrvrhdr
<String>
Read-write
The server header value to be inserted. If no explicit header is specified then NSBUILD.RELEASE is used as default server header.
Minimum length = 1
logerrresp
<String>
Read-write
Server header value to be inserted.
Default value: ON
Possible values = ON, OFF
conmultiplex
<String>
Read-write
Reuse server connections for requests from more than one client connections.
Default value: ENABLED
Possible values = ENABLED, DISABLED
maxreusepool
<Double>
Read-write
Maximum limit on the number of connections, from the NetScaler to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time.
Minimum value = 0
Maximum value = 360000
builtin
<String[]>
Read-only
Flag to determine if the http param is built-in or not.
Possible values = MODIFIABLE, DELETABLE, IMMUTABLE, PARTITION_ALL

Operations (click to see Properties)

Some options that you can use for each operations:

  • Getting warnings in response: NITRO allows you to get warnings in an operation by specifying the "warning" query parameter as "yes". For example, to get warnings while connecting to the NetScaler appliance, the URL is as follows:

    http://<netscaler-ip-address>/nitro/v1/config/login?warning=yes

    If any, the warnings are displayed in the response payload with the HTTP code "209 X-NITRO-WARNING".

  • Authenticated access for individual NITRO operations: NITRO allows you to logon to the NetScaler appliance to perform individual operations. You can use this option instead of creating a NITRO session (using the login object) and then using that session to perform all operations,

    To do this, you must specify the username and password in the request header of the NITRO request as follows:

    X-NITRO-USER:<username>

    X-NITRO-PASS:<password>

    Note: In such cases, make sure that the request header DOES not include the following:

    Cookie:NITRO_AUTH_TOKEN=<tokenvalue>

메모

Mandatory parameters are marked in red and placeholder content is marked in <green>.

update

URL: http://<netscaler-ip-address>/nitro/v1/config/nshttpparam

HTTP Method: PUT

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue>
Content-Type:application/json

Request Payload:

{"nshttpparam":{
      "dropinvalreqs":<String_value>,
      "markhttp09inval":<String_value>,
      "markconnreqinval":<String_value>,
      "insnssrvrhdr":<String_value>,
      "nssrvrhdr":<String_value>,
      "logerrresp":<String_value>,
      "conmultiplex":<String_value>,
      "maxreusepool":<Double_value>
}}

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

unset

URL: http://<netscaler-ip-address>/nitro/v1/config/nshttpparam?action=unset

HTTP Method: POST

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue>
Content-Type:application/json

Request Payload:

{"nshttpparam":{
      "dropinvalreqs":true,
      "markhttp09inval":true,
      "markconnreqinval":true,
      "insnssrvrhdr":true,
      "nssrvrhdr":true,
      "logerrresp":true,
      "conmultiplex":true,
      "maxreusepool":true
}}

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

get (all)

URL: http://<netscaler-ip-address>/nitro/v1/config/nshttpparam

HTTP Method: GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue>
Accept:application/json

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

Response Headers:

Content-Type:application/json

Response Payload:

{ "nshttpparam": [ {
      "dropinvalreqs":<String_value>,
      "markhttp09inval":<String_value>,
      "markconnreqinval":<String_value>,
      "insnssrvrhdr":<String_value>,
      "nssrvrhdr":<String_value>,
      "logerrresp":<String_value>,
      "conmultiplex":<String_value>,
      "maxreusepool":<Double_value>,
      "builtin":<String[]_value>
}]}