Hello.
Thank you for your help!
Seems it works this way. :D
- have a nice Day
Rath
Thank you for your help!
Seems it works this way. :D
- have a nice Day
Rath
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
POST to /api/firewall/alias/addItem
Data: {"name": "IPLIST_Spamhaus_DROPv6", "type": "urltable", "content": ["https://www.spamhaus.org/drop/dropv6.txt"]}
updatefreq refenence: https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Firewall/Alias.xml
updatefreq_days reference: https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/views/OPNsense/Firewall/alias.volt
Combined string:
{"name": "N", "type": "urltable", "content": ["U"], "updatefreq": "7d"}
Default int: (not defined if days or hours?)
{"name": "N", "type": "urltable", "content": ["U"], "updatefreq": 7}
Days string:
{"name": "N", "type": "urltable", "content": ["U"], "updatefreq_days": "7"}
Days int:
{"name": "N", "type": "urltable", "content": ["U"], "updatefreq_days": 7}
Nested string:
{"name": "N", "type": "urltable", "content": ["U"], "updatefreq": {"updatefreq_days": "7"}}
Nested int:
{"name": "N", "type": "urltable", "content": ["U"], "updatefreq": {"updatefreq_days": 7}}
Note: 'N' and 'U' are replacements to simplify the examples