- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
how to specify network_view in object body requests?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 06:34 AM
I'm trying to get data from WAPI using object body requests, but fail to specify network view
Examples using object body requests — Infoblox WAPI 2.11.2 documentation (illinois.edu)
https://my_ip/wapi/v2.11.2/request
I tried putting network_view in to data part or args part, but no luck, it either gives error argument not supported or
Re: how to specify network_view in object body requests?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 08:23 AM
The object type extensibleattributedef does not have a network view attribute. EAs are not specific to a network view.
For objects that do fall under specific network views, adding the argument under data is correct. For example, this would be used to find an IP in a network in the mycorp network view:
[ { "method": "GET", "object": "network", "data": { "network_view": "mycorp", "*Site": "HQ", "*Building": "Two" }, "assign_state": { "netw_ref": "_ref" }, "discard": true }, { "method": "POST", "object": "##STATE:netw_ref:##", "args": { "_function": "next_available_ip" }, "enable_substitution": true } ]