Перейти к основному содержимому

SessionService

Session 1.8.0

 
Versionv1.8
Release2024.4

Description

The Session resource describes a single connection (session) between a client and a Redfish service instance.

URIs

/​redfish/​v1/​SessionService/​Sessions/​{SessionId}

Properties

PropertyTypeAttributesNotes
Actions (v1.1+) {}objectThe available actions for this resource.
ClientOriginIPAddress (v1.3+)stringread-only
(null)
The IP address of the client that created the session.
Context (v1.5+)stringread-only
(null)
A client-supplied string that is stored with the session.
CreatedTime (v1.4+)string
(date-time)
read-only
(null)
The date and time when the session was created.
ExpirationTime (v1.8+)string
(date-time)
read-onlyThe date and time when the session expires regardless of session activity.
Links (v1.7+) {objectThe links to other resources that are related to this resource.
      Oem {}objectThe OEM extension property. See the Resource schema for details on this property.
      OutboundConnection (v1.7+) {objectThe outbound connection associated with this session.
            @odata.idstring
(URI)
read-onlyThe unique identifier for a resource.
      }
}
Oem {}objectThe OEM extension property. See the Resource schema for details on this property.
OemSessionType (v1.2+)stringread-only
(null)
The active OEM-defined session type.
Passwordstringread-only required on create
(null)
The password for this session. The value is null in responses.
Roles (v1.7+) [ ]array (string, null)read-onlyThe Redfish roles that contain the privileges of this session.
SessionType (v1.2+)string
(enum)
read-only
(null)
The active session type. For the possible property values, see SessionType in Property details.
Token (v1.6+)stringread-only
(null)
The multi-factor authentication token for this session. The value is null in responses.
UserNamestringread-only required on create
(null)
The username for the account for this session.

Property details

SessionType

 

The active session type.

stringDescription
HostConsoleThe host's console, which could be connected through Telnet, SSH, or another protocol.
IPMIIntelligent Platform Management Interface.
KVMIPA Keyboard-Video-Mouse over IP session.
ManagerConsoleThe manager's console, which could be connected through Telnet, SSH, SM CLP, or another protocol.
OEMOEM type. For OEM session types, see the OemSessionType property.
OutboundConnection (v1.7+)A Redfish Specification-defined outbound connection. See the 'Outbound connections' clause of the Redfish Specification.
RedfishA Redfish session.
VirtualMediaVirtual media.
WebUIA non-Redfish web user interface session, such as a graphical interface or another web-based protocol.

Example response

{
"@odata.type": "#Session.v1_8_0.Session",
"Id": "1234567890ABCDEF",
"Name": "User Session",
"Description": "Manager User Session",
"UserName": "Administrator",
"@odata.id": "/redfish/v1/SessionService/Sessions/1234567890ABCDEF"
}

SessionService 1.2.0

 
Versionv1.2
Release2024.4

Description

The SessionService schema describes the session service and its properties, with links to the actual list of sessions.

URIs

/​redfish/​v1/​SessionService

Properties

PropertyTypeAttributesNotes
AbsoluteSessionTimeout (v1.2+)integer
(s)
read-writeThe maximum number of seconds that a session is open before the service closes the session regardless of activity.
AbsoluteSessionTimeoutEnabled (v1.2+)booleanread-writeAn indication of whether an absolute session timeout is applied to sessions.
Actions (v1.1+) {}objectThe available actions for this resource.
Oem {}objectThe OEM extension property. See the Resource schema for details on this property.
ServiceEnabledbooleanread-write
(null)
An indication of whether this service is enabled. If true, this service is enabled. If false, it is disabled, and new sessions cannot be created, old sessions cannot be deleted, and established sessions can continue operating.
Sessions {objectThe link to a collection of sessions.
      @odata.idstring
(URI)
read-onlyThe unique identifier for a resource.
}
SessionTimeoutinteger
(s)
read-writeThe number of seconds of inactivity that a session can have before the session service closes the session due to inactivity.
Status {}objectThe status and health of the resource and its subordinate or dependent resources. See the Resource schema for details on this property.

Example response

{
"@odata.type": "#SessionService.v1_2_0.SessionService",
"Id": "SessionService",
"Name": "Session Service",
"Description": "Session Service",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"ServiceEnabled": true,
"SessionTimeout": 30,
"Sessions": {
"@odata.id": "/redfish/v1/SessionService/Sessions"
},
"@odata.id": "/redfish/v1/SessionService"
}