1
19.1 Legacy Series / 19.1.1 Alias API fails to retain data or create new alias
« on: February 10, 2019, 04:56:35 pm »
When using the alias_util api for Add / List, I am able to add an address to an existing alias list which is visible in the web interface. The additional entry will be added and will be visible via the API if "list"ing the alias, but after 10 - 20 seconds it will drop every entry in the list except the new one I just added. The
Existing Alias:
name: myalias
Hosts: 100.100.100.100
POST details:
addurl = 'https://fw/api/firewall/alias_util/add/myalias'
```
addalias = requests.post(addurl,
verify=False,
auth=(api_key, api_secret),
json={'address': '200.200.200.200'})
```
i.e: listing the alias:
{u'current': 1, u'rowCount': 9999, u'total': 2, u'rows': [{u'ip': u'100.100.100.100'}, {u'ip': u'200.200.200.200'}]
}
after 10 seconds or so:
{u'current': 1, u'rowCount': 9999, u'total': 1, u'rows': [{u'ip': u'200.200.200.200'}]}
Additionally, when adding a NEW alias via the API, the alias is not visible in the web interface, nor selectable for any rules.
Please let me know if you require any further info or if I'm doing something wrong
Existing Alias:
name: myalias
Hosts: 100.100.100.100
POST details:
addurl = 'https://fw/api/firewall/alias_util/add/myalias'
```
addalias = requests.post(addurl,
verify=False,
auth=(api_key, api_secret),
json={'address': '200.200.200.200'})
```
i.e: listing the alias:
{u'current': 1, u'rowCount': 9999, u'total': 2, u'rows': [{u'ip': u'100.100.100.100'}, {u'ip': u'200.200.200.200'}]
}
after 10 seconds or so:
{u'current': 1, u'rowCount': 9999, u'total': 1, u'rows': [{u'ip': u'200.200.200.200'}]}
Additionally, when adding a NEW alias via the API, the alias is not visible in the web interface, nor selectable for any rules.
Please let me know if you require any further info or if I'm doing something wrong