Class GetSnapshotV2
Inheritance
System.Object
GetSnapshotV2
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.OpenStack.BlockStorage
Assembly: Pulumi.OpenStack.dll
Syntax
public static class GetSnapshotV2
Methods
View SourceInvokeAsync(GetSnapshotV2Args, InvokeOptions)
Use this data source to get information about an existing snapshot.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var snapshot1 = Output.Create(OpenStack.BlockStorage.GetSnapshotV2.InvokeAsync(new OpenStack.BlockStorage.GetSnapshotV2Args
{
MostRecent = true,
Name = "snapshot_1",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetSnapshotV2Result> InvokeAsync(GetSnapshotV2Args args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSnapshotV2Args | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetSnapshotV2Result> |