Restore BIG-IP and F5OS instances¶
Overview¶
F5 Insight lets you restore BIG-IP and F5OS instances from previously created backup files. You can use restore jobs to recover from accidental configuration changes, hardware failure, or to migrate configuration to a replacement device.
You can perform restore operations using either the web console or the REST API.
Key capabilities include:
- Select target devices — restore a backup to the original device or to a different device.
- Master/Primary Key support — If the Master Key (BIG-IP) was retained during backup, it can be re-applied during restore to decrypt encrypted objects. For F5OS, the user can enter the Primary Key and Salt to decrypt the configuration at restore time.
- RMA and platform migration — restore a backup to a replacement device of the same type, or to a different platform (e.g. iSeries to rSeries).
- Run readiness checks before executing to verify backup integrity, device reachability, and compatibility.
Important
Restore operations are available to administrator users only.
Warning
Restoring a backup overwrites the target device’s current configuration. Ensure you have a current backup of the target device before proceeding.
Concepts¶
Restore types¶
| Type | Description | Supported devices |
|---|---|---|
| BIG-IP UCS restore | Loads a UCS archive onto the target BIG-IP, restoring its full configuration. | BIG-IP TMOS |
| F5OS restore | Performs a clean reset of the rSeries appliance and restores its configuration. | F5OS-A (rSeries) |
Note
F5OS restore always performs a clean reset — the appliance is reset and rebooted before the configuration is applied. This removes all tenant and user configuration.
Readiness checks¶
Before activating a restore job, F5 Insight can run the following checks against the target devices:
| Check | Severity | Description |
|---|---|---|
| Backup compatibility | HARD | Verifies the backup file is compatible with the target device (type match). Failure blocks the restore. |
| Backup integrity | HARD | Verifies the backup file is intact and passes checksum validation. Failure blocks the restore. |
| Passphrase verification | HARD | For encrypted backups, verifies the stored passphrase matches the backup’s encryption. Failure blocks the restore. |
| Device reachability | HARD | Verifies F5 Insight can reach the target device. Failure blocks the restore. |
Use the web console¶
Create a restore job¶
Go to the Manage section in the left toolbar and select Automation.
Select Jobs.
Select Add Job.
Select Restore.
Enter a Job Name.
Enter a Description (optional).
Under Restore Properties, select the backup file to restore from. The file picker lists all
AVAILABLEbackup files in F5 Insight. Search by device name or filename to locate the desired backup.F5 Insight automatically selects the Instance that the backup was created from.
A different instance can be chosen by selecting the Change Instance button. If the selected instance differs from the original source device, F5 Insight displays a warning:
Optionally run the Readiness Checks before activating to verify backup integrity, device reachability, and compatibility.
Select Execute Job to start the restore immediately, or Save to save the job for later execution.
Note
Restore jobs are always on-demand — they do not support scheduling.
BIG-IP Restore Behavior:
Configure the following Restore Behavior options as needed:
Replace Master Key — Available only when the backup was created with Retain and Encrypt Master Key enabled. When checked, the BIG-IP master key captured at backup time is re-applied to the target device before the UCS is loaded. This allows the restored configuration to decrypt encrypted objects such as SSL private keys, certificate passphrases, and iRule secrets. If left unchecked and the target device has a different master key than the source, encrypted objects in the UCS will fail to decrypt and must be reconfigured manually after restore.
Important
If you are restoring to a different or rebuilt device, always enable Replace Master Key (provided the backup was created with master key retention). Without it, the target device can’t decrypt the source device’s encrypted objects.
Platform migration (platform-migrate) — When checked, applies the
platform-migrateflag duringtmsh load sys ucs. Use this option when restoring a UCS from one hardware platform to another (for example, between two different iSeries models). This flag allows BIG-IP to adapt platform-specific configuration during the restore. Mutually exclusive with Maintain management IP address and Do not include license.Maintain management IP address (keep-current-management-ip) — When checked, preserves the target device’s current management IP address after restore, instead of restoring the management IP from the UCS archive. Use this when restoring to a replacement device that must retain its own IP address. Mutually exclusive with Platform migration.
Do not include license (no-license) — When checked, restores the UCS without applying the license contained in the archive. Use this when the target device already has a valid license that should not be overwritten, or when the source license is not transferable to the target device. Mutually exclusive with Platform migration.
F5OS Restore Behavior:
F5OS restore always performs a Clean Reset / Factory Reset before applying the configuration backup. This checkbox is always checked and cannot be disabled — it is shown here for transparency.
Configure the following required fields:
- Primary Key / Confirm Primary Key — The primary encryption key to set on the rSeries appliance after the clean reset. Required (6–255 characters). This key is used to secure the restored configuration. Store it securely — it will be needed for any future restore operations on this appliance.
- Primary Key Salt / Confirm Primary Key Salt — The salt associated with the Primary Key. Required (6–255 characters). Must be confirmed to match before the job can reach
READYstate.
Important
The clean reset deletes all tenant configuration and user accounts on the rSeries appliance. The management IP address is preserved. Ensure you have the Primary Key and Salt recorded before proceeding.
Example BIG-IP Restore Progress:
Use the REST API¶
All restore operations available in the web console are also available through the F5 Insight REST API.
All restore endpoints are under the base path /api/v1/fleet/backup-restore and require a valid JWT token. Requests from non-administrator users are rejected with HTTP 401.
Job lifecycle¶
| Status | Description |
|---|---|
DRAFT |
Job created but configuration is incomplete. Can be edited. |
READY |
Configuration is complete and valid. Can be activated. |
RUNNING |
An execution is in progress. |
PAUSING |
Pause requested; in-flight devices checkpoint before the irreversible restore step. |
PAUSED |
Execution paused. Devices already past the restore step continue to completion. |
CANCELLING |
Cancel requested. Devices already inside RESTORE or RECOVERY are not interrupted and run to completion. |
COMPLETED |
All devices processed successfully. |
FAILED |
One or more devices failed. Job stopped. |
CANCELLED |
Job was cancelled. |
Only DRAFT and READY jobs can be updated. Only non-RUNNING jobs can be deleted.
Restore job endpoints¶
| Method | Endpoint | Description |
|---|---|---|
GET |
/jobs/device-restore |
List all restore jobs. Filter by status query param. |
POST |
/jobs/device-restore |
Create a restore job. name and config.restoreItems are required. |
GET |
/jobs/device-restore/{jobId} |
Get full job details including config, current status, and any HA warnings. |
PUT |
/jobs/device-restore/{jobId} |
Update mutable job fields. Only allowed in DRAFT or READY state. |
DELETE |
/jobs/device-restore/{jobId} |
Permanently delete a job. Only allowed in DRAFT, READY, COMPLETED, FAILED, or CANCELLED state. |
POST |
/jobs/device-restore/{jobId}/activate |
Start a new execution for a READY job. Returns 202 Accepted with an executionId. |
POST |
/jobs/device-restore/{jobId}/pause |
Request a pause. Devices checkpoint before the irreversible restore step. Returns 202 Accepted. |
POST |
/jobs/device-restore/{jobId}/resume |
Resume a PAUSED job. Returns 202 Accepted. |
POST |
/jobs/device-restore/{jobId}/cancel |
Cancel the job. Devices already in RESTORE or RECOVERY run to completion. Returns 200 OK with a response body including runningDevices — the count of devices that cannot be interrupted. |
Cancel response body (200 OK)
{
"jobId": "<uuid>",
"message": "cancel requested — 1 device(s) already restoring will complete, remaining devices cancelled",
"runningDevices": 1
}
Note
In restoreItems, the backup is identified by backupFileName — the file’s name (a string), not its UUID. This differs from other API contexts such as readiness checks, which use backup_file_id (a UUID in snake_case). Use the fileName field from the GET /backup-files response to get the correct value.
Example: create a BIG-IP restore job
POST /api/v1/fleet/backup-restore/jobs/device-restore
Content-Type: application/json
Authorization: Bearer <access_token>
{
"name": "restore-bigip-prod-01",
"description": "Restore after configuration change",
"config": {
"instanceType": "BIG-IP",
"restoreItems": [
{
"backupFileName": "daily-bigip-prod-2026-10-22",
"deviceTargets": [
{ "deviceId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" }
],
"passphrase": "<passphrase>",
"useRetainedMasterKey": true
}
]
}
}
Execution endpoints¶
| Method | Endpoint | Description |
|---|---|---|
GET |
/jobs/device-restore/{jobId}/executions |
List all executions for a job, newest first. |
GET |
/jobs/device-restore/{jobId}/executions/{executionId} |
Get a single execution including per-device progress (instanceProgress). |
Per-device FSM states include: PENDING, PREFLIGHT, CLEAN_RESET, REBOOT, PRIMARY_KEY, FILE_CHECK, UPLOAD, RESTORE, RECOVERY, POST_CHECK, CLEANUP, COMPLETE, FAILED, CANCELLED.
Readiness check endpoints¶
Run readiness checks before activating a restore job to verify backup integrity, device reachability, and compatibility.
| Method | Endpoint | Description |
|---|---|---|
POST |
/restore/readiness |
Trigger async readiness checks. Body requires context.device_targets and context.backup_file_id (UUID, snake_case — note this differs from the job body’s backupFileName). Returns a run_id to poll. |
GET |
/restore/readiness/{runId} |
Poll results for a readiness run. Poll until status is no longer PENDING or RUNNING. |
GET |
/restore/readiness |
List all past restore readiness check runs. |
Example: trigger a restore readiness check
POST /api/v1/fleet/backup-restore/restore/readiness
Content-Type: application/json
Authorization: Bearer <access_token>
{
"context": {
"device_targets": [
{ "device_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" }
],
"backup_file_id": "b1b2c3d4-0000-0000-0000-000000000001"
},
"passphrase": "<passphrase>"
}
Example response (202 Accepted)
{
"run_id": "c3d4e5f6-0000-0000-0000-000000000002",
"message": "Readiness checks triggered"
}
Poll GET /restore/readiness/{run_id} until status is PASSED, WARNING, FAILED, or ERROR.
See also
For full request and response schemas, refer to the F5 Insight v2.0 API documentation.
Troubleshooting¶
| Issue | Cause | Resolution |
|---|---|---|
| Job stays in DRAFT state | A required field is missing — no backup file selected, no target device, or (for encrypted backups) no passphrase provided. | Open the job and ensure a backup file, target device, and passphrase (if applicable) are all configured. |
| Readiness check fails — Backup Integrity | The backup file is corrupted or the checksum does not match. | The backup file cannot be used for restore. Select a different backup file. If the issue persists, delete the file and re-run the backup job. |
| Readiness check fails — Passphrase Verification | The passphrase entered does not match the one stored for the backup. | Re-enter the exact passphrase used at backup time. F5 Insight does not store passphrases. If the passphrase is lost, the backup cannot be decrypted. |
| Readiness check fails — Backup Compatibility | The backup file type does not match the target device type (e.g. a BIG-IP UCS targeted at an F5OS device). | Select a target device that matches the backup type. |
| Readiness check fails — Device Reachability | F5 Insight cannot reach the target device. | Verify the device is online and reachable from the F5 Insight appliance. Check the device’s management IP and firewall rules. |
| Encrypted objects fail to decrypt after restore | The backup was created without Retain Master Key, or Use Retained Master Key was not selected on the restore job. | For future backups, enable Retain and Encrypt Master Key. For the current restore, if the master key was not retained, the encrypted objects cannot be automatically restored — they must be reconfigured manually. |
| Restore job cannot be cancelled | The device has already passed the point-of-no-return (inside the RESTORE or RECOVERY step). | Allow the restore to complete. Devices in RESTORE or RECOVERY cannot be interrupted. The cancel response returns a count of devices still running to completion. |
| F5OS restore fails — Primary Key error | The primary key or salt provided does not meet the length requirements (6–255 characters), or was not supplied. | Provide a valid primary key and salt (both 6–255 characters) in the restore job configuration. |
If an issue persists, contact F5 Support and provide the job name, execution ID, date, and the per-device error message from the execution detail view. Include a Support Bundle to help F5 Support diagnose the issue. See Generate a support bundle.