user_concurrent_sessions_limit
Creates, updates, deletes, gets or lists a user_concurrent_sessions_limit resource.
Overview
| Name | user_concurrent_sessions_limit |
| Type | Resource |
| Id | sumologic.policies.user_concurrent_sessions_limit |
Fields
The following fields are returned by SELECT queries:
- getUserConcurrentSessionsLimitPolicy
The User Concurrent Sessions Limit policy.
| Name | Datatype | Description |
|---|---|---|
enabled | boolean | Whether the User Concurrent Sessions Limit policy is enabled. |
maxConcurrentSessions | integer (int32) | Maximum number of concurrent sessions a user may have. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
getUserConcurrentSessionsLimitPolicy | select | region | Get the User Concurrent Sessions Limit policy. When enabled, the number of concurrent sessions a user may have is limited to the value entered. If a user exceeds the allowed number of sessions, the user's oldest session will be logged out to accommodate the new one. Disabling this policy means a user may have an unlimited number of concurrent sessions. Learn More | |
setUserConcurrentSessionsLimitPolicy | exec | region, enabled | Set the User Concurrent Sessions Limit policy. When enabled, the number of concurrent sessions a user may have is limited to the value entered. If a user exceeds the allowed number of sessions, the user's oldest session will be logged out to accommodate the new one. Disabling this policy means a user may have an unlimited number of concurrent sessions. Learn More |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | SumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2) |
SELECT examples
- getUserConcurrentSessionsLimitPolicy
Get the User Concurrent Sessions Limit policy. When enabled, the number of concurrent sessions a user may have is limited to the value entered. If a user exceeds the allowed number of sessions, the user's oldest session will be logged out to accommodate the new one. Disabling this policy means a user may have an unlimited number of concurrent sessions. Learn More
SELECT
enabled,
maxConcurrentSessions
FROM sumologic.policies.user_concurrent_sessions_limit
WHERE region = '{{ region }}' -- required
;
Lifecycle Methods
- setUserConcurrentSessionsLimitPolicy
Set the User Concurrent Sessions Limit policy. When enabled, the number of concurrent sessions a user may have is limited to the value entered. If a user exceeds the allowed number of sessions, the user's oldest session will be logged out to accommodate the new one. Disabling this policy means a user may have an unlimited number of concurrent sessions. Learn More
EXEC sumologic.policies.user_concurrent_sessions_limit.setUserConcurrentSessionsLimitPolicy
@region='{{ region }}' --required
@@json=
'{
"enabled": {{ enabled }},
"maxConcurrentSessions": {{ maxConcurrentSessions }}
}'
;