digitalocean_microvm_checkpoints
Generated on 5 Nov 2026
from Terraform version
v2.107.0
Get information on MicroVM checkpoints for use in other resources, with the ability to filter and sort the results. If no arguments are specified, all checkpoints on the account are returned.
-> Note: MicroVMs are in public preview.
Example Usage
Get the checkpoints captured from a MicroVM and restore the newest one:
data "digitalocean_microvm_checkpoints" "web" {
microvm_id = digitalocean_microvm.web.id
filter {
key = "status"
values = ["CHECKPOINT_AVAILABLE"]
}
sort {
key = "created_at"
direction = "desc"
}
}
resource "digitalocean_microvm" "restored" {
name = "example-restored"
source {
checkpoint_id = data.digitalocean_microvm_checkpoints.web.checkpoints[0].id
}
}Argument Reference
microvm_id- (Optional) Only return checkpoints captured from this MicroVM.filter- (Optional) Filter the results. Thefilterblock is documented below.sort- (Optional) Sort the results. Thesortblock is documented below.
filter supports the following arguments:
key- (Required) Filter the checkpoints by this key. This may be one ofid,name,microvm_id,microvm_name,region,status,memory_bytes,disk_bytes, orcreated_at.values- (Required) A list of values to match against thekeyfield.match_by- (Optional) One ofexact(default),re, orsubstring.all- (Optional) Set totrueto require that a field match all of thevaluesinstead of just one or more of them.
sort supports the following arguments:
key- (Required) Sort the checkpoints by this key. This may be one ofid,name,microvm_id,microvm_name,region,status,memory_bytes,disk_bytes, orcreated_at.direction- (Required) The sort direction. This may be eitherascordesc.
Attributes Reference
checkpoints- A list of checkpoints satisfying anyfilterandsortcriteria. Each checkpoint has the following attributes:id- The ID of the checkpoint.name- The name of the checkpoint.microvm_id- The ID of the MicroVM the checkpoint was captured from.microvm_name- The name of the MicroVM the checkpoint was captured from.region- The slug of the region the checkpoint is stored in.status- The status of the checkpoint, such asCHECKPOINT_AVAILABLE.size- The size a MicroVM restored from this checkpoint inherits (cpu,memory,disk). Empty when the checkpoint does not record one.memory_bytes- The size of the persisted memory image in bytes.disk_bytes- The size of the persisted disk image in bytes.created_at- The date and time the checkpoint was created.