sva.sentinelone.sentinelone_sites module – Manage SentinelOne Sites
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_sites
.
New in sva.sentinelone 1.0.0
Synopsis
This module is able to create, update and delete sites 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 |
|
Description for the site Default: |
|
Sets the expiration date Use -1 (default) to set to max expiration available. This is either unlimited or account expiration date. Format is ISO 8601 without microseconds Examples: 2022-03-15T10:20+00:00 2022-03-15T11:21+0100 Default: |
|
The SKU to use Choices:
|
|
The name of the site |
|
The type of the site Choices:
|
|
Select the state of the site Choices:
|
|
SentinelOne API auth token to authenticate at the management API |
|
Count of total agent licenses to be assigned to site Use -1 (default) to set to unlimited licenses in site Default: |
Notes
Note
Python module deepdiff. Tested with version >=5.6. Lower version may work too
Currently only supported in single-account management consoles
Policy is always inherited from Account scope. If you want to change the policy please use sentinelone_policies module
Examples
---
- name: Create / update site
sva.sentinelone.sentinelone_sites:
console_url: "https://XXXXX.sentinelone.net"
token: "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
name: "test"
license_type: "control"
expiration_date: "2022-06-01T12:00+01:00"
description: "Testsite"
- name: Delete site
sva.sentinelone.sentinelone_sites:
state: "absent"
console_url: "https://XXXXX.sentinelone.net"
token: "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
name: "test"
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: |