mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-25 10:16:12 +08:00
- instance snapshot
- instance clone - create form snapshot don't reset passwd
This commit is contained in:
@@ -187,6 +187,7 @@ type ServerCreateInput struct {
|
||||
EipBw int `json:"eip_bw,omitzero"`
|
||||
EipChargeType string `json:"eip_charge_type,omitempty"`
|
||||
Eip string `json:"eip,omitempty"`
|
||||
InstanceSnapshotId string `json:"instance_snapshot_id,omitempty"`
|
||||
|
||||
OsType string `json:"os_type"`
|
||||
// Fill by server
|
||||
|
||||
@@ -84,6 +84,12 @@ const (
|
||||
VM_DISK_RESET = "disk_reset"
|
||||
VM_DISK_RESET_FAIL = "disk_reset_failed"
|
||||
|
||||
VM_START_INSTANCE_SNAPSHOT = "start_instance_snapshot"
|
||||
VM_INSTANCE_SNAPSHOT_FAILED = "instance_snapshot_failed"
|
||||
VM_START_SNAPSHOT_RESET = "start_snapshot_reset"
|
||||
VM_SNAPSHOT_RESET_FAILED = "snapshot_reset_failed"
|
||||
VM_SNAPSHOT_AND_CLONE_FAILED = "clone_from_snapshot_failed"
|
||||
|
||||
VM_SYNCING_STATUS = "syncing"
|
||||
VM_SYNC_CONFIG = "sync_config"
|
||||
VM_SYNC_FAIL = "sync_fail"
|
||||
|
||||
@@ -43,4 +43,9 @@ const (
|
||||
SNAPSHOT_POLICY_DISK_READY = "ready"
|
||||
SNAPSHOT_POLICY_DISK_DELETING = "deleting"
|
||||
SNAPSHOT_POLICY_DISK_DELETE_FAILED = "delete_failed"
|
||||
|
||||
INSTANCE_SNAPSHOT_READY = "ready"
|
||||
INSTANCE_SNAPSHOT_FAILED = "instance_snapshot_create_failed"
|
||||
INSTANCE_SNAPSHOT_START_DELETE = "instance_snapshot_start_delete"
|
||||
INSTANCE_SNAPSHOT_DELETE_FAILED = "instance_snapshot_delete_failed"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user