First, thanks for the awesome API 🙏🏼
Describe the bug
I have an HAProxy backend setup with multiple servers in an active/standby setup.
To setup the standby servers I specify the backup directive in the Advanced textbox within the GUI as per the following screenshot
This field is not returned by the API GET /api/v2/services/haproxy/backends. Only the following fields are returned
{
'parent_id': 18,
'id': 1,
'name': 'redacted',
'status': 'active',
'address': 'redacted',
'port': '80',
'weight': 1,
'ssl': False,
'sslserververify': False,
'serverid': 790
}
Because this field is missing when I later on in the code update this backend using the PATCH /api/v2/services/haproxy/backend endpoint I end up with the servers without the backup directive
Expected behavior
The endpoints that retrieve backends should retrieve all the backend server fields
pfSense Version & Package Version:
- pfSense Version: 24.11
- Package Version: 2.4.1
First, thanks for the awesome API 🙏🏼
Describe the bug
I have an HAProxy backend setup with multiple servers in an active/standby setup.
To setup the standby servers I specify the
backupdirective in theAdvancedtextbox within the GUI as per the following screenshotThis field is not returned by the API
GET /api/v2/services/haproxy/backends. Only the following fields are returned{ 'parent_id': 18, 'id': 1, 'name': 'redacted', 'status': 'active', 'address': 'redacted', 'port': '80', 'weight': 1, 'ssl': False, 'sslserververify': False, 'serverid': 790 }Because this field is missing when I later on in the code update this backend using the
PATCH /api/v2/services/haproxy/backendendpoint I end up with the servers without thebackupdirectiveExpected behavior
The endpoints that retrieve backends should retrieve all the backend server fields
pfSense Version & Package Version: