Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

API & Integration, DevOps,NetOps,SecOps


Error in fileop getleasehistoryfiles API

New Member
Posts: 2
2337     0


I'm trying to use the getleasehistoryfiles fileop API in order to get the leases from my infoblox server but after sending the first API call that creates the file i receive an error regarding a download_file_name which i haven't seen used anywhere and it isn't documented anywhere.
My API call:

curl -k1 -u admin:infoblox -X POST \
'https://<infoblox_server_ip>/wapi/v2.9/fileop?_function=getleasehistoryfiles' \
-H "Content-Type: application/json" \
-d '{"member": "infoblox.localdomain", "start_time": "1514764800", "end_time" :"1533686400"}'

And the error i receive:

{ "Error": "AdmConDataError: None (IBDataError: IB.Data:Missing download name file: /storage/tmp/http_direct_file_io/req_id-DOWNLOAD-0712142357079164/download_file_name)", 
  "code": "Client.Ibap.Data", 
  "text": "Missing download name file: /storage/tmp/http_direct_file_io/req_id-DOWNLOAD-0712142357079164/download_file_name"

If anyone has any idea whats going on here i would love some help.

Re: Error in fileop getleasehistoryfiles API

Posts: 181
2338     0



I tried the same API call against my environment and I got the expected output:

curl --location --request POST 'https://<grid-master>/wapi/v2.9/fileop?_function=getleasehistoryfiles' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <auth>' \
--data-raw '{"member": "", "start_time": "1514764800", "end_time" :"1533686400"}'

    "token": "eJytUU1vwyAMvfNH2kuTQpuv3Tpl1SZVrdRO2tFKgKSWEmBAqma/flBpu+6yA+jhZ/vZD861mcHK\nnoSLa+W8nbjXlhhKlhxVp9tB3xOtZDx+NtKRuvENnGVHDCMcoJ1w8KgAiEDuidmQpTBbclnIu0E7\ng8dRLojJyJ7mLGcVK0qWFAWjGa2IuywmOwQ6DwVX7417SlNasYTmZUITlsYYCAzDeehwkIA6tfIT\nUKzq08fxcNrVq3VBt7TMqi0r8rLaVKm4cnOQjZOv6MIyc8LdLem/gkwRFVEEVAbBvxqFtMeIImwc\nMF2HmjR2bHqZ+tH893SU/qiBVFwLVH2MsiD7/HaMcPObMGoRbaXR6Xr3voPzyz6+M+L82dA8/gIt\nAtmhHIQDr4Hr0TT2UVWSYzSibQygMpOHm7QOtYpcFbg2+QZaOqdc\n",
    "url": ""

If it does not give you this response, then i would suggest opening a support ticket.


Krishna Vasudevan

Re: Error in fileop getleasehistoryfiles API

[ Edited ]
Posts: 81
2338     0

Hello Nir,


I've replicated the exact error you see, by changing the member to save the lease log. What i mean is the member selected at :


Grid DHCP Properties -> Logging -> "Send leases to"


If your script has been working well, did you recently modify this member selection ? Can you try switching this member to see if the call gets through ? In my case I selected the GM & i received the expected result(Though GM isn't recommended as the logging member).


Even if your call gets through after selecting the GM or any other node, I'd still suggest you to ask Technical Support to understand why would the download_file_name go missing if this member is switched(dhcpLeaseHistory.csv.gz is what i'd expect here). Hope this helps


Best regards,


Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Demo: Infoblox IPAM plug-in integration with OpenStack Newton