Modify session policy
Modifies the session policy settings in the GUI. These settings control sessions logged into the library GUI, REST API, or any local Integrated Management Console (IMC). The parameters are all optional and can be issued separately.
Request syntax
PATCH
/v1/authentication/sessionPolicy {"autoLogout": <minutes|null>, "autoIMCLogin":
<enabled"|"disabled">}
Modify the session policy settings.
Request body parameters
autoLogout(number, optional)-
Number of minutes before a user is automatically logged out of the GUI or REST API. Can be
nullif disabled, in which case sessions are not timed out. autoIMCLogin(string, optional)-
Whether the
localGUIuser account is enabled to connect to the local IMC or not:enabledordisabled. For Diamondback this cannot be set as there is no IMC.
Example
> PATCH /v1/authentication/sessionPolicy {"autoLogout": 180}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0
Error handling
- Returns
422 Unprocessable EntryifenabledordisabledforautoIMCLoginis specified when no IMC exists.