Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

Unified SASE SD-WAN API: Interface Statistics

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Unified SASE SD-WAN API: Interface Statistics

L1 Bithead

What Unified SASE SD-WAN Endpoint(s) might we poll to get interface statistics like the RX Bytes, RX Packets, TX Bytes, and TX Packets that are available via the following Prisma ION CLI command?

https://docs.paloaltonetworks.com/prisma/prisma-sd-wan/prisma-sd-wan-ion-cli-reference/use-cli-comma...

1 accepted solution

Accepted Solutions

L1 Bithead

This is the API request from the broswer:

 

curl 'https://api.sase.paloaltonetworks.com/sdwan/monitor/v2.5/api/monitor/object_stats' \
<removed headers>
  --data-raw '{"start_time":"2023-12-27T13:43:47.763Z","end_time":"2023-12-27T14:43:47.763Z","object_type":"IntfStatistics","object_id":"1702599643564020096","filter":{"site":["1702599875046001096"],"element":["1702591664257000896"]}}' \
  --compressed

View solution in original post

4 REPLIES 4

L1 Bithead

Nobody?

L1 Bithead

You can use the object_stats API to get the interface metrics:

 

https://pan.dev/sdwan/api/post-sdwan-v-2-5-api-monitor-object-stats/

 

rgallagher_0-1703688448035.png

 

Thanks so much.  We've been trying this endpoint, but were unable to get it to work.  Would you mind sharing the syntax you used to retrieve the statistics for each interface on RDU-RG-ION-1?  

L1 Bithead

This is the API request from the broswer:

 

curl 'https://api.sase.paloaltonetworks.com/sdwan/monitor/v2.5/api/monitor/object_stats' \
<removed headers>
  --data-raw '{"start_time":"2023-12-27T13:43:47.763Z","end_time":"2023-12-27T14:43:47.763Z","object_type":"IntfStatistics","object_id":"1702599643564020096","filter":{"site":["1702599875046001096"],"element":["1702591664257000896"]}}' \
  --compressed
  • 1 accepted solution
  • 2694 Views
  • 4 replies
  • 0 Likes
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!