Post static_mapping using REST API issue #583
-
Hello! Usually when I add a static mapping via the pfSense web interface, once the modification has been applied, the IP addresses are put in order. But when I add static mapping with the REST API using: Do you have any advice for refreshing the order of static_mapping by IPs? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can use sorting for this. In your POST request to /api/v2/services/dhcp_server/static_mapping, you can set the Since the webConfigurator sorts static mappings by IP address by default, I can make that the default for this endpoint in the next patch as well. |
Beta Was this translation helpful? Give feedback.
You can use sorting for this. In your POST request to /api/v2/services/dhcp_server/static_mapping, you can set the
sort_by
parameter toipaddr
to sort the static mappings by IP address. You can sort by any field(s) available to the endpoint.Since the webConfigurator sorts static mappings by IP address by default, I can make that the default for this endpoint in the next patch as well.