- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
_return_fields not present in WAPI v1.1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-04-2016 09:05 AM
Hello,
I've to export all network and IP from an infoblox v6.7.0-201429, and for what I know, this version have the WAPI v1.1.
curl --tlsv1 --insecure --user log:pas 'https://infoblox.local/wapi/v1.1/network?_max_results=-5000&_return_type=xml-pretty'
and then, with a simple loop, I'll be able to get all the IP for each network.
curl --tlsv1 --insecure --user log:pas 'https://infoblox.local/wapi/v1.1/ipv4address?network=10.55.22.0/25&status=USED'
But the problem is I can't get the now standard fields with the parameter _return_fields because I use WAPI v1.1, and it's only available in WAPI v1.2.
How can I get these fields ?
Thanks in advance.
Re: _return_fields not present in WAPI v1.1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-05-2016 05:52 AM
According to the WAPI Documentation Release 1.1, the _return_fields parameter is supported. Which error do you get when trying to use it ?
Re: _return_fields not present in WAPI v1.1
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-05-2016 07:20 AM - edited 07-05-2016 07:29 AM
curl --tlsv1 --insecure --user log:pas 'https://infoblox.local/wapi/v1.1/ipv4address?network=10.55.22.0/25&status=USED&_return_fields+=Comment' { "Error": "AdmConProtoError: Illegal option modifier : _return_fields =Comment", "code": "Client.Ibap.Proto", "text": "Illegal option modifier : _return_fields =Comment" }
I've tried with +=Comment, =Comment, %2B=Comment and even in lower case.
Re: _return_fields not present in WAPI v1.1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-05-2016 12:04 PM
The '+' modifier for _return_fields isn't supported in v1.1 of the wapi.
Re: _return_fields not present in WAPI v1.1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-06-2016 01:30 AM
Do you think it's possible with the WAPI v1.1 to display the fields not shown by default ?
Re: _return_fields not present in WAPI v1.1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-08-2016 07:27 AM
Yes sure, although you will have to list all required fields (default and non default ones) :
curl --tlsv1 --insecure --user loginassword 'https://ip/wapi/v1.1/ipv4address?network=10.10.10.0/24&status=USED&_return_fields=ip_address,usage,fingerprint,_whatever_'