Session API
The Session API provides basic capabilities to read and control PCS sessions.
The Session API exposes different models depends on a type of a requested session. Current version of the Session API supports following session types:
ggsnscgcombinedGGSNandSCG
Data model for ggsn session
Where:
Data model for scg session
Data model for combinedGGSNandSCG session
API methods
Session.List
Returns the list of sessions based on the given query parameters. If the number of sessions exceeds the internal query limit, only an initial subset will be returned. Returns an error if no valid query parameter is passed.
Following parameters could be passed:
Available session types:
ggsnscgcombinedGGSNandSCG
For ggsn and scg sessions types following Filter values are supported:
is- equal to.neq- not-equal to.lte- lower than or equal to.gt- greater than.lt- lower than.gte- great or equal.starts_with- match objects which starts with the given pattern.ends_with- match objects which ends with the given pattern.contains- match objects which contains the given pattern.
For example:
will request objects with IMSI which ends with 5. Or:
will request object where BalanceId is equal to test_balance.
In a case of combinedGGSNandSCG session type only following filter operations are supported:
is- equal to.in- value is located in a set of values. Limit is - 30 values.
For example:
Note that Limit, Offset, Sort and Fields parameters supported only
for ggsn and scg session types. The combinedGGSNandSCG session type
supports only one - Filter parameter which is mandatory.
Example of SessionType="ggsn" request:
Example of response:
Example of SessionType="combinedGGSNandSCG" request:
Example of response:
Following list of error codes may be returned:
-31411- Invalid list Query. This error may occur under different circumstances such a wrong format of aFilter,Filterparameter is missed and so on.
Session.Stop
The method can be used to stop a running session. The session with the given
IMSI will be stopped. Returns an error if no valid query parameter is
passed.
Following parameters could be passed:
Example of request:
Example of response:
There is only single possible error code:
-31808- Session not found.