- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to add a new MAC Filter?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 07:26 AM - edited 03-03-2023 07:27 AM
I am trying to automate the process of adding MAC addresses (with an appropriate name/comment) to one of our MAC Address Filters.
I have retrieved the _ref of the MAC address filter I want to add to, I am just curious what the method would look like? Do I need to make a POST request to the _ref of the MAC filter I want to add to?
Reading the WAPI documentation (/wapidoc/objects/filtermac.html#fields-list), I cannot see a field which specifies the actual MAC address. Any assistance would be appreciated, thank you.
Solved! Go to Solution.
Re: How to add a new MAC Filter?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2023 05:43 AM
The MAC addresses of a filter are a different object type, "macfilteraddress".
When adding a new MAC address to the filter "my_filter", the call will look like this:
curl -k1 -u admin:infoblox -X POST 'https://gm.example.net/wapi/v2.11/macfilteraddress?mac=00:01:de:ad:be:ef&filter=my_filter'
Re: How to add a new MAC Filter?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 05:03 AM
Thanks a bunch! Admittedly, I discovered this part of the documentation moments after posting, haha. Thanks again.