Viewing docs for DigitalOcean v4.84.1
published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi
Viewing docs for DigitalOcean v4.84.1
published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi
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:
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const web = digitalocean.getMicrovmCheckpoints({
microvmId: webDigitaloceanMicrovm.id,
filters: [{
key: "status",
values: ["CHECKPOINT_AVAILABLE"],
}],
sorts: [{
key: "created_at",
direction: "desc",
}],
});
const restored = new digitalocean.Microvm("restored", {
name: "example-restored",
source: {
checkpointId: web.then(web => web.checkpoints?.[0]?.id),
},
});
import pulumi
import pulumi_digitalocean as digitalocean
web = digitalocean.get_microvm_checkpoints(microvm_id=web_digitalocean_microvm["id"],
filters=[{
"key": "status",
"values": ["CHECKPOINT_AVAILABLE"],
}],
sorts=[{
"key": "created_at",
"direction": "desc",
}])
restored = digitalocean.Microvm("restored",
name="example-restored",
source={
"checkpoint_id": web.checkpoints[0].id,
})
package main
import (
"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
web, err := digitalocean.GetMicrovmCheckpoints(ctx, &digitalocean.GetMicrovmCheckpointsArgs{
MicrovmId: pulumi.StringRef(webDigitaloceanMicrovm.Id),
Filters: []digitalocean.GetMicrovmCheckpointsFilter{
{
Key: "status",
Values: []string{
"CHECKPOINT_AVAILABLE",
},
},
},
Sorts: []digitalocean.GetMicrovmCheckpointsSort{
{
Key: "created_at",
Direction: pulumi.StringRef("desc"),
},
},
}, nil)
if err != nil {
return err
}
_, err = digitalocean.NewMicrovm(ctx, "restored", &digitalocean.MicrovmArgs{
Name: pulumi.String("example-restored"),
Source: &digitalocean.MicrovmSourceArgs{
CheckpointId: pulumi.String(web.Checkpoints[0].Id),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
return await Deployment.RunAsync(() =>
{
var web = DigitalOcean.GetMicrovmCheckpoints.Invoke(new()
{
MicrovmId = webDigitaloceanMicrovm.Id,
Filters = new[]
{
new DigitalOcean.Inputs.GetMicrovmCheckpointsFilterInputArgs
{
Key = "status",
Values = new[]
{
"CHECKPOINT_AVAILABLE",
},
},
},
Sorts = new[]
{
new DigitalOcean.Inputs.GetMicrovmCheckpointsSortInputArgs
{
Key = "created_at",
Direction = "desc",
},
},
});
var restored = new DigitalOcean.Microvm("restored", new()
{
Name = "example-restored",
Source = new DigitalOcean.Inputs.MicrovmSourceArgs
{
CheckpointId = web.Apply(getMicrovmCheckpointsResult => getMicrovmCheckpointsResult.Checkpoints[0]?.Id),
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DigitaloceanFunctions;
import com.pulumi.digitalocean.inputs.GetMicrovmCheckpointsArgs;
import com.pulumi.digitalocean.inputs.GetMicrovmCheckpointsFilterArgs;
import com.pulumi.digitalocean.inputs.GetMicrovmCheckpointsSortArgs;
import com.pulumi.digitalocean.Microvm;
import com.pulumi.digitalocean.MicrovmArgs;
import com.pulumi.digitalocean.inputs.MicrovmSourceArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var web = DigitaloceanFunctions.getMicrovmCheckpoints(GetMicrovmCheckpointsArgs.builder()
.microvmId(webDigitaloceanMicrovm.get("id"))
.filters(GetMicrovmCheckpointsFilterArgs.builder()
.key("status")
.values("CHECKPOINT_AVAILABLE")
.build())
.sorts(GetMicrovmCheckpointsSortArgs.builder()
.key("created_at")
.direction("desc")
.build())
.build());
var restored = new Microvm("restored", MicrovmArgs.builder()
.name("example-restored")
.source(MicrovmSourceArgs.builder()
.checkpointId(web.checkpoints()[0].id())
.build())
.build());
}
}
resources:
restored:
type: digitalocean:Microvm
properties:
name: example-restored
source:
checkpointId: ${web.checkpoints[0].id}
variables:
web:
fn::invoke:
function: digitalocean:getMicrovmCheckpoints
arguments:
microvmId: ${webDigitaloceanMicrovm.id}
filters:
- key: status
values:
- CHECKPOINT_AVAILABLE
sorts:
- key: created_at
direction: desc
terraform {
required_providers {
digitalocean = {
source = "pulumi/digitalocean"
}
}
}
data "digitalocean_microvm_checkpoints" "web" {
microvm_id = webDigitaloceanMicrovm.id
filters {
key = "status"
values = ["CHECKPOINT_AVAILABLE"]
}
sorts {
key = "created_at"
direction = "desc"
}
}
resource "digitalocean_microvm" "restored" {
lifecycle {
create_before_destroy = true
}
name = "example-restored"
source = {
checkpoint_id = data.digitalocean_microvm_checkpoints.web.checkpoints[0].id
}
}
Using getMicrovmCheckpoints
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMicrovmCheckpoints(args: GetMicrovmCheckpointsArgs, opts?: InvokeOptions): Promise<GetMicrovmCheckpointsResult>
function getMicrovmCheckpointsOutput(args: GetMicrovmCheckpointsOutputArgs, opts?: InvokeOutputOptions): Output<GetMicrovmCheckpointsResult>def get_microvm_checkpoints(filters: Optional[Sequence[GetMicrovmCheckpointsFilter]] = None,
microvm_id: Optional[str] = None,
sorts: Optional[Sequence[GetMicrovmCheckpointsSort]] = None,
opts: Optional[InvokeOptions] = None) -> GetMicrovmCheckpointsResult
def get_microvm_checkpoints_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetMicrovmCheckpointsFilterArgs]]]] = None,
microvm_id: pulumi.Input[Optional[str]] = None,
sorts: pulumi.Input[Optional[Sequence[pulumi.Input[GetMicrovmCheckpointsSortArgs]]]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetMicrovmCheckpointsResult]func GetMicrovmCheckpoints(ctx *Context, args *GetMicrovmCheckpointsArgs, opts ...InvokeOption) (*GetMicrovmCheckpointsResult, error)
func GetMicrovmCheckpointsOutput(ctx *Context, args *GetMicrovmCheckpointsOutputArgs, opts ...InvokeOption) GetMicrovmCheckpointsResultOutput> Note: This function is named GetMicrovmCheckpoints in the Go SDK.
public static class GetMicrovmCheckpoints
{
public static Task<GetMicrovmCheckpointsResult> InvokeAsync(GetMicrovmCheckpointsArgs args, InvokeOptions? opts = null)
public static Output<GetMicrovmCheckpointsResult> Invoke(GetMicrovmCheckpointsInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetMicrovmCheckpointsResult> Invoke(GetMicrovmCheckpointsInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetMicrovmCheckpointsResult> getMicrovmCheckpoints(GetMicrovmCheckpointsArgs args, InvokeOptions options)
public static Output<GetMicrovmCheckpointsResult> getMicrovmCheckpoints(GetMicrovmCheckpointsArgs args, InvokeOptions options)
public static Output<GetMicrovmCheckpointsResult> getMicrovmCheckpoints(GetMicrovmCheckpointsArgs args, InvokeOutputOptions options)
fn::invoke:
function: digitalocean:index/getMicrovmCheckpoints:getMicrovmCheckpoints
arguments:
# arguments dictionarydata "digitalocean_get_microvm_checkpoints" "name" {
# arguments
}The following arguments are supported:
- Filters
List<Pulumi.
Digital Ocean. Inputs. Get Microvm Checkpoints Filter> - Filter the results.
The
filterblock is documented below. - Microvm
Id string - Only return checkpoints captured from this MicroVM.
- Sorts
List<Pulumi.
Digital Ocean. Inputs. Get Microvm Checkpoints Sort> - Sort the results.
The
sortblock is documented below.
- Filters
[]Get
Microvm Checkpoints Filter - Filter the results.
The
filterblock is documented below. - Microvm
Id string - Only return checkpoints captured from this MicroVM.
- Sorts
[]Get
Microvm Checkpoints Sort - Sort the results.
The
sortblock is documented below.
- filters list(object)
- Filter the results.
The
filterblock is documented below. - microvm_
id string - Only return checkpoints captured from this MicroVM.
- sorts list(object)
- Sort the results.
The
sortblock is documented below.
- filters
List<Get
Microvm Checkpoints Filter> - Filter the results.
The
filterblock is documented below. - microvm
Id String - Only return checkpoints captured from this MicroVM.
- sorts
List<Get
Microvm Checkpoints Sort> - Sort the results.
The
sortblock is documented below.
- filters
Get
Microvm Checkpoints Filter[] - Filter the results.
The
filterblock is documented below. - microvm
Id string - Only return checkpoints captured from this MicroVM.
- sorts
Get
Microvm Checkpoints Sort[] - Sort the results.
The
sortblock is documented below.
- filters
Sequence[Get
Microvm Checkpoints Filter] - Filter the results.
The
filterblock is documented below. - microvm_
id str - Only return checkpoints captured from this MicroVM.
- sorts
Sequence[Get
Microvm Checkpoints Sort] - Sort the results.
The
sortblock is documented below.
- filters List<Property Map>
- Filter the results.
The
filterblock is documented below. - microvm
Id String - Only return checkpoints captured from this MicroVM.
- sorts List<Property Map>
- Sort the results.
The
sortblock is documented below.
getMicrovmCheckpoints Result
The following output properties are available:
- Checkpoints
List<Pulumi.
Digital Ocean. Outputs. Get Microvm Checkpoints Checkpoint> - A list of checkpoints satisfying any
filterandsortcriteria. Each checkpoint has the following attributes: - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Pulumi.
Digital Ocean. Outputs. Get Microvm Checkpoints Filter> - Microvm
Id string - The ID of the MicroVM the checkpoint was captured from.
- Sorts
List<Pulumi.
Digital Ocean. Outputs. Get Microvm Checkpoints Sort>
- Checkpoints
[]Get
Microvm Checkpoints Checkpoint - A list of checkpoints satisfying any
filterandsortcriteria. Each checkpoint has the following attributes: - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Microvm Checkpoints Filter - Microvm
Id string - The ID of the MicroVM the checkpoint was captured from.
- Sorts
[]Get
Microvm Checkpoints Sort
- checkpoints list(object)
- A list of checkpoints satisfying any
filterandsortcriteria. Each checkpoint has the following attributes: - id string
- The provider-assigned unique ID for this managed resource.
- filters list(object)
- microvm_
id string - The ID of the MicroVM the checkpoint was captured from.
- sorts list(object)
- checkpoints
List<Get
Microvm Checkpoints Checkpoint> - A list of checkpoints satisfying any
filterandsortcriteria. Each checkpoint has the following attributes: - id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Microvm Checkpoints Filter> - microvm
Id String - The ID of the MicroVM the checkpoint was captured from.
- sorts
List<Get
Microvm Checkpoints Sort>
- checkpoints
Get
Microvm Checkpoints Checkpoint[] - A list of checkpoints satisfying any
filterandsortcriteria. Each checkpoint has the following attributes: - id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Microvm Checkpoints Filter[] - microvm
Id string - The ID of the MicroVM the checkpoint was captured from.
- sorts
Get
Microvm Checkpoints Sort[]
- checkpoints
Sequence[Get
Microvm Checkpoints Checkpoint] - A list of checkpoints satisfying any
filterandsortcriteria. Each checkpoint has the following attributes: - id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Microvm Checkpoints Filter] - microvm_
id str - The ID of the MicroVM the checkpoint was captured from.
- sorts
Sequence[Get
Microvm Checkpoints Sort]
- checkpoints List<Property Map>
- A list of checkpoints satisfying any
filterandsortcriteria. Each checkpoint has the following attributes: - id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- microvm
Id String - The ID of the MicroVM the checkpoint was captured from.
- sorts List<Property Map>
Supporting Types
GetMicrovmCheckpointsCheckpoint
- Created
At string - The date and time the checkpoint was created.
- Disk
Bytes int - The size of the persisted disk image in bytes.
- Id string
- The ID of the checkpoint.
- Memory
Bytes int - The size of the persisted memory image in bytes.
- Microvm
Id string - Only return checkpoints captured from this MicroVM.
- Microvm
Name string - The name of the MicroVM the checkpoint was captured from.
- Name string
- The name of the checkpoint.
- Region string
- The slug of the region the checkpoint is stored in.
- Sizes
List<Pulumi.
Digital Ocean. Inputs. Get Microvm Checkpoints Checkpoint Size> - The size a MicroVM restored from this checkpoint inherits (
cpu,memory,disk). Empty when the checkpoint does not record one. - Status string
- The status of the checkpoint, such as
CHECKPOINT_AVAILABLE.
- Created
At string - The date and time the checkpoint was created.
- Disk
Bytes int - The size of the persisted disk image in bytes.
- Id string
- The ID of the checkpoint.
- Memory
Bytes int - The size of the persisted memory image in bytes.
- Microvm
Id string - Only return checkpoints captured from this MicroVM.
- Microvm
Name string - The name of the MicroVM the checkpoint was captured from.
- Name string
- The name of the checkpoint.
- Region string
- The slug of the region the checkpoint is stored in.
- Sizes
[]Get
Microvm Checkpoints Checkpoint Size - The size a MicroVM restored from this checkpoint inherits (
cpu,memory,disk). Empty when the checkpoint does not record one. - Status string
- The status of the checkpoint, such as
CHECKPOINT_AVAILABLE.
- created_
at string - The date and time the checkpoint was created.
- disk_
bytes number - The size of the persisted disk image in bytes.
- id string
- The ID of the checkpoint.
- memory_
bytes number - The size of the persisted memory image in bytes.
- microvm_
id string - Only return checkpoints captured from this MicroVM.
- microvm_
name string - The name of the MicroVM the checkpoint was captured from.
- name string
- The name of the checkpoint.
- region string
- The slug of the region the checkpoint is stored in.
- sizes list(object)
- The size a MicroVM restored from this checkpoint inherits (
cpu,memory,disk). Empty when the checkpoint does not record one. - status string
- The status of the checkpoint, such as
CHECKPOINT_AVAILABLE.
- created
At String - The date and time the checkpoint was created.
- disk
Bytes Integer - The size of the persisted disk image in bytes.
- id String
- The ID of the checkpoint.
- memory
Bytes Integer - The size of the persisted memory image in bytes.
- microvm
Id String - Only return checkpoints captured from this MicroVM.
- microvm
Name String - The name of the MicroVM the checkpoint was captured from.
- name String
- The name of the checkpoint.
- region String
- The slug of the region the checkpoint is stored in.
- sizes
List<Get
Microvm Checkpoints Checkpoint Size> - The size a MicroVM restored from this checkpoint inherits (
cpu,memory,disk). Empty when the checkpoint does not record one. - status String
- The status of the checkpoint, such as
CHECKPOINT_AVAILABLE.
- created
At string - The date and time the checkpoint was created.
- disk
Bytes number - The size of the persisted disk image in bytes.
- id string
- The ID of the checkpoint.
- memory
Bytes number - The size of the persisted memory image in bytes.
- microvm
Id string - Only return checkpoints captured from this MicroVM.
- microvm
Name string - The name of the MicroVM the checkpoint was captured from.
- name string
- The name of the checkpoint.
- region string
- The slug of the region the checkpoint is stored in.
- sizes
Get
Microvm Checkpoints Checkpoint Size[] - The size a MicroVM restored from this checkpoint inherits (
cpu,memory,disk). Empty when the checkpoint does not record one. - status string
- The status of the checkpoint, such as
CHECKPOINT_AVAILABLE.
- created_
at str - The date and time the checkpoint was created.
- disk_
bytes int - The size of the persisted disk image in bytes.
- id str
- The ID of the checkpoint.
- memory_
bytes int - The size of the persisted memory image in bytes.
- microvm_
id str - Only return checkpoints captured from this MicroVM.
- microvm_
name str - The name of the MicroVM the checkpoint was captured from.
- name str
- The name of the checkpoint.
- region str
- The slug of the region the checkpoint is stored in.
- sizes
Sequence[Get
Microvm Checkpoints Checkpoint Size] - The size a MicroVM restored from this checkpoint inherits (
cpu,memory,disk). Empty when the checkpoint does not record one. - status str
- The status of the checkpoint, such as
CHECKPOINT_AVAILABLE.
- created
At String - The date and time the checkpoint was created.
- disk
Bytes Number - The size of the persisted disk image in bytes.
- id String
- The ID of the checkpoint.
- memory
Bytes Number - The size of the persisted memory image in bytes.
- microvm
Id String - Only return checkpoints captured from this MicroVM.
- microvm
Name String - The name of the MicroVM the checkpoint was captured from.
- name String
- The name of the checkpoint.
- region String
- The slug of the region the checkpoint is stored in.
- sizes List<Property Map>
- The size a MicroVM restored from this checkpoint inherits (
cpu,memory,disk). Empty when the checkpoint does not record one. - status String
- The status of the checkpoint, such as
CHECKPOINT_AVAILABLE.
GetMicrovmCheckpointsCheckpointSize
GetMicrovmCheckpointsFilter
- Key string
- Filter the checkpoints by this key. This may be one of
id,name,microvmId,microvmName,region,status,memoryBytes,diskBytes, orcreatedAt. - Values List<string>
- A list of values to match against the
keyfield. - All bool
- Set to
trueto require that a field match all of thevaluesinstead of just one or more of them. - Match
By string - One of
exact(default),re, orsubstring.
- Key string
- Filter the checkpoints by this key. This may be one of
id,name,microvmId,microvmName,region,status,memoryBytes,diskBytes, orcreatedAt. - Values []string
- A list of values to match against the
keyfield. - All bool
- Set to
trueto require that a field match all of thevaluesinstead of just one or more of them. - Match
By string - One of
exact(default),re, orsubstring.
- key string
- Filter the checkpoints by this key. This may be one of
id,name,microvmId,microvmName,region,status,memoryBytes,diskBytes, orcreatedAt. - values list(string)
- A list of values to match against the
keyfield. - all bool
- Set to
trueto require that a field match all of thevaluesinstead of just one or more of them. - match_
by string - One of
exact(default),re, orsubstring.
- key String
- Filter the checkpoints by this key. This may be one of
id,name,microvmId,microvmName,region,status,memoryBytes,diskBytes, orcreatedAt. - values List<String>
- A list of values to match against the
keyfield. - all Boolean
- Set to
trueto require that a field match all of thevaluesinstead of just one or more of them. - match
By String - One of
exact(default),re, orsubstring.
- key string
- Filter the checkpoints by this key. This may be one of
id,name,microvmId,microvmName,region,status,memoryBytes,diskBytes, orcreatedAt. - values string[]
- A list of values to match against the
keyfield. - all boolean
- Set to
trueto require that a field match all of thevaluesinstead of just one or more of them. - match
By string - One of
exact(default),re, orsubstring.
- key str
- Filter the checkpoints by this key. This may be one of
id,name,microvmId,microvmName,region,status,memoryBytes,diskBytes, orcreatedAt. - values Sequence[str]
- A list of values to match against the
keyfield. - all bool
- Set to
trueto require that a field match all of thevaluesinstead of just one or more of them. - match_
by str - One of
exact(default),re, orsubstring.
- key String
- Filter the checkpoints by this key. This may be one of
id,name,microvmId,microvmName,region,status,memoryBytes,diskBytes, orcreatedAt. - values List<String>
- A list of values to match against the
keyfield. - all Boolean
- Set to
trueto require that a field match all of thevaluesinstead of just one or more of them. - match
By String - One of
exact(default),re, orsubstring.
GetMicrovmCheckpointsSort
Package Details
- Repository
- DigitalOcean pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitaloceanTerraform Provider.
Viewing docs for DigitalOcean v4.84.1
published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi