Replies: 3 comments 1 reply
-
i am also having this issue, ive been using the source code of the API here, to muddle my way though ... but im now at this point too, and i can confirm, it does seem to replace the whole list, and not "ADD" to it, |
Beta Was this translation helpful? Give feedback.
-
ok i re-visited this today, and i can confirm that you CAN retrieve the list of IPs from a access list !!
will return the complete IP list contained within that access-list :)
|
Beta Was this translation helpful? Give feedback.
-
also found that the reason we cannot seemingly use the API to just "update" the list by sending one item, makes sense, when you understand how its using it ... |
Beta Was this translation helpful? Give feedback.
-
Hey,
Im trying to use the API to add an additional IP address to a Access-List, however the Update API overwrites the whole Clients section instead of just adding the extra one.
Not a problem i thought, ill just go a fetch the existing list first and then append the new one! But the GET nginx/access-lists/ (both all and specific by id) doesnt return the full configuration, just a high level summary.
{'id': 3, 'created_on': '2023-09-13 13:22:43', 'modified_on': '2023-09-13 13:22:43', 'owner_user_id': 1, 'name': 'LiveStream', 'meta': {}, 'satisfy_any': 0, 'pass_auth': 0, 'proxy_host_count': 0}
Ive tried to read the Documentation (JSON files) but cant seem to see anywhere which gives me the data i need.
Am i being dim, or does the API not return this information anywhere?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions