ingatesystems.fuego_modules.fuego_information – Retrieve information from an Ingate SBC.
Note
This plugin is part of the ingatesystems.fuego_modules collection (version 1.1.0).
You might already have this collection installed if you are using the ansible
package.
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 ingatesystems.fuego_modules
.
To use it in a playbook, specify: ingatesystems.fuego_modules.fuego_information
.
New in version 1.0.0: of ingatesystems.fuego_modules
Synopsis
Retrieve information from an Ingate SBC.
Requirements
The below requirements are needed on the host that executes this module.
ingatesdk >= 1.0.14
Parameters
Parameter |
Comments |
---|---|
A dict object containing connection details. |
|
The hostname or IP address to the unit. |
|
The password for the REST API user. |
|
Which HTTP(S) port to connect to. |
|
Which HTTP protocol to use. Choices:
|
|
The timeout (in seconds) for REST API requests. |
|
The username of the REST API user. |
|
Verify the unit’s HTTPS certificate. Choices:
|
|
REST API version. Choices:
|
|
List all errors in all tables in the preliminary configuration. Choices:
|
|
Return SIP status information and metrics. Choices:
|
|
Describe all configuration tables, listing its columns and their types. Choices:
|
|
List all tables. Choices:
|
|
Retrieve information about the unit. Choices:
|
Notes
Note
This module deprecates the Ingate network module ig_unit_information that was present in Ansible < 2.10.
This module requires that the Ingate Python SDK is installed on the host. To install the SDK use the pip command from your shell
pip install ingatesdk
.
Examples
# Retrieve information about the unit
- fuego_information:
client: "{{ stored_client_data }}"
unit: true
# List current configuration error(s)
- fuego_information:
client: "{{ stored_client_data }}"
error: true
# Describe all tables
- fuego_information:
client: "{{ stored_client_data }}"
table_describe: true
# List all tables
- fuego_information:
client: "{{ stored_client_data }}"
table_list: true
# Return SIP status information and metrics
- fuego_information:
client: "{{ stored_client_data }}"
sip_status: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
List of error(s) found in the the preliminary configuration Returned: when |
|
Error information Returned: success |
|
Column name Returned: success Sample: “lower_ip_dns” |
|
Error number Returned: success Sample: 4 |
|
Error message Returned: success Sample: “No value given.” |
|
Row number Returned: success Sample: 1 |
|
Table name Returned: success Sample: “firewall.network_groups” |
|
Type of error Returned: success Sample: “VALUE_MISSING” |
|
The REST API URL to the affected row Returned: success |
|
SIP status information and metrics Returned: when |
|
A list of active SIP sessions Returned: success |
|
The time when the SIP session was established Returned: success Sample: “10:50:51” |
|
The state of the SIP session Returned: success Sample: “Established” |
|
The amount of active SIP sessions Returned: success Sample: 0 |
|
The amount of maximum registered SIP users Returned: success Sample: 0 |
|
The amount of maximum active SIP sessions Returned: success Sample: 0 |
|
The amount of registered SIP users Returned: success Sample: 0 |
|
A list of blacklisted peers Returned: success Sample: [] |
|
A list of blacklisted peers Returned: success |
|
The amount of hits for a rule Returned: success Sample: 0 |
|
The name of a rule Returned: success Sample: “Scanners” |
|
The rule number Returned: success Sample: 1 |
|
A list of blacklisted peers Returned: success |
|
The amount of hits for a rule Returned: success Sample: 0 |
|
The name of a rule Returned: success Sample: “Default auto” |
|
A list of different license statistics Returned: success |
|
The amount of used licenses Returned: success Sample: 0 |
|
The type of license Returned: success Sample: “SIP Registrar Users” |
|
The amount of maximum used licenses Returned: success Sample: 0 |
|
A list of different message statistics Returned: success |
|
The type of message Returned: success Sample: “INVITE” |
|
The amount of received messages Returned: success Sample: 0 |
|
The amount of transmitted messages Returned: success Sample: 0 |
|
A list of monitored SIP servers Returned: success |
|
The port used for monitoring Returned: success Sample: 5060 |
|
The server that is monitored Returned: success Sample: “192.168.28.28” |
|
The current monitoring status Returned: success Sample: “Online” |
|
The used transport protocol Returned: success Sample: “UDP” |
|
A list of registered SIP users Returned: success |
|
The IP address for which the user is registered from Returned: success Sample: “192.168.56.3” |
|
Description of tables and associated information Returned: when |
|
Table information Returned: success |
|
The REST API URL to the table Returned: success |
|
Column names and associated datatype Returned: success Sample: {“cert”: “OptPrivCert”, “name”: “Name”} |
|
The name of the table Returned: success Sample: “misc.dns_servers” |
|
List of tables and associated information Returned: when |
|
Table information Returned: success |
|
The REST API URL to the table Returned: success |
|
A list of allowed HTTP methods Returned: success Sample: “GET” |
|
The name of the table Returned: success Sample: “misc.dns_servers” |
|
A list of allowed SDK methods Returned: success Sample: “add_row” |
|
Information about the unit Returned: when |
|
The installation identifier Returned: success Sample: “any” |
|
List of interface names Returned: success Sample: “eth0 eth1 eth2 eth3 eth4 eth5” |
|
The unit’s language Returned: success Sample: “en” |
|
License MAC information Returned: success Sample: “any” |
|
License name information Returned: success Sample: “Example Inc” |
|
The MAC address of the first interface Returned: success Sample: “52:54:00:4c:e2:07” |
|
Operational mode of the unit Returned: success Sample: “Siparator” |
|
Installed module licenses Returned: success Sample: “failover vpn sip qturn ems qos rsc voipsm” |
|
Installed patches on the unit Returned: success Sample: [] |
|
The product name Returned: success Sample: “Software SIParator/Firewall” |
|
The serial number of the unit Returned: success Sample: “IG-200-839-2008-0” |
|
The system identifier of the unit Returned: success Sample: “IG-200-839-2008-0” |
|
The name of the unit Returned: success Sample: “Testname” |
|
Firmware version Returned: success Sample: “6.2.0-beta2” |