route

Last published : Oct 30, 2026
Configuration for route resource.

Properties

(click to see Operations )
Name Data Type Permissions Description
network <String> Read-write IPv4 network address for which to add a route entry in the routing table of the Citrix ADC.
netmask <String> Read-write The subnet mask associated with the network address.
gateway <String> Read-write IP address of the gateway for this route. Can be either the IP address of the gateway, or can be null to specify a null interface route.
Minimum length = 1
vlan <Integer> Read-write VLAN as the gateway for this route.
Minimum value = 1
Maximum value = 4094
cost <Integer> Read-write Positive integer used by the routing algorithms to determine preference for using this route. The lower the cost, the higher the preference.
Minimum value = 0
Maximum value = 65535
td <Integer> Read-write Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0.
Minimum value = 0
Maximum value = 4094
distance <Integer> Read-write Administrative distance of this route, which determines the preference of this route over other routes, with same destination, from different routing protocols. A lower value is preferred.
Default value: 1
Minimum value = 0
Maximum value = 255
cost1 <Integer> Read-write The cost of a route is used to compare routes of the same type. The route having the lowest cost is the most preferred route. Possible values: 0 through 65535. Default: 0.
Minimum value = 0
Maximum value = 65535
weight <Integer> Read-write Positive integer used by the routing algorithms to determine preference for this route over others of equal cost. The lower the weight, the higher the preference.
Default value: 1
Minimum value = 1
Maximum value = 65535
advertise <String> Read-write Advertise this route.
Possible values = DISABLED, ENABLED
protocol <String[]> Read-write Routing protocol used for advertising this route.
Default value: ADV_ROUTE_FLAGS
Possible values = OSPF, ISIS, RIP, BGP
msr <String> Read-write Monitor this route using a monitor of type ARP or PING.
Default value: DISABLED
Possible values = ENABLED, DISABLED
monitor <String> Read-write Name of the monitor, of type ARP or PING, configured on the Citrix ADC to monitor this route.
Minimum length = 1
ownergroup <String> Read-write The owner node group in a Cluster for this route. If owner node group is not specified then the route is treated as Striped route.
Default value: DEFAULT_NG
Minimum length = 1
mgmt <Boolean> Read-write Route in management plane.
routetype <String> Read-write Protocol used by routes that you want to remove from the routing table of the Citrix ADC.
Possible values = CONNECTED, STATIC, DYNAMIC, OSPF, ISIS, RIP, BGP
detail <Boolean> Read-write Display a detailed view.
gatewayname <String> Read-only The name of the gateway for this route. For a route other than a link load balancing (LLB) route, this value is null.
type <Boolean> Read-only State of the RNAT.
dynamic <Boolean> Read-only State of the route.
Static <Boolean> Read-only .
permanent <Boolean> Read-only .
direct <Boolean> Read-only .
nat <Boolean> Read-only .
lbroute <Boolean> Read-only .
adv <Boolean> Read-only .
tunnel <Boolean> Read-only Show whether it is a tunnel route or not.
data <Boolean> Read-only Internal data of this route.
data0 <Boolean> Read-only Internal route type is stored, used for get.
flags <Boolean> Read-only If this route is dynamic, the name of the routing protocol from which it was learned.
routeowners <String[]> Read-only Use this option with -dynamic and in a cluster only to specify the set of nodes from which this dynamic route has been learnt.
Possible values = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
retain <Integer> Read-only .
ospf <Boolean> Read-only OSPF protocol.
isis <Boolean> Read-only ISIS protocol.
rip <Boolean> Read-only RIP protocol.
bgp <Boolean> Read-only BGP protocol.
dhcp <Boolean> Read-only .
advospf <Boolean> Read-only Advertised through OSPF protocol.
advisis <Boolean> Read-only Advertised through ISIS protocol.
advrip <Boolean> Read-only Advertised through RIP protocol.
advbgp <Boolean> Read-only Advertised through BGP protocol.
state <Integer> Read-only The state of the static route. Possible values: UP, DOWN.
totalprobes <Integer> Read-only The total number of probes sent.
totalfailedprobes <Integer> Read-only The total number of failed probes.
failedprobes <Integer> Read-only Number of the current failed monitoring probes.
monstatcode <Integer> Read-only The code indicating the monitor response.
monstatparam1 <Integer> Read-only First parameter used with the message code.
monstatparam2 <Integer> Read-only Second parameter used with the message code.
monstatparam3 <Integer> Read-only Third parameter used with the message code.
_nextgenapiresource <String> Read-only .
__count <Double> Read-only count parameter

Operations

(click to see Properties )
  • ADD
  • CLEAR
  • DELETE
  • UPDATE
  • UNSET
  • GET (ALL)
  • COUNT
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>
*Note: * Mandatory parameters are marked in red and placeholder content is marked in green

add

URL: http:// <netscaler-ip-address> /nitro/v1/config/route HTTP Method: POST
Request Headers:
Cookie:NITRO_AUTH_TOKEN= <tokenvalue>
Content-Type:application/json
Request Payload:
{"route":{
<b>"network":<String_value>,
</b><b>"netmask":<String_value>,
</b>"gateway":<String_value>,
"vlan":<Integer_value>,
"cost":<Integer_value>,
"td":<Integer_value>,
"distance":<Integer_value>,
"cost1":<Integer_value>,
"weight":<Integer_value>,
"advertise":<String_value>,
"protocol":<String[]_value>,
"msr":<String_value>,
"monitor":<String_value>,
"ownergroup":<String_value>,
"mgmt":<Boolean_value>
}}
Response: HTTP Status Code on Success: 201 Created
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

