Skip to main content

user_concurrent_sessions_limit

Creates, updates, deletes, gets or lists a user_concurrent_sessions_limit resource.

Overview

Nameuser_concurrent_sessions_limit
TypeResource
Idsumologic.policies.user_concurrent_sessions_limit

Fields

The following fields are returned by SELECT queries:

The User Concurrent Sessions Limit policy.

NameDatatypeDescription
enabledbooleanWhether the User Concurrent Sessions Limit policy is enabled.
maxConcurrentSessionsinteger (int32)Maximum number of concurrent sessions a user may have.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getUserConcurrentSessionsLimitPolicyselectregionGet 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
setUserConcurrentSessionsLimitPolicyexecregion, enabledSet 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.

NameDatatypeDescription
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)

SELECT examples

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

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 }}
}'
;