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.
max_concurrent_sessionsinteger (int32)Maximum number of concurrent sessions a user may have. (wire: maxConcurrentSessions)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectregionGet 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](https:​//help.sumologic.com/Manage/Security/Set_a_Limit_for_User_Concurrent_Sessions)
updateupdateregion, 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](https:​//help.sumologic.com/Manage/Security/Set_a_Limit_for_User_Concurrent_Sessions)

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
regionstringSumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT)

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,
max_concurrent_sessions
FROM sumologic.policies.user_concurrent_sessions_limit
WHERE region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
;

UPDATE examples​

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

UPDATE sumologic.policies.user_concurrent_sessions_limit
SET
enabled = {{ enabled }},
max_concurrent_sessions = {{ max_concurrent_sessions }}
WHERE
region = '{{ region }}' --required unless SUMOLOGIC_ENVIRONMENT is set
AND enabled = {{ enabled }} --required
RETURNING
enabled,
max_concurrent_sessions;