- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Adding Bulk subnets via single WAPI call
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2019 01:52 AM
Hello,
Is it possible to add bulk of subnets via single WAPI call? I tried adding 7 subnets but it only added the last one. I am using Postman API client and running wapi version 2.9.5. I'm not sure if I need to update my object and'or argument so that it can accept bulk of subnets. Any response is appreciated
Re: Adding Bulk subnets via single WAPI call
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2019 05:44 AM
Hi,
Could you please share the WAPI call you are using?
Thanks amd regards,
Krishna Vasudevan
Re: Adding Bulk subnets via single WAPI call
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2019 06:20 AM
https://{{grid_master_ip}}/wapi/v2.9.5/network?_return_fields%2B=network&_return_as_object=1
and passing object key,value pair as follows:
{
"network": "10.10.30.0/24", "network_view": "sandbox",
"network": "10.10.31.0/24", "network_view": "sandbox",
"network": "10.10.32.0/24", "network_view": "sandbox",
"network": "10.10.33.0/24", "network_view": "sandbox",
"network": "10.10.34.0/24", "network_view": "sandbox",
"network": "10.10.35.0/24", "network_view": "sandbox"
}
I'm pretty sure it is not right way to use it.