© 1999-2017 Citrix Systems, Inc. All rights reserved. p.229https://docs.citrix.com
To account for the failure of some operations within the bulk operation, NITRO allows you to configure one of the
following behaviors:
Exit. When the first error is encountered, the execution stops. The commands that were executed before the error are
committed.
Continue. All the commands in the list are executed even if some commands fail.
Note: You must configure the required behavior in the request header using the X-NITRO-ONERROR parameter.
To add 2 NetScaler resources in one operation and continue if one command fails:
URL. http://10.102.29.60/nitro/v2/config/ns/
HTTP Method. POST
Request Payload.
Header
Cookie:NITRO_AUTH_TOKEN=tokenvalue
Content-Type:application/vnd.com.citrix.sdx.ns+json
X-NITRO-ONERROR:continue
Payload
{
"ns":
[
{
"name":"ns_instance1",
"ip_address":"10.70.136.5",
"netmask":"255.255.255.0",
"gateway":"10.70.136.1"
},
{
"name":"ns_instance2",
"ip_address":"10.70.136.8",
"netmask":"255.255.255.0",
"gateway":"10.70.136.1"
}
]
}
To add multiple resources (two NetScalers and two MPS users) in one operation and continue if one command fails:
URL. https://10.102.29.60/nitro/v2/config/ns/
HTTP Method. POST
Request Payload.
Header
Cookie:NITRO_AUTH_TOKEN=tokenvalue
Content-Type:application/vnd.com.citrix.sdx.ns+json
X-NITRO-ONERROR:continue
Payload
{
"ns":
[
{