find_object_by_field
Find an object in a pfSense collection by matching a field value, providing a stable reference that avoids ID instability after deletions.
Instructions
Find an object by a specific field value (safer than using IDs).
Use this instead of IDs when you need a stable reference to an object, since pfSense object IDs change after deletions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field name to search by (e.g. "descr", "name") | |
| value | Yes | Value to search for | |
| endpoint | Yes | Relative API path of a collection (e.g. "/firewall/rules", "/firewall/aliases", "/interfaces") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||