clear

URL: http:// <netscaler-ip-address> /nitro/v1/config/route? action=clear HTTP Method: POST
Request Headers:
Cookie:NITRO_AUTH_TOKEN= <tokenvalue>
Content-Type:application/json
Request Payload:
{"route":{
<b>"routetype":<String_value>
</b>}}
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

delete

URL: http:// <netscaler-ip-address> /nitro/v1/config/route/ network_value<String> Query-parameters: args= netmask:<String_value>, gateway: <String_value> ,vlan: <Integer_value> ,td: <Integer_value> ,ownergroup: <String_value> ,mgmt: <Boolean_value>

update

URL: http:// <netscaler-ip-address> /nitro/v1/config/route HTTP Method: PUT
Request Headers:
Cookie:NITRO_AUTH_TOKEN= <tokenvalue>
Content-Type:application/json
Request Payload:
{"route":{
<b>"network":<String_value>,
</b><b>"netmask":<String_value>,
</b><b>"gateway":<String_value>,
</b>"td":<Integer_value>,
"distance":<Integer_value>,
"cost1":<Integer_value>,
"weight":<Integer_value>,
"advertise":<String_value>,
"protocol":<String[]_value>,
"msr":<String_value>,
"monitor":<String_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/route? action=unset HTTP Method: POST
Request Headers:
Cookie:NITRO_AUTH_TOKEN= <tokenvalue>
Content-Type:application/json
Request Payload:
{"route":{
<b>"network":<String_value>,
</b><b>"netmask":<String_value>,
</b><b>"gateway":<String_value>,
</b>"td":<Integer_value>,
"advertise":true,
"distance":true,
"cost1":true,
"weight":true,
"protocol":true,
"msr":true,
"monitor":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/route Query-parameters: args http:// <netscaler-ip-address> /nitro/v1/config/route? args=network: <String_value> ,netmask: <String_value> ,gateway: <String_value> ,vlan: <Integer_value> ,td: <Integer_value> ,routetype: <String_value> ,detail: <Boolean_value> ,mgmt: <Boolean_value>
Use this query-parameter to get route resources based on additional properties.
attrs http:// <netscaler-ip-address> /nitro/v1/config/route? attrs=property-name1,property-name2
Use this query parameter to specify the resource details that you want to retrieve.
filter http:// <netscaler-ip-address> /nitro/v1/config/route? filter=property-name1:property-val1,property-name2:property-val2
Use this query-parameter to get the filtered set of route resources configured on NetScaler.Filtering can be done on any of the properties of the resource.
view http:// <netscaler-ip-address> /nitro/v1/config/route? view=summary
Use this query-parameter to get the summary output of route resources configured on NetScaler.
Note: By default, the retrieved results are displayed in detail view (?view=detail).
pagination http:// <netscaler-ip-address> /nitro/v1/config/route? pagesize=#no;pageno=#no
Use this query-parameter to get the route resources in chunks.
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 Header:
Content-Type:application/json
Response Payload:
{ "route": [ {
network:<String_value>,netmask:<String_value>,gateway:<String_value>,vlan:<Integer_value>,td:<Integer_value>,routetype:<String_value>,detail:<Boolean_value>,mgmt:<Boolean_value>"gatewayname":<String_value>,
"advertise":<String_value>,
"type":<Boolean_value>,
"dynamic":<Boolean_value>,
"Static":<Boolean_value>,
"permanent":<Boolean_value>,
"direct":<Boolean_value>,
"nat":<Boolean_value>,
"lbroute":<Boolean_value>,
"adv":<Boolean_value>,
"tunnel":<Boolean_value>,
"cost":<Integer_value>,
"distance":<Integer_value>,
"cost1":<Integer_value>,
"weight":<Integer_value>,
"protocol":<String[]_value>,
"data":<Boolean_value>,
"data0":<Boolean_value>,
"flags":<Boolean_value>,
"routeowners":<String[]_value>,
"retain":<Integer_value>,
"ospf":<Boolean_value>,
"isis":<Boolean_value>,
"rip":<Boolean_value>,
"bgp":<Boolean_value>,
"dhcp":<Boolean_value>,
"advospf":<Boolean_value>,
"advisis":<Boolean_value>,
"advrip":<Boolean_value>,
"advbgp":<Boolean_value>,
"msr":<String_value>,
"monitor":<String_value>,
"state":<Integer_value>,
"totalprobes":<Integer_value>,
"totalfailedprobes":<Integer_value>,
"failedprobes":<Integer_value>,
"monstatcode":<Integer_value>,
"monstatparam1":<Integer_value>,
"monstatparam2":<Integer_value>,
"monstatparam3":<Integer_value>,
"ownergroup":<String_value>,
"_nextgenapiresource":<String_value>
}]}

count

URL: http:// <netscaler-ip-address> /nitro/v1/config/route? count=yes 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 Header:
Content-Type:application/json
Response Payload:
{ "route": [ { "__count": "#no"} ] }