VirtualMachineRestore [virtualmachinerestores.snapshot.kubevirt.io/v1beta1]
- 描述
- VirtualMachineRestore defines the operation of restoring a VM
- 类型
object- 必填
spec
规格
.spec
- 描述
- VirtualMachineRestoreSpec is the spec for a VirtualMachineRestore resource
- 类型
object- 必填
targetvirtualMachineSnapshotName
.spec.patches
- 描述
- 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"}
- 类型
array
.spec.patches[]
- 类型
string
.spec.target
- 描述
- initially only VirtualMachine type supported
- 类型
object- 必填
kindname
.spec.volumeRestoreOverrides
- 描述
- 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
- 类型
array
.spec.volumeRestoreOverrides[]
- 描述
- VolumeRestoreOverride specifies how a volume should be restored from a VirtualMachineSnapshot
- 类型
object
.spec.volumeRestoreOverrides[].annotations
- 类型
object
.spec.volumeRestoreOverrides[].labels
- 类型
object
.status
- 描述
- VirtualMachineRestoreStatus is the status for a VirtualMachineRestore resource
- 类型
object
.status.conditions
- 类型
array
.status.conditions[]
- 描述
- Condition defines conditions
- 类型
object- 必填
statustype
.status.deletedDataVolumes
- 类型
array
.status.deletedDataVolumes[]
- 类型
string
.status.restores
- 类型
array
.status.restores[]
- 描述
- VolumeRestore contains the data needed to restore a PVC
- 类型
object- 必填
persistentVolumeClaimvolumeNamevolumeSnapshotName
API 端点
可用的 API 端点如下:
/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestoresDELETE: delete collection of VirtualMachineRestoreGET: list objects of kind VirtualMachineRestorePOST: create a new VirtualMachineRestore
/apis/snapshot.kubevirt.io/v1beta1/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/v1beta1/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/v1beta1/namespaces/{namespace}/virtualmachinerestores
- HTTP 方法
DELETE- 描述
- delete collection of VirtualMachineRestore
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind VirtualMachineRestore
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new VirtualMachineRestore
- 查询参数
- 请求体参数
- HTTP 响应
/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name}
- HTTP 方法
DELETE- 描述
- delete the specified VirtualMachineRestore
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified VirtualMachineRestore
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified VirtualMachineRestore
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified VirtualMachineRestore
- 查询参数
- 请求体参数
- HTTP 响应
/apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified VirtualMachineRestore
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified VirtualMachineRestore
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified VirtualMachineRestore
- 查询参数
- 请求体参数
- HTTP 响应