Hotfix¶
Upload the Hotfix File¶
Request
Method |
|
Path |
|
Headers |
|
Body |
Raw hotfix file content sent as binary data |
Authentication |
Authenticated web session ( |
POST /api/v2/hotfix/upload
Example Request
curl -sk -X POST 'https://10.31.118.184/api/v2/hotfix/upload' \
-H 'Content-Type: application/octet-stream' \
-H 'Origin: https://10.31.118.184' \
-H 'Referer: https://10.31.118.184/settings/system/hotfix' \
-H 'X-CSRFToken: <csrf_token>' \
-H 'Cookie: __Host-sessionid=<session_id>; csrftoken=<csrf_token>' \
--data-binary '@/path/to/hotfix_file.fshf'
Response
{
"result": "success"
}
Note
This endpoint requires an authenticated web session and CSRF protection.
Token-based authorization using the Authorization header is not sufficient.
Get Uploaded Hotfix Information¶
Request
Method |
|
Path |
|
GET /api/v2/hotfix
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/hotfix'
Response
{
"result": "success",
"hotfix": [
{
"name": "hotfix_name_5.6.3",
"description": "Hotfix for ...",
"installed": null
}
]
}
Install the Hotfix¶
Request
Method |
|
Path |
|
Headers |
|
Body |
Not required |
POST /api/v2/hotfix/install/<name>
Example Request
curl -s -k -X POST \
-H 'Authorization: <token>' \
'https://10.31.118.184/api/v2/hotfix/install/hotfix_name_5.6.3'
Response
{
"result": "success",
"output": "Running preinstall script.\nStopping pmonitord.\nWaiting for PIDS: 49368.\nStopping fudod.\nWaiting for PIDS: 44506.\nRunning postinstall script.\nStarting fudod.\nStarting pmonitord.\n"
}
Note
The output field contains the execution log of the hotfix installation process,
including pre-installation and post-installation steps.
Delete Uploaded Hotfix File¶
Request
Method |
|
Path |
|
DELETE /api/v2/hotfix/<name>
Example Request
curl -s -k -X DELETE \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.31.135.179/api/v2/hotfix/hotfix_name_5.6.3'
Response
{
"result": "success"
}
Note
The names of uploaded hotfixes can be retrieved using the GET /api/v2/hotfix endpoint.