appliance recovery backup: validate
Check for backup errors without starting backup.
Request:
HTTP request
POST https://{server}/rest/appliance/recovery/backup/validate
Request Body Structure:
{
"piece" : {
"backup_password" : "secret string",
"parts" : [
"string",
"string"
],
"location" : "string",
"location_password" : "secret string",
"comment" : "string",
"location_type" : "FTP",
"location_user" : "string"
}
}
"piece" : {
"backup_password" : "secret string",
"parts" : [
"string",
"string"
],
"location" : "string",
"location_password" : "secret string",
"comment" : "string",
"location_type" : "FTP",
"location_user" : "string"
}
}
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
piece | backup_request | BackupRequest Structure. |
piece.parts | string[] | a list of optional parts. Run backup parts APIs to get list of optional parts and description |
piece.backup_password | secret | a 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). Optional. backupPassword If no password then the piece will not be encrypted. |
piece.location_type | string | a type of location Defines type of all locations for backup/restore Value is one of: 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. This constant was added in vSphere API 6.7.2. SMB: Destination is SMB server. This constant was added in vSphere API 6.7.2. |
piece.location | string | path or url |
piece.location_user | string | username for location Optional. locationUser User name for this location if login is required. |
piece.location_password | secret | password for location Optional. locationPassword Password for the specified user if login is required at this location. |
piece.comment | string | Custom comment Optional. comment an optional comment. |
Response:
HTTP Status Code: 200
Representation:
{
"value" : {
"messages" : [
{
"args" : [
"string",
"string"
],
"default_message" : "string",
"id" : "string"
},
{
"args" : [
"string",
"string"
],
"default_message" : "string",
"id" : "string"
}
],
"status" : "FAIL"
}
}
"value" : {
"messages" : [
{
"args" : [
"string",
"string"
],
"default_message" : "string",
"id" : "string"
},
{
"args" : [
"string",
"string"
],
"default_message" : "string",
"id" : "string"
}
],
"status" : "FAIL"
}
}
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | return_result | ReturnResult Structure. |
value.status | string | Check status Defines the state of precheck Value is one of: FAIL: Check failed WARNING: Passed with warnings OK: Check passed |
value.messages | localizable_message[] | List of messages |
value.messages[].id | string | id in message bundle |
value.messages[].default_message | string | text in english |
value.messages[].args | string[] | nested data |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
400 | feature_in_use | A backup or restore is already in progress |
500 | error | Generic error |