|
| 1 | +--- |
| 2 | +layout: "sumologic" |
| 3 | +page_title: "SumoLogic: sumologic_policies" |
| 4 | +description: |- |
| 5 | + Sets the Sumologic Policies |
| 6 | +--- |
| 7 | + |
| 8 | +# sumologic_policies |
| 9 | +Sets the Sumologic Policies. Since each policy is global for the entire organization, please ensure that only a single |
| 10 | +instance of this resource is defined. The behavior for defining more than one policies resource is undefined. |
| 11 | + |
| 12 | +The following policies are supported: |
| 13 | +- [Audit Policy][1] |
| 14 | +- [Data Access Level Policy][2] |
| 15 | +- [Maximum Web Session Timeout Policy][3] |
| 16 | +- [Search Audit Policy][4] |
| 17 | +- [Share a Dashboard Outside Organization Policy][5] |
| 18 | +- [User Concurrent Sessions Limit Policy][6] |
| 19 | + |
| 20 | +## Example Usage |
| 21 | +```hcl |
| 22 | +resource "sumologic_policies" "example_policies" { |
| 23 | + audit = false |
| 24 | + data_access_level = false |
| 25 | + max_user_session_timeout = "7d" |
| 26 | + search_audit = false |
| 27 | + share_dashboards_outside_organization = false |
| 28 | + user_concurrent_sessions_limit { |
| 29 | + enabled = false |
| 30 | + max_concurrent_sessions = 100 |
| 31 | + } |
| 32 | +} |
| 33 | +``` |
| 34 | + |
| 35 | +## Argument reference |
| 36 | + |
| 37 | +The following arguments are supported: |
| 38 | + |
| 39 | +- `audit` - (Optional) Whether the [Audit Policy][1] is enabled. Defaults to `false`. |
| 40 | +- `data_access_level` - (Optional) Whether the [Data Access Level Policy][2] is enabled. Defaults to `false`. |
| 41 | +- `max_user_session_timeout` - (Optional) The [maximum web session timeout][3] users are able to configure within their user preferences. Defaults to `7d`. |
| 42 | +- `search_audit` - (Optional) Whether the [Search Audit Policy][4] is enabled. Defaults to `false`. |
| 43 | +- `share_dashboards_outside_organization` - (Optional) Whether the [Share a Dashboard Outside Organization Policy][5] is enabled. Defaults to `false`. |
| 44 | +- `user_concurrent_sessions_limit` - (Block List, Max: 1, Optional) The [User Concurrent Sessions Limit Policy][6]. See [user_concurrent_sessions_limit schema](#user_concurrent_sessions_limit) for details. |
| 45 | + |
| 46 | +### Schema for `user_concurrent_sessions_limit` |
| 47 | +- `enabled` - (Optional) Whether the [User Concurrent Sessions Limit Policy][6] is enabled. Defaults to `false`. |
| 48 | +- `max_concurrent_sessions` - (Optional) Maximum number of concurrent sessions a user may have. Defaults to `100`. |
| 49 | + |
| 50 | +[1]: https://help.sumologic.com/Manage/Security/Audit-Index |
| 51 | +[2]: https://help.sumologic.com/Manage/Security/Data_Access_Level_for_Shared_Dashboards |
| 52 | +[3]: https://help.sumologic.com/Manage/Security/Set_a_Maximum_Web_Session_Timeout |
| 53 | +[4]: https://help.sumologic.com/Manage/Security/Search_Audit_Index |
| 54 | +[5]: https://help.sumologic.com/Visualizations-and-Alerts/Dashboards/Share_Dashboards/Share_a_Dashboard_Outside_Your_Org |
| 55 | +[6]: https://help.sumologic.com/Manage/Security/Set_a_Limit_for_User_Concurrent_Sessions |
0 commit comments