Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Help Required: Creating network in a network view
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 01:54 PM
2249     0
Hi Team,
I am trying to create a network in a network view. Now the thing is when I am trying to pass multiple arguments it is always throwing me syntax error. I know that i am writing a wrong suntax. Can you guys please correct me ?
API request
'{network_view : Testing,network : 192.168.1.0/24}'
Error
{
"Error": "AdmConProtoError: Unknown argument/field: '\n\t'{network_view : Testing,network : 192.168.1.0/24}'\n '",
"code": "Client.Ibap.Proto",
"text": "Unknown argument/field: '\n\t'{network_view : Testing,network : 192.168.1.0/24}'\n '"
}
Re: Help Required: Creating network in a network view
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 10:22 PM
2250     0
Hi Ashley,
The network parameters need to be passed in the data section of your WAPI call. If you are using curl, you can use the following syntax.
curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://172.30.175.192/wapi/v2.4/network?_return_fields%2B=network&_return_as_object=1" -d '{"network": "192.168.1.0/24","network_view": "Testing"}'
Hope this works,
Krishna Vasudevan