Show / Hide Table of Contents

Class GetVolume

Inheritance
System.Object
GetVolume
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.Linode
Assembly: Pulumi.Linode.dll
Syntax
public static class GetVolume

Methods

View Source

InvokeAsync(GetVolumeArgs, InvokeOptions)

Provides information about a Linode Volume.

{{% examples %}}

Example Usage

{{% example %}}

The following example shows how one might use this data source to access information about a Linode Volume.

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
public MyStack()
{
    var foo = Output.Create(Linode.GetVolume.InvokeAsync(new Linode.GetVolumeArgs
    {
        Id = "1234567",
    }));
}

}

{{% /example %}} {{% /examples %}}

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.

Declaration
public static Task<GetVolumeResult> InvokeAsync(GetVolumeArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetVolumeArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetVolumeResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.