TVO-4.2
Search…
⌃K

Restores

get
https://$(tvm_address):8780/v1/$(tenant_id)
/restores/detail
List Restores
get
https://$(tvm_address):8780/v1/$(tenant_id)
/restores/<restore_id>
Get Restore
delete
https://$(tvm_address):8780/v1/$(tenant_id)
/restores/<restore_id>
Delete Restore
get
https://$(tvm_address):8780/v1/$(tenant_id)
/restores/<restore_id>/cancel
Cancel Restore
post
https://$(tvm_address):8780/v1/$(tenant_id)
/snapshots/<snapshot_id>
One Click Restore

Body Format

The One-Click restore requires a body to provide all necessary information in json format.
{
"restore":{
"options":{
"openstack":{
},
"type":"openstack",
"oneclickrestore":true,
"vmware":{},
"restore_type":"oneclick"
},
"name":"One Click Restore",
"description":"One Click Restore"
}
}
post
https://$(tvm_address):8780/v1/$(tenant_id)
/snapshots/<snapshot_id>
Selective Restore

Body Format

The One-Click restore requires a body to provide all necessary information in json format.
{
"restore":{
"name":"<restore name>",
"description":"<restore description>",
"options":{
"openstack":{
"instances":[
{
"name":"<new name of instance>",
"include":<true/false>,
"id":"<original id of instance to be restored>"
"availability_zone":"<availability zone>",
"vdisks":[
{
"id":"<original ID of Volume>",
"new_volume_type":"<new volume type>",
"availability_zone":"<Volume availability zone>"
}
],
"nics":[
{
'mac_address':'<mac address of the pre-created port>',
'ip_address':'<IP of the pre-created port>',
'id':'<ID of the pre-created port>',
'network':{
'subnet':{
'id':'<ID of the subnet of the pre-created port>'
},
'id':'<ID of the network of the pre-created port>'
}
],
"flavor":{
"vcpus":<Integer>,
"disk":<Integer>,
"swap":<Integer>,
"ram":<Integer>,
"ephemeral":<Integer>,
"id":<Integer>
}
}
],
"restore_topology":<true/false>,
"networks_mapping":{
"networks":[
{
"snapshot_network":{
"subnet":{
"id":"<ID of the original Subnet ID>"
},
"id":"<ID of the original Network ID>"
},
"target_network":{
"subnet":{
"id":"<ID of the target Subnet ID>"
},
"id":"<ID of the target Network ID>",
"name":"<name of the target network>"
}
}
]
}
},
"restore_type":"selective",
"type":"openstack",
"oneclickrestore":false
}
}
}
post
https://$(tvm_address):8780/v1/$(tenant_id)
/snapshots/<snapshot_id>
Inplace Restore

Body Format

The One-Click restore requires a body to provide all necessary information in json format.
{
"restore":{
"name":"<restore-name>",
"description":"<restore-description>",
"options":{
"restore_type":"inplace",
"type":"openstack",
"oneclickrestore":false,
"openstack":{
"instances":[
{
"restore_boot_disk":<Boolean>,
"include":<Boolean>,
"id":"<ID of the instance the volumes are attached to>",
"vdisks":[
{
"restore_cinder_volume":<boolean>,
"id":"<ID of the Volume to restore>"
}
]
}
]
}
}
}
}