Class GetSnapshot
Inheritance
System.Object
GetSnapshot
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.SharedFileSystem
Assembly: Pulumi.OpenStack.dll
Syntax
public static class GetSnapshot
Methods
View SourceInvokeAsync(GetSnapshotArgs, InvokeOptions)
Use this data source to get the ID of an available Shared File System snapshot.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var snapshot1 = Output.Create(OpenStack.SharedFileSystem.GetSnapshot.InvokeAsync(new OpenStack.SharedFileSystem.GetSnapshotArgs
{
Name = "snapshot_1",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetSnapshotResult> InvokeAsync(GetSnapshotArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSnapshotArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetSnapshotResult> |