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