![]() |
REST API
16
REST API for Luna Network HSMs
|
This resource will perform specified action on a backup file stored in local file system.
Users with the following role privileges can perform this command:
Specifies the action.
Valid values :
Use: Required
JSON Schema:
Object
type:string
Specifies the name of the service.
Valid values: network,ssh,ntls,syslog,ntp,snmp,users,system,webserver,cluster,ismigration,ctc,all.
If the service being restored is 'webserver'(or if 'all'), the webserver service is restarted on it own. Hence, a new session must be intiated for further communication.
Use: Required
JSON Schema:
Object
type:string
Success
We failed to parse your request.
Specified service name is invalid.
Missing backup file name.
Backup file version cannot be restored in the current version.
Provided backup file is not complete.
Provided backup file is not compatible for the service specified.Please use a backup file for the same service being restored or a backup file with all services.
NTLS must be stopped before requesting this resource.
NTP must be stopped before requesting this resource.
SSH must be stopped before requesting this resource.
SNMP must be stopped before requesting this resource.
Failed to restore the configuration from specified backup file.
Critical Operation currently in Progress.
Specified backupid is invalid.
To restore the backup file
POST
https://1.2.3.4:8443/api/lunasa/config/backups/{backupid}/actions/restore
{
"service": "all"
}
{
}