VirtualMachineRestore [virtualmachinerestores.snapshot.kubevirt.io/v1beta1]
- Description
- VirtualMachineRestore defines the operation of restoring a VM
- Type
object- Required
spec
Specification
.spec
- Description
- VirtualMachineRestoreSpec is the spec for a VirtualMachineRestore resource
- Type
object- Required
targetvirtualMachineSnapshotName
.spec.patches
- Description
- If the target for the restore does not exist, it will be created. Patches holds JSON patches that would be applied to the target manifest before it's created. Patches should fit the target's Kind. Example for a patch: {"op": "replace", "path": "/metadata/name", "value": "new-vm-name"}
- Type
array
.spec.patches[]
- Type
string
.spec.target
- Description
- initially only VirtualMachine type supported
- Type
object- Required
kindname
.spec.volumeRestoreOverrides
- Description
- VolumeRestoreOverrides gives the option to change properties of each restored volume For example, specifying the name of the restored volume, or adding labels/annotations to it
- Type
array
.spec.volumeRestoreOverrides[]
- Description
- VolumeRestoreOverride specifies how a volume should be restored from a VirtualMachineSnapshot
- Type
object
.spec.volumeRestoreOverrides[].annotations
- Type
object
.spec.volumeRestoreOverrides[].labels
- Type
object
.status
- Description
- VirtualMachineRestoreStatus is the status for a VirtualMachineRestore resource
- Type
object
.status.conditions
- Type
array
.status.conditions[]
- Description
- Condition defines conditions
- Type
object- Required
statustype
.status.deletedDataVolumes
- Type
array
.status.deletedDataVolumes[]
- Type
string
.status.restores
- Type
array
.status.restores[]
- Description
- VolumeRestore contains the data needed to restore a PVC
- Type
object- Required
persistentVolumeClaimvolumeNamevolumeSnapshotName
API Endpoints
The following API endpoints are available:
/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestoresDELETE: delete collection of VirtualMachineRestoreGET: list objects of kind VirtualMachineRestorePOST: create a new VirtualMachineRestore
/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}DELETE: delete the specified VirtualMachineRestoreGET: read the specified VirtualMachineRestorePATCH: partially update the specified VirtualMachineRestorePUT: replace the specified VirtualMachineRestore
/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}/statusGET: read status of the specified VirtualMachineRestorePATCH: partially update status of the specified VirtualMachineRestorePUT: replace status of the specified VirtualMachineRestore
/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores
- HTTP method
DELETE- Description
- delete collection of VirtualMachineRestore
- HTTP responses
- HTTP method
GET- Description
- list objects of kind VirtualMachineRestore
- HTTP responses
- HTTP method
POST- Description
- create a new VirtualMachineRestore
- Query parameters
- Body parameters
- HTTP responses
/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}
- HTTP method
DELETE- Description
- delete the specified VirtualMachineRestore
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified VirtualMachineRestore
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified VirtualMachineRestore
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified VirtualMachineRestore
- Query parameters
- Body parameters
- HTTP responses
/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinerestores/{name}/status
- HTTP method
GET- Description
- read status of the specified VirtualMachineRestore
- HTTP responses
- HTTP method
PATCH- Description
- partially update status of the specified VirtualMachineRestore
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace status of the specified VirtualMachineRestore
- Query parameters
- Body parameters
- HTTP responses