VirtualMachineClone [virtualmachineclones.clone.kubevirt.io/v1beta1]
- 描述
- VirtualMachineClone is a CRD that clones one VM into another.
- 类型
object- 必填
spec
规格
.spec
- 类型
object- 必填
source
.spec.annotationFilters
- 描述
- Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
- 类型
array
.spec.annotationFilters[]
- 类型
string
.spec.labelFilters
- 描述
- Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
- 类型
array
.spec.labelFilters[]
- 类型
string
.spec.newMacAddresses
- 描述
- NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the value is the new mac address. If this field is not specified, a new MAC address will be generated automatically, as for any interface that is not included in this map.
- 类型
object
.spec.patches
- 描述
- Patches holds JSON patches to apply to target. Patches should fit the target's Kind. Example: '{"op": "add", "path": "/spec/template/metadata/labels/example", "value": "new-label"}'
- 类型
array
.spec.patches[]
- 类型
string
.spec.source
- 描述
- Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group
- 类型
object- 必填
kindname
.spec.target
- 描述
- Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status "TargetName" field below.
- 类型
object- 必填
kindname
.spec.template
- 描述
- For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
- 类型
object
.spec.template.annotationFilters
- 描述
- Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
- 类型
array
.spec.template.annotationFilters[]
- 类型
string
.spec.template.labelFilters
- 描述
- Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
- 类型
array
.spec.template.labelFilters[]
- 类型
string
.status
- 类型
object
.status.conditions
- 类型
array
.status.conditions[]
- 描述
- Condition defines conditions
- 类型
object- 必填
statustype
API 端点
可用的 API 端点如下:
/apis/clone.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineclonesDELETE: delete collection of VirtualMachineCloneGET: list objects of kind VirtualMachineClonePOST: create a new VirtualMachineClone
/apis/clone.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineclones/{name}DELETE: delete the specified VirtualMachineCloneGET: read the specified VirtualMachineClonePATCH: partially update the specified VirtualMachineClonePUT: replace the specified VirtualMachineClone
/apis/clone.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineclones/{name}/statusGET: read status of the specified VirtualMachineClonePATCH: partially update status of the specified VirtualMachineClonePUT: replace status of the specified VirtualMachineClone
/apis/clone.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineclones
- HTTP 方法
DELETE- 描述
- delete collection of VirtualMachineClone
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind VirtualMachineClone
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new VirtualMachineClone
- 查询参数
- 请求体参数
- HTTP 响应
/apis/clone.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineclones/{name}
- HTTP 方法
DELETE- 描述
- delete the specified VirtualMachineClone
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified VirtualMachineClone
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified VirtualMachineClone
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified VirtualMachineClone
- 查询参数
- 请求体参数
- HTTP 响应
/apis/clone.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineclones/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified VirtualMachineClone
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified VirtualMachineClone
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified VirtualMachineClone
- 查询参数
- 请求体参数
- HTTP 响应