scale_computing.hypercore.syslog_server module – Create, update or delete Syslog servers from HyperCore API.
Note
This module is part of the scale_computing.hypercore collection (version 1.1.0).
To install it, use: ansible-galaxy collection install scale_computing.hypercore.
To use it in a playbook, specify: scale_computing.hypercore.syslog_server.
New in scale_computing.hypercore 1.2.0
Synopsis
Use this module to create, update or delete Syslog servers from the Syslog Servers configuration on HyperCore API.
Parameters
Parameter |
Comments |
|---|---|
Scale Computing HyperCore instance information. |
|
The HyperCore instance URL. If not set, the value of the For example “https://10.1.2.3:443”. |
|
Password used for authentication. If not set, the value of the |
|
Timeout in seconds for the connection with the Scale Computing HyperCore API instance. If not set, the value of the |
|
Username used for authentication. If not set, the value of the |
|
An IP address or hostname of the Syslog server you wish to create, update or delete. |
|
An IP address or hostname with which the existing Syslog server host on the HyperCore API will be updated. |
|
Network port of the syslog server. Default: |
|
Network protocol used to send syslog alerts. Choices:
|
|
The desired state of the syslog server on HyperCore API. If state=present a new Syslog server will be added, or existing Syslog server with matching
If state=absent, the Syslog server with the provided Choices:
|
Notes
Note
check_modeis not supported.
See Also
See also
- scale_computing.hypercore.syslog_server_info
List Syslog servers on HyperCore API.
Examples
- name: Create Syslog server
scale_computing.hypercore.syslog_server:
host: 10.5.11.222
port: 514
protocol: udp
state: present
- name: Update existing Syslog server
scale_computing.hypercore.syslog_server:
host: 10.5.11.222
host_new: 1.2.3.4
port: 514
protocol: udp
state: present
- name: Delete Syslog server
scale_computing.hypercore.syslog_server:
host: 10.5.11.222
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Created or updated syslog server. Returned: success |
|
Unique identifier for an AlertTag (internal) Returned: success Sample: |
|
IP address or hostname of the syslog server Returned: success Sample: |
|
Latest Task Tag Returned: success Sample: |
|
Network port of the syslog server Returned: success Sample: |
|
Network protocol used to send syslog alerts Returned: success Sample: |
|
Alert resend delay in seconds Returned: success Sample: |
|
Alerts will not resend if there are additional event triggers within this time in seconds Returned: success Sample: |
|
Unique identifer Returned: success Sample: |