VirtualMachineSnapshot [virtualmachinesnapshots.snapshot.kubevirt.io/v1beta1]

Description
VirtualMachineSnapshot defines the operation of snapshotting a VM
Type
object
Required
spec

Specification

PropertyTypeDescription
apiVersionstring

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kindstring

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

VirtualMachineSnapshotSpec is the spec for a VirtualMachineSnapshot resource

statusobject

VirtualMachineSnapshotStatus is the status for a VirtualMachineSnapshot resource

.spec

Description
VirtualMachineSnapshotSpec is the spec for a VirtualMachineSnapshot resource
Type
object
Required
source
PropertyTypeDescription
deletionPolicystring

DeletionPolicy defines that to do with VirtualMachineSnapshot when VirtualMachineSnapshot is deleted

failureDeadlinestring

This time represents the number of seconds we permit the vm snapshot to take. In case we pass this deadline we mark this snapshot as failed. Defaults to DefaultFailureDeadline - 5min

sourceobject

TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.

.spec.source

Description
TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
Type
object
Required
kindname
PropertyTypeDescription
apiGroupstring

APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

kindstring

Kind is the type of resource being referenced

namestring

Name is the name of resource being referenced

.status

Description
VirtualMachineSnapshotStatus is the status for a VirtualMachineSnapshot resource
Type
object
PropertyTypeDescription
conditionsarray
creationTimestring
errorobject

Error is the last error encountered during the snapshot/restore

indicationsarray

Deprecated: Use SourceIndications instead. This field will be removed in a future version.

phasestring

VirtualMachineSnapshotPhase is the current phase of the VirtualMachineSnapshot

readyToUseboolean
snapshotVolumesobject

SnapshotVolumesLists includes the list of volumes which were included in the snapshot and volumes which were excluded from the snapshot

sourceIndicationsarray
sourceUIDstring

UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.

virtualMachineSnapshotContentNamestring

.status.conditions

Type
array

.status.conditions[]

Description
Condition defines conditions
Type
object
Required
statustype
PropertyTypeDescription
lastProbeTimestring
lastTransitionTimestring
messagestring
reasonstring
statusstring
typestring

ConditionType is the const type for Conditions

.status.error

Description
Error is the last error encountered during the snapshot/restore
Type
object
PropertyTypeDescription
messagestring
timestring

.status.indications

Description
Deprecated: Use SourceIndications instead. This field will be removed in a future version.
Type
array

.status.indications[]

Description
Indication is a way to indicate the state of the vm when taking the snapshot
Type
string

.status.snapshotVolumes

Description
SnapshotVolumesLists includes the list of volumes which were included in the snapshot and volumes which were excluded from the snapshot
Type
object
PropertyTypeDescription
excludedVolumesarray
includedVolumesarray

.status.snapshotVolumes.excludedVolumes

Type
array

.status.snapshotVolumes.excludedVolumes[]

Type
string

.status.snapshotVolumes.includedVolumes

Type
array

.status.snapshotVolumes.includedVolumes[]

Type
string

.status.sourceIndications

Type
array

.status.sourceIndications[]

Description
SourceIndication provides an indication of the source VM with its description message
Type
object
Required
indicationmessage
PropertyTypeDescription
indicationstring

Indication is the indication type

messagestring

Message provides a description message of the indication

API Endpoints

The following API endpoints are available:

  • /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots
    • DELETE: delete collection of VirtualMachineSnapshot
    • GET: list objects of kind VirtualMachineSnapshot
    • POST: create a new VirtualMachineSnapshot
  • /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}
    • DELETE: delete the specified VirtualMachineSnapshot
    • GET: read the specified VirtualMachineSnapshot
    • PATCH: partially update the specified VirtualMachineSnapshot
    • PUT: replace the specified VirtualMachineSnapshot
  • /apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}/status
    • GET: read status of the specified VirtualMachineSnapshot
    • PATCH: partially update status of the specified VirtualMachineSnapshot
    • PUT: replace status of the specified VirtualMachineSnapshot

/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots

HTTP method
DELETE
Description
delete collection of VirtualMachineSnapshot
HTTP responses
HTTP codeResponse body
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP method
GET
Description
list objects of kind VirtualMachineSnapshot
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineSnapshotList schema
401 - UnauthorizedEmpty
HTTP method
POST
Description
create a new VirtualMachineSnapshot
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
Body parameters
ParameterTypeDescription
bodyVirtualMachineSnapshot schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineSnapshot schema
201 - CreatedVirtualMachineSnapshot schema
202 - AcceptedVirtualMachineSnapshot schema
401 - UnauthorizedEmpty

/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}

HTTP method
DELETE
Description
delete the specified VirtualMachineSnapshot
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
HTTP responses
HTTP codeResponse body
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP method
GET
Description
read the specified VirtualMachineSnapshot
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineSnapshot schema
401 - UnauthorizedEmpty
HTTP method
PATCH
Description
partially update the specified VirtualMachineSnapshot
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineSnapshot schema
401 - UnauthorizedEmpty
HTTP method
PUT
Description
replace the specified VirtualMachineSnapshot
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
Body parameters
ParameterTypeDescription
bodyVirtualMachineSnapshot schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineSnapshot schema
201 - CreatedVirtualMachineSnapshot schema
401 - UnauthorizedEmpty

/apis/snapshot.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinesnapshots/{name}/status

HTTP method
GET
Description
read status of the specified VirtualMachineSnapshot
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineSnapshot schema
401 - UnauthorizedEmpty
HTTP method
PATCH
Description
partially update status of the specified VirtualMachineSnapshot
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineSnapshot schema
401 - UnauthorizedEmpty
HTTP method
PUT
Description
replace status of the specified VirtualMachineSnapshot
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
Body parameters
ParameterTypeDescription
bodyVirtualMachineSnapshot schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineSnapshot schema
201 - CreatedVirtualMachineSnapshot schema
401 - UnauthorizedEmpty