API Guide
/api/SessionService/Sessions
This URI represents a collection of active session services.
GET method for Sessions
This method returns the collection of active session service.
Description Returns a collection of active session services.
Privilege VIEW
HTTP response
codes
200
Example
Input:
Output:
{
"@odata.context": "$metadata#Collection(SessionService.Session)",
"@odata.count": 1,
"value": [
{
"@odata.id": "/api/SessionService/Sessions('7b723932-a119-4843-
a5b7-7a122e4def99')",
"Id": "7b723932-a119-4843-a5b7-7a122e4def99",
"Description": "root",
"Name": "API",
"UserName": "root",
"Password": null,
"Roles": [
"ADMINISTRATOR"
],
"IpAddress": "10.210.136.38",
"StartTimeStamp": "2017-04-17 20:07:12.357",
"LastAccessedTimeStamp": "2017-04-17 20:07:45.482"
}
]
}
Table 114. Attributes
Attribute Name Description
Id The unique identifier of the SessionService.
UserName The session user name.
Password The session user password.
Roles Role privileges.
IpAddress IP address of session source.
StartTimeStamp Time when the session began.
LastAccessedTimeStamp Time when the session was last accessed.
Description Description for the user session.
POST method for Sessions
This method authenticates the user and establishes a session.
Description
Authenticates the user and establishes a session.
Privilege SECURITY_SETUP
Session 255