Reply
Highlighted

_return_fields not present in WAPI v1.1

ldesfosses
Techie
Posts: 3
3038     0

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

Adviser
Posts: 63
3039     0

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 ]
ldesfosses
Techie
Posts: 3
3039     0

 

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

GHorne Community Manager
Community Manager
Posts: 248
3039     0

The '+' modifier for _return_fields isn't supported in v1.1 of the wapi.

Re: _return_fields not present in WAPI v1.1

ldesfosses
Techie
Posts: 3
3039     0

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

Adviser
Posts: 63
3039     0

Yes sure, although you will have to list all required fields (default and non default ones) :

 

curl --tlsv1 --insecure --user loginSmiley Tongueassword 'https://ip/wapi/v1.1/ipv4address?network=10.10.10.0/24&status=USED&_return_fields=ip_address,usage,fingerprint,_whatever_'

Showing results for 
Search instead for 
Do you mean 

Recommended for You