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.Azure.Compute
Assembly: Pulumi.Azure.dll
Syntax
public static class GetSnapshot
Methods
View SourceInvokeAsync(GetSnapshotArgs, InvokeOptions)
Use this data source to access information about an existing Snapshot.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Compute.GetSnapshot.InvokeAsync(new Azure.Compute.GetSnapshotArgs
{
Name = "my-snapshot",
ResourceGroupName = "my-resource-group",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetSnapshotResult> InvokeAsync(GetSnapshotArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSnapshotArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetSnapshotResult> |