diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-06 12:25:01 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-11 14:09:51 +0200 |
commit | e3a73a504f6a63bf1a716131cf9dea75dc7b0b41 (patch) | |
tree | 7f5c3d265e654221d4f655d90f2e2a65d0250774 /src/core.c | |
parent | 1fa3813b92139458854f33436c3e4af2f8ecae6b (diff) |
rest: add GET /efi
Add GET /efi request to obtain information about the client's
boot entries.
Field inside the /refresh payload
'efi': {
'entries': [
{
"order": 0,
"name": "Boot0000",
"active": false,
"description": "grub"
},
{
"order": 1,
"name": "Boot0001",
"active": true,
"description": "UEFI: PXE IP4 Realtek PCIe GBE Family Controller"
}
]
}
If the client is not a EFI system it won't add the 'efi' field.
If an entry is not in the boot order it won't have the 'order' field.
GET /efi resquest payload structure:
{
'clients': ['10.141.10.21', '10.141.10.22']
}
GET /efi response's structure:
{
'clients': [
{
'ip': '10.141.10.21',
'entries': [
{
"order": 0,
"name": "Boot0000",
"active": false,
"description": "grub"
},
{
"order": 1,
"name": "Boot0001",
"active": true,
"description": "UEFI: PXE IP4 Realtek PCIe GBE Family Controller"
}
]
},
{
'ip': '10.141.10.22',
'entries': []
}
]
}
The client with ip 10.141.10.22 is a BIOS system.
If an entry does not appear in the boot order it won't have the
'order' field.
Diffstat (limited to 'src/core.c')
0 files changed, 0 insertions, 0 deletions