Deleting a Specified Session
Function
This interface is used to delete a specified session.
Syntax
Operation type: DELETE
URL: https://device_ip/redfish/v1/SessionService/Sessions/session_id
Request header:
X-Auth-Token: auth_value
Request message body: None
URL Parameters
Parameter |
Mandatory/Optional |
Parameter Description |
Value |
|---|---|---|---|
session_id |
Mandatory |
ID of the session to be deleted. |
Session ID. The value is a string of 48 characters, consisting of lowercase letters a to f and digits 0 to 9. |
Usage Guidelines
None
Example
Request:
DELETE https://10.10.10.10/redfish/v1/SessionService/Sessions/44010860c8d7dfe60a8728dc33dfd354efabe3eefc68535e
Request header:
X-Auth-Token: auth_value
Request message body: None
Response:
{
"error": {
"code": "Base.1.0.Success",
"message": "Operation success. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#MessageRegistry.v1_0_0.MessageRegistry",
"Description": "Indicates that no error has occurred.",
"Message": "Logout Success",
"Severity": "OK",
"NumberOfArgs": null,
"ParamTypes": null,
"Resolution": "None"
}
]
}
}
Response code: 200
Output Description
Field |
Type |
Description |
|---|---|---|
code |
Character string |
A string indicating the specific message ID in the message registry. |
message |
Character string |
Message details. |
@odata.type |
Character string |
Session resource type. |
Description |
Character string |
Details. |
Message |
Character string |
Response message. |
Severity |
Character string |
Severity supported by Redfish.
|
NumberOfArgs |
Number |
Number of the added parameters. |
ParamTypes |
Array |
Types of the added parameters. |
Resolution |
Character string |
Solution description. |