Create Restore Job
Initiate restore.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
{
"location": "string",
"location_type": "FTP"
}
path or url
Job.LocationType enumerated type Defines type of all locations for backup/restore
FTP : Destination is FTP server
HTTP : Destination is HTTP server
FTPS : Destination is FTPS server
HTTPS : Destination is HTTPS server
SCP : Destination is SSH server
SFTP : Destination is SFTP server
NFS : Destination is NFS server
SMB : Destination is SMB server
Possible values are: FTP , HTTP , FTPS , HTTPS , SCP , more...
a password for a backup piece backupPassword If no password then the piece will not be decrypted
The flag to ignore warnings during restore If unset, validation warnings will fail the restore operation
password for location locationPassword Password for the specified user if login is required at this location.
username for location locationUser User name for this location if login is required.
Administrators Username for SSO. If unset SSO authentication will not be used. If the vCenter Server is a management node or an embedded node, authentication is required.
The password for SSO admin user. If unset SSO authentication will not be used. If the vCenter Server is a management node or an embedded node, authentication is required.
Authentication
Response
Response BodyResponse Body
RestoreJobStatus Structure
{
"messages": [
{
"args": [
"string"
],
"default_message": "string",
"id": "string"
}
],
"progress": 0,
"state": "FAILED"
}
percentage complete
Job.BackupRestoreProcessState enumerated type Defines state of backup/restore process
FAILED : Failed
INPROGRESS : In progress
NONE : Not started
SUCCEEDED : Completed successfully
Possible values are: FAILED , INPROGRESS , NONE , SUCCEEDED
Errors
com.vmware.vapi.std.errors.feature_in_use : A backup or restore is already in progress | com.vmware.vapi.std.errors.not_allowed_in_current_state : Restore is allowed only after deployment and before firstboot
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
PowerCLI Client SDK All Parameters Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: post
x-vmw-doc-deprecated-path: /rest/appliance/recovery/restore/job
x-vmw-doc-operation: create