Reply
Highlighted

Updating dozens of WAPI items 'simultaneously'. Issues?

tornado123
Not applicable
Posts: 0
1470     0

I'm trying to add multiple A record substitutions to a local RPZ zone (Wapi version 2.5). If I use one line of json in the data posted, it works fine. But if I use multiple lines, it fails. Is this expected behaviour of wapi? If so, can anyone tell me how to do a bulk update with wapi? thank you.

Re: Updating dozens of WAPI items 'simultaneously'. Issues?

Adviser
Posts: 95
1471     0

You could add a while-loop or a foreach and do one-by one.

 

 

Re: Updating dozens of WAPI items 'simultaneously'. Issues?

Moderator BRampling
Moderator
Posts: 69
1471     0

Using a while loop is the best option since you can do error handling for any failed requests. You can also use the "multiple object body requests" but you will run into limitations with larger numbers of requests in one object body.

Re: Updating dozens of WAPI items 'simultaneously'. Issues?

[ Edited ]
Adviser
Posts: 95
1471     0
Showing results for 
Search instead for 
Do you mean 

Recommended for You