stormshield.sns.sns_object_import module – SNS object csv import
Note
This module is part of the stormshield.sns collection (version 1.0.2).
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 stormshield.sns
.
To use it in a playbook, specify: stormshield.sns.sns_object_import
.
Synopsis
This module uploads objects with the specified CSV file to SNS appliance
Configuration API reference: https://documentation.stormshield.eu/SNS/v3/en/Content/CLI_Serverd_Commands_reference_Guide_v3/Introduction.htm
Parameters
Parameter |
Comments |
---|---|
appliance connection’s parameters (host, port, user, password, sslverifypeer, sslverifyhost, cabundle, usercert, proxy) |
|
Set to true to disconnect other administrator already connected with modify privilege. |
|
Set the CSV file to upload |
|
Set the connection and read timeout. |
Notes
Note
This module requires the stormshield.sns.sslclient library
Examples
- name: Upload CSV OBJECT with a local file
sns_object_import:
path: path/to/objectFile.csv
appliance:
host: myappliance.local
password: mypassword
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
JSON output in string Format Returned: success Sample: |
|
upload status. Can be [‘OK’,’FAILED’] Returned: changed Sample: |