GetVolumeV3
Use this data source to get information about an existing volume.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var volume1 = Output.Create(OpenStack.BlockStorage.GetVolumeV3.InvokeAsync(new OpenStack.BlockStorage.GetVolumeV3Args
{
Name = "volume_1",
}));
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
volume1 = openstack.blockstorage.get_volume_v3(name="volume_1")import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const volume1 = pulumi.output(openstack.blockstorage.getVolumeV3({
name: "volume_1",
}, { async: true }));Using GetVolumeV3
function getVolumeV3(args: GetVolumeV3Args, opts?: InvokeOptions): Promise<GetVolumeV3Result>function get_volume_v3(bootable=None, metadata=None, name=None, region=None, status=None, volume_type=None, opts=None)func GetVolumeV3(ctx *Context, args *GetVolumeV3Args, opts ...InvokeOption) (*GetVolumeV3Result, error)public static class GetVolumeV3 {
public static Task<GetVolumeV3Result> InvokeAsync(GetVolumeV3Args args, InvokeOptions? opts = null)
}The following arguments are supported:
- Bootable string
Indicates if the volume is bootable.
- Metadata Dictionary<string, object>
Metadata key/value pairs associated with the volume.
- Name string
The name of the volume.
- Region string
The region in which to obtain the V3 Block Storage client. If omitted, the
regionargument of the provider is used.- Status string
The status of the volume.
- Volume
Type string The type of the volume.
- Bootable string
Indicates if the volume is bootable.
- Metadata map[string]interface{}
Metadata key/value pairs associated with the volume.
- Name string
The name of the volume.
- Region string
The region in which to obtain the V3 Block Storage client. If omitted, the
regionargument of the provider is used.- Status string
The status of the volume.
- Volume
Type string The type of the volume.
- bootable string
Indicates if the volume is bootable.
- metadata {[key: string]: any}
Metadata key/value pairs associated with the volume.
- name string
The name of the volume.
- region string
The region in which to obtain the V3 Block Storage client. If omitted, the
regionargument of the provider is used.- status string
The status of the volume.
- volume
Type string The type of the volume.
- bootable str
Indicates if the volume is bootable.
- metadata Dict[str, Any]
Metadata key/value pairs associated with the volume.
- name str
The name of the volume.
- region str
The region in which to obtain the V3 Block Storage client. If omitted, the
regionargument of the provider is used.- status str
The status of the volume.
- volume_
type str The type of the volume.
GetVolumeV3 Result
The following output properties are available:
- Bootable string
Indicates if the volume is bootable.
- Id string
The provider-assigned unique ID for this managed resource.
- Metadata Dictionary<string, object>
See Argument Reference above.
- Multiattach bool
Indicates if the volume can be attached to more then one server.
- Name string
See Argument Reference above.
- Region string
See Argument Reference above.
- Size int
The size of the volume in GBs.
- Source
Volume stringId The ID of the volume from which the current volume was created.
- Status string
See Argument Reference above.
- Volume
Type string The type of the volume.
- Bootable string
Indicates if the volume is bootable.
- Id string
The provider-assigned unique ID for this managed resource.
- Metadata map[string]interface{}
See Argument Reference above.
- Multiattach bool
Indicates if the volume can be attached to more then one server.
- Name string
See Argument Reference above.
- Region string
See Argument Reference above.
- Size int
The size of the volume in GBs.
- Source
Volume stringId The ID of the volume from which the current volume was created.
- Status string
See Argument Reference above.
- Volume
Type string The type of the volume.
- bootable string
Indicates if the volume is bootable.
- id string
The provider-assigned unique ID for this managed resource.
- metadata {[key: string]: any}
See Argument Reference above.
- multiattach boolean
Indicates if the volume can be attached to more then one server.
- name string
See Argument Reference above.
- region string
See Argument Reference above.
- size number
The size of the volume in GBs.
- source
Volume stringId The ID of the volume from which the current volume was created.
- status string
See Argument Reference above.
- volume
Type string The type of the volume.
- bootable str
Indicates if the volume is bootable.
- id str
The provider-assigned unique ID for this managed resource.
- metadata Dict[str, Any]
See Argument Reference above.
- multiattach bool
Indicates if the volume can be attached to more then one server.
- name str
See Argument Reference above.
- region str
See Argument Reference above.
- size float
The size of the volume in GBs.
- source_
volume_ strid The ID of the volume from which the current volume was created.
- status str
See Argument Reference above.
- volume_
type str The type of the volume.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.