Name: VirtualMachineSyncSpec
Input to support SyncVm operations.
Sample request for synchronize a VM from a snapshot:
{"type":"FULL_VM",
"targetVmTintriUuids":["05AA7A2B-0463-F458-2024-1522128E4E8D-VIM-0000000000000024"],
"snapshotTintriUuid":"05AA7A2B-0463-F458-2024-1522128E4E8D-SST-0000000000000003",
"typeId":"com.tintri.api.rest.v310.dto.domain.beans.vm.VirtualMachineSyncSpec"
}
Sample for synchronize a disk of a VM from a disk in a snapshot:
{"type":"VDISK",
"targetVmTintriUuids":["05AA7A2B-0463-F458-2024-1522128E4E8D-VIM-0000000000000024"],
"snapshotTintriUuid":"05AA7A2B-0463-F458-2024-1522128E4E8D-SST-0000000000000012",
"sourceDisks":["scsi0:1"],
"destDisks":["scsi0:1"],
"takeSnapshotSpec":{"takeSnapshot":true,
"localRetentionTimeInMinutes":1440,
"replicaRetentionTimeInMinutes":1440,
"typeId":"com.tintri.api.rest.v310.dto.domain.beans.vm.VirtualMachineSyncSpec"
}
Sample request for Guest OS File restore of a snapshot to a VM:
{"type":"FILE_RESTORE",
"targetVmTintriUuids":["4BB35F23-205D-9234-DCB0-3781D75BB987-VIM-00000000000000E3"],
"snapshotTintriUuid":"4BB35F23-205D-9234-DCB0-3781D75BB987-SST-0000000000000006",
"sourceDisks":[],
"destDisks":[],
"isAsync":true,
"vmConfig":{"isDiskAutoDetach":true,"diskAutoDetachInMinutes":2880,
"typeId":"com.tintri.api.rest.v310.dto.domain.beans.vm.VirtualMachineSyncVmConfig"},
"typeId":"com.tintri.api.rest.v310.dto.domain.beans.vm.VirtualMachineSyncSpec"}
Data Structure{
"typeId": "com.tintri.api.rest.v310.dto.domain.beans.vm.VirtualMachineSyncSpec",
"async": <Boolean>,
"destDisks": <String>,
"snapshotTintriUuid": <String>,
"sourceDisks": <String>,
"targetVmTintriUuids": <String>,
"type": 'FULL_VM' | 'VDISK' | 'FILE_RESTORE',
"takeSnapshotSpec": VirtualMachineSyncTakeSnapshotSpec,
"vmConfig": VirtualMachineSyncVmConfig,
"vmwareSpec": VirtualMachineVmwareSyncSpec,
}
|
Attributes|
async | xsd:boolean | Checks if the SyncVM is synchronous or asynchronous. Default value is asynchronous. |
destDisks | xsd:list[xsd:string] | Selected disks to be replaced on Virtual Machine. |
snapshotTintriUuid | xsd:string | Tintri Snapshot UUID. |
sourceDisks | xsd:list[xsd:string] | Selected disks from Snapshot. |
targetVmTintriUuids | xsd:list[xsd:string] | Tintri Virtual Machine UUID of selected target VMs. |
type | FULL_VM | VDISK | FILE_RESTORE | Operation type for SyncVm.FULL_VM | Sync the full VM | VDISK | Sync the virtual disk | FILE_RESTORE | Restore a VM or virtual disk |
|