You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@APICommand(name = "restoreVirtualMachine", description = "Restore a VM to original template/ISO or new template/ISO", responseObject = UserVmResponse.class, since = "3.0.0", responseView = ResponseView.Restricted, entityType = {VirtualMachine.class},
45
48
requestHasSensitiveInfo = false,
46
49
responseHasSensitiveInfo = true)
@@ -58,6 +61,28 @@ public class RestoreVMCmd extends BaseAsyncCmd implements UserCmd {
58
61
description = "an optional template Id to restore vm from the new template. This can be an ISO id in case of restore vm deployed using ISO")
59
62
privateLongtemplateId;
60
63
64
+
@Parameter(name = ApiConstants.DISK_OFFERING_ID,
65
+
type = CommandType.UUID,
66
+
entityType = DiskOfferingResponse.class,
67
+
description = "Override root volume's diskoffering.", since = "4.19.1")
68
+
privateLongrootDiskOfferingId;
69
+
70
+
@Parameter(name = ApiConstants.ROOT_DISK_SIZE,
71
+
type = CommandType.LONG,
72
+
description = "Override root volume's size (in GB). Analogous to details[0].rootdisksize, which takes precedence over this parameter if both are provided",
73
+
since = "4.19.1")
74
+
privateLongrootDiskSize;
75
+
76
+
@Parameter(name = ApiConstants.DETAILS, type = CommandType.MAP, since = "4.19.1",
77
+
description = "used to specify the custom parameters")
78
+
privateMapdetails;
79
+
80
+
@Parameter(name = ApiConstants.EXPUNGE,
81
+
type = CommandType.BOOLEAN,
82
+
description = "Optional field to expunge old root volume after restore.",
0 commit comments