API Guide

Table Of Contents
"@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": "xx.xx.xx.xx",
"StartTimeStamp": "2017-04-17 20:07:12.357",
"LastAccessedTimeStamp": "2017-04-17 20:07:45.482"
}
]
}
Table 199. Attributes
Attribute name Description
Id ID of the session service.
UserName User name of the active session.
Password Password of the active session.
Roles Privilege assigned to the role.
IpAddress IP Address of session source.
StartTimeStamp Date and time when the session began.
LastAccessedTimeStamp Date and time when the session was last accessed.
POST method for Members
This method authenticates a user and establishes a session.
Description
Establishes a session.
Privilege SECURITY_SETUP
HTTP response
codes
200
Example request
body
{
"UserName":"root",
"Password":"linux",
"SessionType":"API"
}
Example
response body
{
"Id": "7b723932-a119-4843-a5b7-7a122e4def99",
"Description": "root",
"Name": "API",
"UserName": "root",
"Password": null,
"Roles": [
"ADMINISTRATOR"
],
"IpAddress": "xx.xx.xx.xx",
Redfish resource model 649