Adding Single Entry to Firewall Alias List #510
1hamidreza
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Currently, v2 does not support appending new values to an existing array directly. This limitation is primarily due to how v2 defines schemas, which mandates that endpoints interact with entire objects rather than individual or primitive field values. As of now, to add new alias address entries, you can follow these steps:
I'm certainly not opposed to adding a new control parameter that would allow a PATCH request to append the submitted array values to the existing array instead of replacing it. I am still accepting new features for v2.1.0 if you'd like to submit a feature request for this functionality. Thank you for your input! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
In API v1 we had an endpoint :
/api/v1/firewall/alias/entry
and we could add a new entry to the current Alias list without removing or changing the previous entries in the alias.
In API v2 seems to be no option for adding entry and PATCH method for endpoint :
/api/v2/firewall/alias
would replace the current Alias list and if you want to add a new entry you would include all of the current entries in your request to have them all in the Alias list after adding.
Any idea how to do that ?
Beta Was this translation helpful? Give feedback.
All reactions