POST Create Session

Creates a session with the Sterling Secure Proxy Configuration Manager.

With the session method, you can create a session with 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. Create Session request details
Method Resource URI Description

POST

session

/sspcmrest/sspcm/rest/session

Creates a new session with the Sterling Secure Proxy Configuration Manager.

Table 2. Create Session request body parameters
Parameter Description

User ID

Authenticates with the Sterling Secure Proxy Configuration Manager.

Password

Authenticates with the Sterling Secure Proxy Configuration Manager

HTTP Session request

The following example shows the HTTP request:

POST https://localhost:8443/sspcmrest/sspcm/rest/session
“Content-Type”: “application/json”
Note: The User ID and Password must be specified in JSON format. Example below.
{"userId":"admin","password":"password"}

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>{"sessionToken":
"663844447051757739424b2b594967375679396451413d3d"}</objectsList>
    <results/>
    </XmlResponse>