Skip to main content
GET
/
waap
/
v1
/
ip-info
/
top-sessions
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
waap_top_sessions = client.waap.ip_info.get_top_user_sessions(
    domain_id=1,
    ip="192.168.1.1",
)
print(waap_top_sessions)
[
  {
    "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "duration": 123,
    "requests": 123,
    "blocked": 123,
    "start_time": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

ip
required

The IP address to check

domain_id
integer
required

The identifier for a domain. When specified, the response will exclusively contain data pertinent to the indicated domain, filtering out information from other domains.

Required range: x > 0

Response

Successful Response

session_id
string<uuid>
required

The session ID

duration
number
required

The duration of the session in seconds

requests
integer
required

The number of requests in the session

blocked
integer
required

The number of blocked requests in the session

start_time
string<date-time>
required

The start time of the session as a POSIX timestamp