Modifying Session Service Information
Function
This interface is used to modify information about a session service.
Syntax
Operation type: PATCH
URL: https://device_ip/redfish/v1/SessionService
Request header:
X-Auth-Token: auth_value Content-Type: header_type
Request message body:
{ "SessionTimeout": sessiontimeout, "Password": password }
Parameter Description
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. |
header_type |
Request format. |
Supported formats include:
|
SessionTimeout |
Timeout interval of a Redfish session. |
The value ranges from 5 to 120 minutes. |
Password |
Password of the current user. |
- |
Usage Guidelines
None
Example
Request:
PATCH https://10.10.10.10/redfish/v1/SessionService
Request header:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1 Content-Type: application/json
Request message body:
{ "SessionTimeout":16, "Password":"Huawei12#$" }
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": 16, "Sessions": { "@odata.id": "/redfish/v1/SessionService/Sessions" } }
Response code: 200
Output Description
Field |
Type |
Description |
---|---|---|
@odata.context |
Character string |
OData information of the current session service resource model. |
@odata.id |
Character string |
Access path of the current session service resource node. |
@odata.type |
Character string |
Type of the current session service resource. |
Id |
Character string |
ID of the current session service resource. |
Name |
Character string |
Name of the current session service 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. |