![]() |
REST API
17
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 id of the backup file.
Use: Required
JSON Schema:
Object
type:string
minLength: 1
maxLength: 128
pattern: ^[a-zA-Z0-9_.-]*$
Specifies the action.
Valid values :
Use: Required
JSON Schema:
Object type: string minLength: 1 maxLength: 32 pattern: ^[a-zA-Z0-9_.-]*$
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
minLength: 3
maxLength: 12
pattern: ^(network|ssh|ntls|syslog|ntp|snmp|users|system|webserver|ctc|all|cluster|ismigration)$
Success
Returned when the input data does not conform to the required validation schema.
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 backup does not exist.
To restore the backup file
POST
https://1.2.3.4:8443/api/lunasa/config/backups/{backupid}/actions/restore
{
"service": "all"
}
{
}