Querying Session Service Information
Function
This interface is used to query information about the current session service.
Syntax
Operation type: GET
URL: https://device_ip/redfish/v1/SessionService
Request header:
X-Auth-Token: auth_value
Request message body: None
Parameters
Parameter |
Description |
Value |
---|---|---|
device_ip |
IP address for logging in to a device. |
An IPv4 or IPv6 address. |
auth_value |
Authentication parameter contained in the request. |
You can obtain the value from the session created by using /redfish/v1/SessionService/Sessions. |
Usage Guidelines
None
Example
Request:
GET https://10.10.10.10/redfish/v1/SessionService
Request header:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1
Request message body: None
Response:
{@odata.context: "/redfish/v1/$metadata#SessionService"
@odata.id: "/redfish/v1/SessionService"
@odata.type: "#SessionService.v1_0_2.SessionService"
Id: "SessionService"
Name: "Session Service"
SessionTimeout: 1000
Sessions: {@odata.id: "/redfish/v1/SessionService/Sessions"}}
Response code: 200
Output Description
Attribute |
Type |
Description |
---|---|---|
@odata.context |
Character string |
OData description of the SessionService resource model. |
@odata.id |
Character string |
Access path of a SessionService resource node. |
@odata.type |
Character string |
Type of a SessionService resource. |
Id |
Character string |
ID of a SessionService resource. |
Name |
Character string |
Name of a SessionService resource. |
SessionTimeout |
Numeric value |
Timeout interval of a Redfish session. |
Sessions |
Object |
List of sessions. |
@odata.id |
Character string |
Access path of the session list. |