Reference Guide

Table Of Contents
HTTP response
codes
204
/api/SessionService/CurrentUser
This URI represents the session details of the current user.
GET method for session details of current user
This method fetches the roles and privileges details of the current user.
Description Fetches roles and privileges details of the current user.
Privilege VIEW
HTTP response
codes
200
Example
response body
{
"@odata.context": "/api/$metadata#SessionService.SessionUser",
"@odata.type": "#SessionService.SessionUser",
"@odata.id": "/api/SessionService/CurrentUser",
"UserName": "root",
"Roles": [
"CHASSIS_ADMINISTRATOR"
],
"Privileges": [
"VIEW",
"APPLIANCE_SETUP",
"SECURITY_SETUP",
"MONITORING_SETUP",
"POWER_CONTROL",
"DEVICE_CONFIGURATION",
"OPERATING_SYSTEM_DEPLOYMENT",
"DEVICE_UPDATE",
"TEMPLATE_MANAGEMENT",
"BASELINE_MANAGEMENT",
"POWER_MANAGEMENT",
"JOB_MANAGEMENT",
"ALERT_MANAGEMENT",
"FABRIC_MANAGEMENT",
"NETWORK_MANAGEMENT"
]
}
/api/SessionService/SessionConfiguration
GET method for SessionConfiguration
Description
This method adds the ability to configure the inactivity (not active sessions) timeout interval and the
maximum number of sessions that are enabled per session type. When these properties are changed, the
properties of the current active sessions are not terminated or modified.
Privilege VIEW, SECURITY_SETUP
HTTP response
codes
200
Example
response body
{
"@odata.context": "/api/
Session 453