VirtualMachineClone [virtualmachineclones.clone.kubevirt.io/v1beta1]
- Description
- VirtualMachineClone is a CRD that clones one VM into another.
- Type
object- Required
spec
Specification
.spec
- Type
object- Required
source
.spec.annotationFilters
- Description
- Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
- Type
array
.spec.annotationFilters[]
- Type
string
.spec.labelFilters
- Description
- Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
- Type
array
.spec.labelFilters[]
- Type
string
.spec.newMacAddresses
- Description
- 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.
- Type
object
.spec.patches
- Description
- 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"}'
- Type
array
.spec.patches[]
- Type
string
.spec.source
- Description
- 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
- Type
object- Required
kindname
.spec.target
- Description
- 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.
- Type
object- Required
kindname
.spec.template
- Description
- For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
- Type
object
.spec.template.annotationFilters
- Description
- Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
- Type
array
.spec.template.annotationFilters[]
- Type
string
.spec.template.labelFilters
- Description
- Example use: "!some/key*". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
- Type
array
.spec.template.labelFilters[]
- Type
string
.status
- Type
object
.status.conditions
- Type
array
.status.conditions[]
- Description
- Condition defines conditions
- Type
object- Required
statustype
API Endpoints
The following API endpoints are available:
/apis/clone.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineclonesDELETE: delete collection of VirtualMachineCloneGET: list objects of kind VirtualMachineClonePOST: create a new VirtualMachineClone
/apis/clone.kubevirt.io/v1alpha1/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/v1alpha1/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/v1alpha1/namespaces/{namespace}/virtualmachineclones
- HTTP method
DELETE- Description
- delete collection of VirtualMachineClone
- HTTP responses
- HTTP method
GET- Description
- list objects of kind VirtualMachineClone
- HTTP responses
- HTTP method
POST- Description
- create a new VirtualMachineClone
- Query parameters
- Body parameters
- HTTP responses
/apis/clone.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineclones/{name}
- HTTP method
DELETE- Description
- delete the specified VirtualMachineClone
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified VirtualMachineClone
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified VirtualMachineClone
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified VirtualMachineClone
- Query parameters
- Body parameters
- HTTP responses
/apis/clone.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachineclones/{name}/status
- HTTP method
GET- Description
- read status of the specified VirtualMachineClone
- HTTP responses
- HTTP method
PATCH- Description
- partially update status of the specified VirtualMachineClone
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace status of the specified VirtualMachineClone
- Query parameters
- Body parameters
- HTTP responses