API return IP subnet instead of IP/32 host

cancel
Showing results for 
Search instead for 
Did you mean: 

API return IP subnet instead of IP/32 host

L1 Bithead

Hi There,

One of my customer is trying to search within the traffic log, using XML API, specific host (IP address). 
He use this kind of request: 
https://IP-Panorama/api//api/?key=<Clef Valide>&type=log&log-type=traffic&query=(receive_time geq '2012/06/22 08:00:00')
In this case there is no specific IP, but it gives us the same when we're looking for a specific address.
The CSV returned subnets IP for src and dst. Never a specific /32 host.
Exemple:
[...]
<src>10.254.76.0/24</src>
<dst>8.8.8.0/24</dst>
<rule>Deny ALL</rule>
<srcloc code="10.0.0.0-10.255.255.255" cc="10.0.0.0-10.255.255.255">10.0.0.0-10.255.255.255</srcloc>
<dstloc code="United States" cc="US">United States</dstloc>
[...]

Do you have any idea? Are you guys already experience such issue?

2 REPLIES 2

L4 Transporter

I've just tested this with Postman against my Panorama, I got real IP addresses not subnets when looking at the XML response:

Screenshot 2021-12-20 at 15.15.20.png

 

I'm running 10.1.3-h1... It might be worth your customer raising a support ticket to see if there is a known problem with the version they are running, especially if it is an old version.

 

Hope this helps.

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂

Hi Jimmy,

Thanks for your quick answer. I've just talked with my customer. He told me the issue is random. With the same request, he got good answer and sometimes not. By the way, he runs a Panorama in 9.1.8. I'm confused, before opening a case, I want an issue easy to replicate. I'll keep you in touch. Thanks again.

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!