appliance recovery restore: validate
Get metadata before restore
Request:
HTTP request
POST https://{server}/rest/appliance/recovery/restore/validate
Request Body Structure:
{
"piece": {
"backup_password": "secret string",
"location": "string",
"location_password": "secret string",
"location_type": "FTPS",
"location_user": "string"
}
}
"piece": {
"backup_password": "secret string",
"location": "string",
"location_password": "secret string",
"location_type": "FTPS",
"location_user": "string"
}
}
<?xml version="1.0" ?>
<ns0:Validate-Input xmlns:ns0="http://vmware.com/appliance/recovery/restore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<piece>
<location_type>FTPS</location_type>
<location>string</location>
<location_password>secret string</location_password>
<backup_password>secret string</backup_password>
<location_user>string</location_user>
</piece>
</ns0:Validate-Input>
<ns0:Validate-Input xmlns:ns0="http://vmware.com/appliance/recovery/restore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<piece>
<location_type>FTPS</location_type>
<location>string</location>
<location_password>secret string</location_password>
<backup_password>secret string</backup_password>
<location_user>string</location_user>
</piece>
</ns0:Validate-Input>
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
piece | restore_request | RestoreRequest Structure. |
piece.backup_password | secret | a password for a backup piece Optional. backupPassword If no password then the piece will not be decrypted. |
piece.location_type | string | a type of location Defines type of all locations for backup/restore Value is one of: FTPS: Destination is FTPS server HTTP: Destination is HTTP server SCP: Destination is SSH server HTTPS: Destination is HTTPS server FTP: Destination is FTP server |
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. |
Response:
HTTP Status Code: 200
Representations:
{
"value": {
"applicable": true,
"boxname": "string",
"comment": "string",
"messages": [
{
"args": [
"string",
"string"
],
"default_message": "string",
"id": "string"
},
{
"args": [
"string",
"string"
],
"default_message": "string",
"id": "string"
}
],
"parts": [
"string",
"string"
],
"timestamp": "2015-01-01T22:13:05.651Z",
"version": "string"
}
}
"value": {
"applicable": true,
"boxname": "string",
"comment": "string",
"messages": [
{
"args": [
"string",
"string"
],
"default_message": "string",
"id": "string"
},
{
"args": [
"string",
"string"
],
"default_message": "string",
"id": "string"
}
],
"parts": [
"string",
"string"
],
"timestamp": "2015-01-01T22:13:05.651Z",
"version": "string"
}
}
<?xml version="1.0" ?>
<ns0:Validate-Result xmlns:ns0="http://vmware.com/appliance/recovery/restore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<timestamp>2015-01-01T22:13:05.651Z</timestamp>
<parts-array>
<array-item>string</array-item>
<array-item>string</array-item>
</parts-array>
<applicable>true</applicable>
<comment>string</comment>
<messages-array>
<array-item>
<default_message>string</default_message>
<id>string</id>
<args-array>
<array-item>string</array-item>
<array-item>string</array-item>
</args-array>
</array-item>
<array-item>
<default_message>string</default_message>
<id>string</id>
<args-array>
<array-item>string</array-item>
<array-item>string</array-item>
</args-array>
</array-item>
</messages-array>
<boxname>string</boxname>
<version>string</version>
</value>
</ns0:Validate-Result>
<ns0:Validate-Result xmlns:ns0="http://vmware.com/appliance/recovery/restore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<timestamp>2015-01-01T22:13:05.651Z</timestamp>
<parts-array>
<array-item>string</array-item>
<array-item>string</array-item>
</parts-array>
<applicable>true</applicable>
<comment>string</comment>
<messages-array>
<array-item>
<default_message>string</default_message>
<id>string</id>
<args-array>
<array-item>string</array-item>
<array-item>string</array-item>
</args-array>
</array-item>
<array-item>
<default_message>string</default_message>
<id>string</id>
<args-array>
<array-item>string</array-item>
<array-item>string</array-item>
</args-array>
</array-item>
</messages-array>
<boxname>string</boxname>
<version>string</version>
</value>
</ns0:Validate-Result>
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | metadata | Metadata Structure. |
value.timestamp | date_time | Time when this backup was completed. |
value.parts | string[] | List of parts included in the backup. |
value.version | string | VCSA version |
value.boxname | string | Box name is PNID/ FQDN etc |
value.comment | string | Custom comment |
value.applicable | boolean | Does the VCSA match the deployment type, network properties and version of backed up VC |
value.messages | localizable_message[] | Any messages if the backup is not aplicable |
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 |
---|---|---|
500 | error | Generic error |