@@ -242,3 +242,40 @@ type VirtualMachineConfig struct {
242242 // Cloud-init interfaces
243243 // IPConfig
244244}
245+
246+ type VirtualMachineRebootOption struct {
247+ TimeOut int `json:"timeout,omitempty"`
248+ }
249+
250+ type VirtualMachineResumeOption struct {
251+ NoCheck bool `json:"nocheck,omitempty"`
252+ SkipLock bool `json:"skiplock,omitempty"`
253+ }
254+
255+ type VirtualMachineStartOption struct {
256+ // override qemu's -cpu argument with the given string
257+ ForceCPU string `json:"force-cpu,omitempty"`
258+ // specifies the qemu machine type
259+ Machine string `json:"machine,omitempty"`
260+ // cluster node name
261+ MigratedFroom string `json:"migratedfrom,omitempty"`
262+ // cidr of (sub) network that is used for migration
263+ MigrationNetwork string `json:"migration_network,omitempty"`
264+ // migration traffic is ecrypted using an SSH tunnel by default.
265+ // On secure, completely private networks this can be disabled to increase performance.
266+ MigrationType string `json:"migration_type,omitempty"`
267+ SkipLock bool `json:"skiplock,omitempty"`
268+ // some command save/restore state from this location
269+ StateURI string `json:"stateuri,omitempty"`
270+ // Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage.
271+ // Providing the special value '1' will map each source storage to itself.
272+ TargetStoraage string `json:"targetstorage,omitempty"`
273+ TimeOut int `json:"timeout,omitempty"`
274+ }
275+
276+ type VirtualMachineStopOption struct {
277+ KeepActive bool `json:"keepActive,omitempty"`
278+ MigratedFrom string `json:"migratedfrom,omitempty"`
279+ SkipLock bool `json:"skiplock,omitempty"`
280+ TimeOut int `json:"timeout,omitempty"`
281+ }
0 commit comments