cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
818
Views
7
Helpful
2
Replies

Help with PI 3.1 REST API

Aomar bahloul
Spotlight
Spotlight

Hi,

I'm having hard time querying PI 3.1 for the details of a wireless session for a specific username.

I tired this on my server but it didn't work:

curl -k https://PrimeAPI:Password@server_IP/webacs/api/v3/data/ClientSessions?.full=true&username=testuser

Note the PI user PrimeAPI has both NBI credential and NBI Read access.

Thanks.

Aomar.

2 Replies 2

Aomar bahloul
Spotlight
Spotlight

I was able to resolve this even though it's prime 3.1 on API V2 is available and the correct url should be:

https://PrimeAPI:Password@server_IP/webacs/api/v2/data/ClientDetails?userName=testuser&ssid=Business-Wireless.full=true

My only issue right now is that the ClientDetails info are not being pulled by Prime quickly it takes about 5 minutes or more for the data to be available. Is there away to make this data available instantaneously? meaning as soon as a Wi-Fi client is associated with the Wireless Controller?


Thanks


Aomar.

Hi Aomar,

There is a known bug for this performance issue: CSCve08813. The ClientSessions response time was improved since PI 3.2.
Since 3.2 version, ClientSessions resource usage has a new URI identified by v3.

Regards,
Igor