Update cluster user sessions configuration
This page will soon be available only on the dedicated Dynatrace Managed Documentation site. Update your bookmarks.
This API call updates a cluster user sessions configuration. You can modify the user sessions configuration by specifying new concurrent user session limits for cluster admin accounts and regular users. Set limits to 0
for unlimited concurrent user sessions. If you choose to set any of the limits to 0
, the limit for the other account type also must be set to 0
.
You can use this request to update automatic logout policy. By default, there's no auto logout of users who stay on auto-refreshable page. Use below payload to turn automatic logout on and set the session timeout to 900
seconds (15 minutes).
1"automaticLogoutDto": {2 "logoutInactiveUsersEnabled": true,3 "userInactivityTimeout": 9004 }
Authentication
To execute this request, you need the Service Provider API (ServiceProviderAPI
) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.
Endpoint
/api/cluster/v2/clusterConfig/userSessions
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
body | UserSessionsConfig | The configuration of user sessions - concurrent sessions policy and automatic logout. | body | optional |
Request body objects
The UserSessionsConfig
object
The configuration of user sessions - concurrent sessions policy and automatic logout.
Element | Type | Description | Required |
---|---|---|---|
concurrentSessionPolicyDto | ConcurrentSessionPolicy | The configuration of the concurrent sessions policy. Set '0' to disable session limitation. | required |
automaticLogoutDto | AutomaticLogoutConfiguration | Configuration of automatic logout. | required |
The ConcurrentSessionPolicy
object
The configuration of the concurrent sessions policy. Set '0' to disable session limitation.
Element | Type | Description | Required |
---|---|---|---|
userLimit | integer | Session limit for regular users (0 = no limit) | required |
adminLimit | integer | Session limit for admin users (0 = no limit) | required |
The AutomaticLogoutConfiguration
object
Configuration of automatic logout.
Element | Type | Description | Required |
---|---|---|---|
logoutInactiveUsersEnabled | boolean | True if automatic logout is enabled | required |
userInactivityTimeout | integer | User inactivity timeout | required |
Request body JSON model
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
1{2 "concurrentSessionPolicyDto": {3 "userLimit": 1,4 "adminLimit": 15 },6 "automaticLogoutDto": {7 "logoutInactiveUsersEnabled": true,8 "userInactivityTimeout": 9009 }10}
Response
Response codes
Code | Description |
---|---|
200 | Successful |
400 | Wrong parameters |
510 | Configuration update failed |
Example
In this example, the request updates the cluster user sessions configuration. Cluster updates the current session policy for concurrent sign-ins and user inactivity. The request indicates that the concurrent sign-in limit for users is 3
. The limit for cluster admin accounts is 5
. Also, the inactivity sign-out policy is in effect and is set to 900
seconds.
Curl
1curl -X PUT "https://myManaged.cluster.com/api/cluster/v2/clusterConfig/userSessions"2 -H "accept: */*"3 -H "Content-Type: */*"4 -d "{\"concurrentSessionPolicyDto\":{\"userLimit\":0,\"adminLimit\":0},\"automaticLogoutDto\":{\"logoutInactiveUsersEnabled\":true,\"userInactivityTimeout\":900}}"
Request URL
1https://myManaged.cluster.com/api/cluster/v2/clusterConfig/userSessions
Request body
1{2 "concurrentSessionPolicyDto": {3 "userLimit": 3,4 "adminLimit": 55 },6 "automaticLogoutDto": {7 "logoutInactiveUsersEnabled": true,8 "userInactivityTimeout": 9009 }10}
Response code
204