sva.sentinelone.sentinelone_groups module – Manage SentinelOne Groups
Note
This module is part of the sva.sentinelone collection (version 2.0.5).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install sva.sentinelone
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: sva.sentinelone.sentinelone_groups
.
New in sva.sentinelone 1.0.0
Synopsis
This module is able to create, update and delete static and dynamic groups in SentinelOne
Requirements
The below requirements are needed on the host that executes this module.
deepdiff >= 5.6
Parameters
Parameter |
Comments |
---|---|
Insert your management console URL |
|
If set this module creates a dynamic group based on the passed filter_name. If not set a static group is created Can only be used if you create a single group. Default: |
|
Name of the group or groups to create. You can pass multiple groups as a list |
|
Name of the site in SentinelOne |
|
Select the state of the group Choices:
|
|
SentinelOne API auth token to authenticate at the management API |
Notes
Note
Python module deepdiff. Tested with version >=5.6. Lower version may work too
Currently only supported in single-account management consoles
Can not convert from static to dynamic group or vice versa
Always inherits policy from site level. To change the policy please use the sentinelone_policy module.
Examples
---
- name: Create single static group
sva.sentinelone.sentinelone_groups:
state: "present"
console_url: "https://XXXXX.sentinelone.net"
token: "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
site_name: "test"
name: "MyGroup"
- name: Create single dynamic group
sva.sentinelone.sentinelone_groups:
state: "present"
console_url: "https://XXXXX.sentinelone.net"
token: "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
site_name: "test"
name: "MyGroup"
filter_name: "MyFilter"
- name: Create multiple static groups
sva.sentinelone.sentinelone_groups:
state: "present"
console_url: "https://XXXXX.sentinelone.net"
token: "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
site_name: "test"
name:
- "MyGroup1"
- "MyGroup2"
- "MyGroup3"
- name: Delete single static/dynamic group
sva.sentinelone.sentinelone_groups:
state: "absent"
console_url: "https://XXXXX.sentinelone.net"
token: "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
site_name: "test"
name: "MyGroup"
- name: Delete multiple static/dynamic groups
sva.sentinelone.sentinelone_groups:
state: "absent"
console_url: "https://XXXXX.sentinelone.net"
token: "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
site_name: "test"
name:
- "MyGroup1"
- "MyGroup2"
- "MyGroup3"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Get basic infos about the changes made Returned: on success Sample: |
|
Get detailed infos about the changes made Returned: on success Sample: |