Search…
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.
1
{
2
"restore":{
3
"options":{
4
"openstack":{
5
6
},
7
"type":"openstack",
8
"oneclickrestore":true,
9
"vmware":{},
10
"restore_type":"oneclick"
11
},
12
"name":"One Click Restore",
13
"description":"One Click Restore"
14
}
15
}
Copied!
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.
1
{
2
"restore":{
3
"name":"<restore name>",
4
"description":"<restore description>",
5
"options":{
6
"openstack":{
7
"instances":[
8
{
9
"name":"<new name of instance>",
10
"include":<true/false>,
11
"id":"<original id of instance to be restored>"
12
"availability_zone":"<availability zone>",
13
"vdisks":[
14
{
15
"id":"<original ID of Volume>",
16
"new_volume_type":"<new volume type>",
17
"availability_zone":"<Volume availability zone>"
18
}
19
],
20
"nics":[
21
{
22
'mac_address':'<mac address of the pre-created port>',
23
'ip_address':'<IP of the pre-created port>',
24
'id':'<ID of the pre-created port>',
25
'network':{
26
'subnet':{
27
'id':'<ID of the subnet of the pre-created port>'
28
},
29
'id':'<ID of the network of the pre-created port>'
30
}
31
],
32
"flavor":{
33
"vcpus":<Integer>,
34
"disk":<Integer>,
35
"swap":<Integer>,
36
"ram":<Integer>,
37
"ephemeral":<Integer>,
38
"id":<Integer>
39
}
40
}
41
],
42
"restore_topology":<true/false>,
43
"networks_mapping":{
44
"networks":[
45
{
46
"snapshot_network":{
47
"subnet":{
48
"id":"<ID of the original Subnet ID>"
49
},
50
"id":"<ID of the original Network ID>"
51
},
52
"target_network":{
53
"subnet":{
54
"id":"<ID of the target Subnet ID>"
55
},
56
"id":"<ID of the target Network ID>",
57
"name":"<name of the target network>"
58
}
59
}
60
]
61
}
62
},
63
"restore_type":"selective",
64
"type":"openstack",
65
"oneclickrestore":false
66
}
67
}
68
}
Copied!
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.
1
{
2
"restore":{
3
"name":"<restore-name>",
4
"description":"<restore-description>",
5
"options":{
6
"restore_type":"inplace",
7
"type":"openstack",
8
"oneclickrestore":false,
9
"openstack":{
10
"instances":[
11
{
12
"restore_boot_disk":<Boolean>,
13
"include":<Boolean>,
14
"id":"<ID of the instance the volumes are attached to>",
15
"vdisks":[
16
{
17
"restore_cinder_volume":<boolean>,
18
"id":"<ID of the Volume to restore>"
19
}
20
]
21
}
22
]
23
}
24
}
25
}
26
}
Copied!
Last modified 11mo ago