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

Parameters

Parameter

Comments

appliance

string

appliance connection’s parameters (host, port, user, password, sslverifypeer, sslverifyhost, cabundle, usercert, proxy)

force_modify

string

Set to true to disconnect other administrator already connected with modify privilege.

path

string

Set the CSV file to upload

timeout

string

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

output

string

JSON output in string Format

Returned: success

Sample: "{'Status': 'OK', 'Code': '0', 'Num_line': '934', 'host': '402', 'network': '532'}"

Status

string

upload status. Can be [‘OK’,’FAILED’]

Returned: changed

Sample: "OK"

Authors

  • Mehdi KHELIFA (@MEK)