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:
- get
The User Concurrent Sessions Limit policy.
| Name | Datatype | Description |
|---|---|---|
enabled | boolean | Whether the User Concurrent Sessions Limit policy is enabled. |
max_concurrent_sessions | integer (int32) | Maximum number of concurrent sessions a user may have. (wire: maxConcurrentSessions) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | 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](https:​//help.sumologic.com/Manage/Security/Set_a_Limit_for_User_Concurrent_Sessions) | |
update | update | 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](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.
| Name | Datatype | Description |
|---|---|---|
region | string | Sumo 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
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​
- update
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;