VolumeSnapshot

class VolumeSnapshot : KotlinCustomResource

Provides a DigitalOcean Volume Snapshot which can be used to create a snapshot from an existing volume.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.Volume;
import com.pulumi.digitalocean.VolumeArgs;
import com.pulumi.digitalocean.VolumeSnapshot;
import com.pulumi.digitalocean.VolumeSnapshotArgs;
import java.util.List;
import java.util.ArrayList;
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) {
var foobarVolume = new Volume("foobarVolume", VolumeArgs.builder()
.region("nyc1")
.size(100)
.description("an example volume")
.build());
var foobarVolumeSnapshot = new VolumeSnapshot("foobarVolumeSnapshot", VolumeSnapshotArgs.builder()
.volumeId(foobarVolume.id())
.build());
}
}

Import

Volume Snapshots can be imported using the snapshot id, e.g.

$ pulumi import digitalocean:index/volumeSnapshot:VolumeSnapshot snapshot 506f78a4-e098-11e5-ad9f-000f53306ae1

Properties

Link copied to clipboard
val createdAt: Output<String>

The date and time the volume snapshot was created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val minDiskSize: Output<Int>

The minimum size in gigabytes required for a volume to be created based on this volume snapshot.

Link copied to clipboard
val name: Output<String>

A name for the volume snapshot.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val regions: Output<List<String>>

A list of DigitalOcean region "slugs" indicating where the volume snapshot is available.

Link copied to clipboard
val size: Output<Double>

The billable size of the volume snapshot in gigabytes.

Link copied to clipboard
val tags: Output<List<String>>?

A list of the tags to be applied to this volume snapshot.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val volumeId: Output<String>

The ID of the volume from which the volume snapshot originated.