Create Backup Job
Initiate backup.
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",
"parts": [
"string"
]
}
List of optional parts that will be included in the backup. Use the Parts.list operation to get information about the supported parts.
Path or URL of the backup location.
The Job.LocationType enumerated type defines the type of destination location for backup/restore. You specify the location type when you create a backup job. See Job.BackupRequest.
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...
Password for a backup piece. The backupPassword must adhere to the following password requirements: At least 8 characters, cannot be more than 20 characters in length. At least 1 uppercase letter. At least 1 lowercase letter. At least 1 numeric digit. At least 1 special character (i.e. any character not in [0-9,a-z,A-Z]). Only visible ASCII characters (for example, no space). backupPassword If no password then the piece will not be encrypted
Option to enable Postgres DB/ VCDB fast backup If unset backup will proceed at slow rate
Password for the given location. If unset authentication will not be used for the specified location.
Username for the given location. If unset authentication will not be used for the specified location.
Custom comment provided by the user. If unset comment will be empty.
Authentication
Response
Response BodyResponse Body
BackupJobStatus Structure
{
"end_time": "string",
"id": "string",
"messages": [
{
"args": [
"string"
],
"default_message": "string",
"id": "string"
}
],
"progress": 0,
"start_time": "string",
"state": "FAILED"
}
TimeStamp based ID.
Progress of the job in percentage.
Time when the backup was started.
The Job.BackupRestoreProcessState enumerated type defines the possible states of a backup/restore process.
FAILED : Backup/Restore job failed.
INPROGRESS : Backup/Restore job is in progress.
NONE : Backup/Restore job is not started.
SUCCEEDED : Backup/Restore job completed successfully.
Possible values are: FAILED , INPROGRESS , NONE , SUCCEEDED
Time when the backup was finished. If unset end time is None until backup is finished.
Errors
com.vmware.vapi.std.errors.error : if any error occurs during the execution of the operation.
‘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/backup/job
x-vmw-doc-operation: create