GetVolume
Provides information about a Linode Volume.
Attributes
The Linode Volume resource exports the following attributes:
id- The unique ID of this Volume.created- When this Volume was created.status- The current status of the Volume. Can be one of “creating”, “active”, “resizing”, or “contact_support”.label- This Volume’s label is for display purposes only.tags- An array of tags applied to this object.size- The Volume’s size, in GiB.region- The datacenter in which this Volume is located.updated- When this Volume was last updated.linode_id- If a Volume is attached to a specific Linode, the ID of that Linode will be displayed here. If the Volume is unattached, this value will be null.filesystem_path- The full filesystem path for the Volume based on the Volume’s label. Path is /dev/disk/by-id/scsi-0LinodeVolume + Volume label.
Example Usage
using Pulumi;
using Linode = Pulumi.Linode;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Linode.GetVolume.InvokeAsync(new Linode.GetVolumeArgs
{
Id = 1234567,
}));
}
}
Coming soon!
import pulumi
import pulumi_linode as linode
foo = linode.get_volume(id="1234567")import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const foo = pulumi.output(linode.getVolume({
id: 1234567,
}, { async: true }));Using GetVolume
function getVolume(args: GetVolumeArgs, opts?: InvokeOptions): Promise<GetVolumeResult>function get_volume(id=None, opts=None)func LookupVolume(ctx *Context, args *LookupVolumeArgs, opts ...InvokeOption) (*LookupVolumeResult, error)Note: This function is named
LookupVolumein the Go SDK.
public static class GetVolume {
public static Task<GetVolumeResult> InvokeAsync(GetVolumeArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetVolume Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.