Class GetDropletSnapshot
Inheritance
System.Object
GetDropletSnapshot
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.DigitalOcean
Assembly: Pulumi.DigitalOcean.dll
Syntax
public static class GetDropletSnapshot
Methods
View SourceInvokeAsync(GetDropletSnapshotArgs, InvokeOptions)
Droplet snapshots are saved instances of a Droplet. Use this data source to retrieve the ID of a DigitalOcean Droplet snapshot for use in other resources.
{{% examples %}}
Example Usage
{{% example %}}
Get the Droplet snapshot:
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
class MyStack : Stack
{
public MyStack()
{
var web_snapshot = Output.Create(DigitalOcean.GetDropletSnapshot.InvokeAsync(new DigitalOcean.GetDropletSnapshotArgs
{
MostRecent = true,
NameRegex = "^web",
Region = "nyc3",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetDropletSnapshotResult> InvokeAsync(GetDropletSnapshotArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetDropletSnapshotArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetDropletSnapshotResult> |