Reply
Highlighted

on_error continue for request(WAPI handler object)

MGersbach
Techie
Posts: 4
1579     0

Hi,

While importing data via WAPI you can use the request(WAPI handler object) for bulk operation.

Doing the same with csv I can decide if in case of an error the process should continue or not(see on_error).

Is there some similar flag to the request(WAPI handler object) where in bulk operation I can deside what to do on error?
thanx
mario

Re: on_error continue for request(WAPI handler object)

Moderator kzettel
Moderator
Posts: 57
1580     0

Hello Mario,

 

You may want to take a look at fileop object in the WAPI guide. Here it talkes about controls when uploading and downloading data from the appliance. This should give you all error handling that you can do when uploading and downloading data, that I am aware of.

 

Hope this helps,

 

Kevin Z.

Re: on_error continue for request(WAPI handler object)

MGersbach
Techie
Posts: 4
1580     0

Hi Kevin

 

I tried it, but did not work.

 

The request handler does not support e.g:

https://{{server}}/wapi/v{{version}}/request?on_error=CONTINUE 

API response in this case with "URI arguments are not supported when executing a body-only request".

 

I am looking for something like 

 

[{
"method": "POST",
"on_error":"CONTINUE",
"object": "record:a",
"data": {
"name": "newrec.new.corp",
"ipv4addr": "10.10.10.22"
},
"discard": true
},
{ "method": "POST",
"object": "record:a",
"data": {
"name": "newrec.new.corp",
"ipv4addr": "10.10.10.222"
},
"discard": true
}
]

 

But response is "Unknown argument(s): on_error"

 

BR

mario 

Re: on_error continue for request(WAPI handler object)

Moderator kzettel
Moderator
Posts: 57
1580     0

hello Mario,

 

Yes I see what you mean now. From my understanding and the WAPI documentation, there isn't anything like that for the request object. you would need to set up a script to execute the posts one at a time for it to work that way.

 

Hope this helps,

Kevin Z.

Showing results for 
Search instead for 
Do you mean 

Recommended for You