GET Session

Retrieves session information from the Sterling Secure Proxy Configuration Manager.

With the HTTP GET method, you can retrieve information about an existing session from the Sterling Secure Proxy Configuration Manager.

This API method requires authentication. The authentication token that is generated at login must be passed in through the "X-Authentication" header.

Table 1. GET Session request details
Method Resource URI Description

GET

session

/sspcmrest/sspcm/rest/session

Gets the user-id information that corresponds to the session retrieved from Sterling Secure Proxy Configuration Manager.

Table 2. GET Session Header input parameters
Parameter Required or Optional Description Validation Valid values

sessionToken

Required

The unique session token that is generated when you log in.

Must be a non-empty string

a-zA-Z0-9

Table 3. GET Session response body parameters
Parameter Description

User ID

The User ID that is used to authenticate with Sterling Secure Proxy Configuration Manager.

HTTP Session request

The following example shows the HTTP request.

GET https://localhost:8443/sspcmrest/sspcm/rest/session
“X-Authentication”: “61504f4a524b48532b776a3467643733374b526368513d3d”

XML Session response

The following example shows the XML response.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <XmlResponse>
    <httpCode>200</httpCode>
    <httpStatus>OK</httpStatus>
    <action>None</action>
    <messageLevel>INFO</messageLevel>
    <objectsList>{"userId":"admin"}</objectsList>
    <results/>
    </XmlResponse>