Retrieving Fail2Ban Settings

Use the get-settings operation to retrieve information about Fail2Ban settings.

In this chapter:

Samples

 
Samples

Request package looks like:

<packet>
<ip-ban>
  <get-settings/>
</ip-ban>
</packet>

Response:

<packet version="1.6.7.0">
  <ip-ban>
    <get-settings>
      <result>
        <status>ok</status>
        <settings>
          <ban-period>101</ban-period>
          <ban-time-window>120</ban-time-window>
          <max-retries>1</max-retries>
        </settings>
      </result>
    </get-settings>
  </ip-ban>
</packet>