1. Packages
  2. Linode
  3. API Docs
  4. InstanceDisk
Linode v4.7.0 published on Friday, Sep 29, 2023 by Pulumi

linode.InstanceDisk

Explore with Pulumi AI

linode logo
Linode v4.7.0 published on Friday, Sep 29, 2023 by Pulumi

    Provides a Linode Instance Disk resource. This can be used to create, modify, and delete Linode Instance Disks.

    NOTE: Deleting a disk will shut down the attached instance if the instance is booted. If the disk was not in use by the booted configuration profile, the instance will be automatically rebooted.

    Example Usage

    Creating a simple 512 MB Linode Instance Disk

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var my_instance = new Linode.Instance("my-instance", new()
        {
            Label = "my-instance",
            Type = "g6-standard-1",
            Region = "us-southeast",
        });
    
        var boot = new Linode.InstanceDisk("boot", new()
        {
            Label = "boot",
            LinodeId = my_instance.Id,
            Size = 512,
            Filesystem = "ext4",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.NewInstance(ctx, "my-instance", &linode.InstanceArgs{
    			Label:  pulumi.String("my-instance"),
    			Type:   pulumi.String("g6-standard-1"),
    			Region: pulumi.String("us-southeast"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = linode.NewInstanceDisk(ctx, "boot", &linode.InstanceDiskArgs{
    			Label:      pulumi.String("boot"),
    			LinodeId:   my_instance.ID(),
    			Size:       pulumi.Int(512),
    			Filesystem: pulumi.String("ext4"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.Instance;
    import com.pulumi.linode.InstanceArgs;
    import com.pulumi.linode.InstanceDisk;
    import com.pulumi.linode.InstanceDiskArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var my_instance = new Instance("my-instance", InstanceArgs.builder()        
                .label("my-instance")
                .type("g6-standard-1")
                .region("us-southeast")
                .build());
    
            var boot = new InstanceDisk("boot", InstanceDiskArgs.builder()        
                .label("boot")
                .linodeId(my_instance.id())
                .size(512)
                .filesystem("ext4")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_linode as linode
    
    my_instance = linode.Instance("my-instance",
        label="my-instance",
        type="g6-standard-1",
        region="us-southeast")
    boot = linode.InstanceDisk("boot",
        label="boot",
        linode_id=my_instance.id,
        size=512,
        filesystem="ext4")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const my_instance = new linode.Instance("my-instance", {
        label: "my-instance",
        type: "g6-standard-1",
        region: "us-southeast",
    });
    const boot = new linode.InstanceDisk("boot", {
        label: "boot",
        linodeId: my_instance.id,
        size: 512,
        filesystem: "ext4",
    });
    
    resources:
      boot:
        type: linode:InstanceDisk
        properties:
          label: boot
          linodeId: ${["my-instance"].id}
          size: 512
          filesystem: ext4
      my-instance:
        type: linode:Instance
        properties:
          label: my-instance
          type: g6-standard-1
          region: us-southeast
    

    Creating a complex bootable Instance Disk

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var my_instance = new Linode.Instance("my-instance", new()
        {
            Label = "my-instance",
            Type = "g6-standard-1",
            Region = "us-southeast",
        });
    
        var boot = new Linode.InstanceDisk("boot", new()
        {
            Label = "boot",
            LinodeId = my_instance.Id,
            Size = my_instance.Specs.Apply(specs => specs.Disk),
            Image = "linode/ubuntu20.04",
            RootPass = "myc00lpass!",
            AuthorizedKeys = new[]
            {
                "ssh-rsa AAAA...Gw== user@example.local",
            },
            StackscriptId = 12345,
            StackscriptData = 
            {
                { "my_var", "my_value" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.NewInstance(ctx, "my-instance", &linode.InstanceArgs{
    			Label:  pulumi.String("my-instance"),
    			Type:   pulumi.String("g6-standard-1"),
    			Region: pulumi.String("us-southeast"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = linode.NewInstanceDisk(ctx, "boot", &linode.InstanceDiskArgs{
    			Label:    pulumi.String("boot"),
    			LinodeId: my_instance.ID(),
    			Size: my_instance.Specs.ApplyT(func(specs linode.InstanceSpecs) (*int, error) {
    				return &specs.Disk, nil
    			}).(pulumi.IntPtrOutput),
    			Image:    pulumi.String("linode/ubuntu20.04"),
    			RootPass: pulumi.String("myc00lpass!"),
    			AuthorizedKeys: pulumi.StringArray{
    				pulumi.String("ssh-rsa AAAA...Gw== user@example.local"),
    			},
    			StackscriptId: pulumi.Int(12345),
    			StackscriptData: pulumi.AnyMap{
    				"my_var": pulumi.Any("my_value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.Instance;
    import com.pulumi.linode.InstanceArgs;
    import com.pulumi.linode.InstanceDisk;
    import com.pulumi.linode.InstanceDiskArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var my_instance = new Instance("my-instance", InstanceArgs.builder()        
                .label("my-instance")
                .type("g6-standard-1")
                .region("us-southeast")
                .build());
    
            var boot = new InstanceDisk("boot", InstanceDiskArgs.builder()        
                .label("boot")
                .linodeId(my_instance.id())
                .size(my_instance.specs().applyValue(specs -> specs.disk()))
                .image("linode/ubuntu20.04")
                .rootPass("myc00lpass!")
                .authorizedKeys("ssh-rsa AAAA...Gw== user@example.local")
                .stackscriptId(12345)
                .stackscriptData(Map.of("my_var", "my_value"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_linode as linode
    
    my_instance = linode.Instance("my-instance",
        label="my-instance",
        type="g6-standard-1",
        region="us-southeast")
    boot = linode.InstanceDisk("boot",
        label="boot",
        linode_id=my_instance.id,
        size=my_instance.specs.disk,
        image="linode/ubuntu20.04",
        root_pass="myc00lpass!",
        authorized_keys=["ssh-rsa AAAA...Gw== user@example.local"],
        stackscript_id=12345,
        stackscript_data={
            "my_var": "my_value",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const my_instance = new linode.Instance("my-instance", {
        label: "my-instance",
        type: "g6-standard-1",
        region: "us-southeast",
    });
    const boot = new linode.InstanceDisk("boot", {
        label: "boot",
        linodeId: my_instance.id,
        size: my_instance.specs.apply(specs => specs.disk),
        image: "linode/ubuntu20.04",
        rootPass: "myc00lpass!",
        authorizedKeys: ["ssh-rsa AAAA...Gw== user@example.local"],
        stackscriptId: 12345,
        stackscriptData: {
            my_var: "my_value",
        },
    });
    
    resources:
      boot:
        type: linode:InstanceDisk
        properties:
          label: boot
          linodeId: ${["my-instance"].id}
          size: ${["my-instance"].specs.disk}
          image: linode/ubuntu20.04
          rootPass: myc00lpass!
          authorizedKeys:
            - ssh-rsa AAAA...Gw== user@example.local
          # Optional StackScript to run on first boot
          stackscriptId: 12345
          stackscriptData:
            my_var: my_value
      my-instance:
        type: linode:Instance
        properties:
          label: my-instance
          type: g6-standard-1
          region: us-southeast
    

    Create InstanceDisk Resource

    new InstanceDisk(name: string, args: InstanceDiskArgs, opts?: CustomResourceOptions);
    @overload
    def InstanceDisk(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     authorized_keys: Optional[Sequence[str]] = None,
                     authorized_users: Optional[Sequence[str]] = None,
                     filesystem: Optional[str] = None,
                     image: Optional[str] = None,
                     label: Optional[str] = None,
                     linode_id: Optional[int] = None,
                     root_pass: Optional[str] = None,
                     size: Optional[int] = None,
                     stackscript_data: Optional[Mapping[str, Any]] = None,
                     stackscript_id: Optional[int] = None)
    @overload
    def InstanceDisk(resource_name: str,
                     args: InstanceDiskInitArgs,
                     opts: Optional[ResourceOptions] = None)
    func NewInstanceDisk(ctx *Context, name string, args InstanceDiskArgs, opts ...ResourceOption) (*InstanceDisk, error)
    public InstanceDisk(string name, InstanceDiskArgs args, CustomResourceOptions? opts = null)
    public InstanceDisk(String name, InstanceDiskArgs args)
    public InstanceDisk(String name, InstanceDiskArgs args, CustomResourceOptions options)
    
    type: linode:InstanceDisk
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args InstanceDiskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args InstanceDiskInitArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args InstanceDiskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceDiskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceDiskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    InstanceDisk Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The InstanceDisk resource accepts the following input properties:

    Label string

    The Disk's label for display purposes only.

    LinodeId int

    The ID of the Linode to create this Disk under.

    Size int

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    AuthorizedKeys List<string>

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    AuthorizedUsers List<string>

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    Filesystem string

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    Image string

    An Image ID to deploy the Linode Disk from.

    RootPass string

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    StackscriptData Dictionary<string, object>

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    StackscriptId int

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    Label string

    The Disk's label for display purposes only.

    LinodeId int

    The ID of the Linode to create this Disk under.

    Size int

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    AuthorizedKeys []string

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    AuthorizedUsers []string

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    Filesystem string

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    Image string

    An Image ID to deploy the Linode Disk from.

    RootPass string

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    StackscriptData map[string]interface{}

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    StackscriptId int

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    label String

    The Disk's label for display purposes only.

    linodeId Integer

    The ID of the Linode to create this Disk under.

    size Integer

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    authorizedKeys List<String>

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    authorizedUsers List<String>

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    filesystem String

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    image String

    An Image ID to deploy the Linode Disk from.

    rootPass String

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    stackscriptData Map<String,Object>

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    stackscriptId Integer

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    label string

    The Disk's label for display purposes only.

    linodeId number

    The ID of the Linode to create this Disk under.

    size number

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    authorizedKeys string[]

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    authorizedUsers string[]

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    filesystem string

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    image string

    An Image ID to deploy the Linode Disk from.

    rootPass string

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    stackscriptData {[key: string]: any}

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    stackscriptId number

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    label str

    The Disk's label for display purposes only.

    linode_id int

    The ID of the Linode to create this Disk under.

    size int

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    authorized_keys Sequence[str]

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    authorized_users Sequence[str]

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    filesystem str

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    image str

    An Image ID to deploy the Linode Disk from.

    root_pass str

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    stackscript_data Mapping[str, Any]

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    stackscript_id int

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    label String

    The Disk's label for display purposes only.

    linodeId Number

    The ID of the Linode to create this Disk under.

    size Number

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    authorizedKeys List<String>

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    authorizedUsers List<String>

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    filesystem String

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    image String

    An Image ID to deploy the Linode Disk from.

    rootPass String

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    stackscriptData Map<Any>

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    stackscriptId Number

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InstanceDisk resource produces the following output properties:

    Created string

    When this disk was created.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    A brief description of this Disk's current state.

    Updated string

    When this disk was last updated.

    Created string

    When this disk was created.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    A brief description of this Disk's current state.

    Updated string

    When this disk was last updated.

    created String

    When this disk was created.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    A brief description of this Disk's current state.

    updated String

    When this disk was last updated.

    created string

    When this disk was created.

    id string

    The provider-assigned unique ID for this managed resource.

    status string

    A brief description of this Disk's current state.

    updated string

    When this disk was last updated.

    created str

    When this disk was created.

    id str

    The provider-assigned unique ID for this managed resource.

    status str

    A brief description of this Disk's current state.

    updated str

    When this disk was last updated.

    created String

    When this disk was created.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    A brief description of this Disk's current state.

    updated String

    When this disk was last updated.

    Look up Existing InstanceDisk Resource

    Get an existing InstanceDisk resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: InstanceDiskState, opts?: CustomResourceOptions): InstanceDisk
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authorized_keys: Optional[Sequence[str]] = None,
            authorized_users: Optional[Sequence[str]] = None,
            created: Optional[str] = None,
            filesystem: Optional[str] = None,
            image: Optional[str] = None,
            label: Optional[str] = None,
            linode_id: Optional[int] = None,
            root_pass: Optional[str] = None,
            size: Optional[int] = None,
            stackscript_data: Optional[Mapping[str, Any]] = None,
            stackscript_id: Optional[int] = None,
            status: Optional[str] = None,
            updated: Optional[str] = None) -> InstanceDisk
    func GetInstanceDisk(ctx *Context, name string, id IDInput, state *InstanceDiskState, opts ...ResourceOption) (*InstanceDisk, error)
    public static InstanceDisk Get(string name, Input<string> id, InstanceDiskState? state, CustomResourceOptions? opts = null)
    public static InstanceDisk get(String name, Output<String> id, InstanceDiskState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AuthorizedKeys List<string>

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    AuthorizedUsers List<string>

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    Created string

    When this disk was created.

    Filesystem string

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    Image string

    An Image ID to deploy the Linode Disk from.

    Label string

    The Disk's label for display purposes only.

    LinodeId int

    The ID of the Linode to create this Disk under.

    RootPass string

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    Size int

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    StackscriptData Dictionary<string, object>

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    StackscriptId int

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    Status string

    A brief description of this Disk's current state.

    Updated string

    When this disk was last updated.

    AuthorizedKeys []string

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    AuthorizedUsers []string

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    Created string

    When this disk was created.

    Filesystem string

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    Image string

    An Image ID to deploy the Linode Disk from.

    Label string

    The Disk's label for display purposes only.

    LinodeId int

    The ID of the Linode to create this Disk under.

    RootPass string

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    Size int

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    StackscriptData map[string]interface{}

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    StackscriptId int

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    Status string

    A brief description of this Disk's current state.

    Updated string

    When this disk was last updated.

    authorizedKeys List<String>

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    authorizedUsers List<String>

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    created String

    When this disk was created.

    filesystem String

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    image String

    An Image ID to deploy the Linode Disk from.

    label String

    The Disk's label for display purposes only.

    linodeId Integer

    The ID of the Linode to create this Disk under.

    rootPass String

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    size Integer

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    stackscriptData Map<String,Object>

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    stackscriptId Integer

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    status String

    A brief description of this Disk's current state.

    updated String

    When this disk was last updated.

    authorizedKeys string[]

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    authorizedUsers string[]

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    created string

    When this disk was created.

    filesystem string

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    image string

    An Image ID to deploy the Linode Disk from.

    label string

    The Disk's label for display purposes only.

    linodeId number

    The ID of the Linode to create this Disk under.

    rootPass string

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    size number

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    stackscriptData {[key: string]: any}

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    stackscriptId number

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    status string

    A brief description of this Disk's current state.

    updated string

    When this disk was last updated.

    authorized_keys Sequence[str]

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    authorized_users Sequence[str]

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    created str

    When this disk was created.

    filesystem str

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    image str

    An Image ID to deploy the Linode Disk from.

    label str

    The Disk's label for display purposes only.

    linode_id int

    The ID of the Linode to create this Disk under.

    root_pass str

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    size int

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    stackscript_data Mapping[str, Any]

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    stackscript_id int

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    status str

    A brief description of this Disk's current state.

    updated str

    When this disk was last updated.

    authorizedKeys List<String>

    A list of public SSH keys that will be automatically appended to the root user’s ~/.ssh/authorized_keys file when deploying from an Image.

    authorizedUsers List<String>

    A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the

    created String

    When this disk was created.

    filesystem String

    The filesystem of this disk. (raw, swap, ext3, ext4, initrd)

    image String

    An Image ID to deploy the Linode Disk from.

    label String

    The Disk's label for display purposes only.

    linodeId Number

    The ID of the Linode to create this Disk under.

    rootPass String

    The root user’s password on a newly-created Linode Disk when deploying from an Image.

    size Number

    The size of the Disk in MB. NOTE: Resizing a disk will trigger a Linode reboot.


    stackscriptData Map<Any>

    An object containing responses to any User Defined Fields present in the StackScript being deployed to this Disk. Only accepted if stackscript_id is given.

    stackscriptId Number

    A StackScript ID that will cause the referenced StackScript to be run during deployment of this Disk.

    status String

    A brief description of this Disk's current state.

    updated String

    When this disk was last updated.

    Import

    Instance Disks can be imported using the linode_id followed by the Instance Disk id separated by a comma, e.g.

     $ pulumi import linode:index/instanceDisk:InstanceDisk my-disk 1234567,7654321
    

    The Linode Guide, Import Existing Infrastructure to Terraform, offers resource importing examples for various Linode resource types.

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the linode Terraform Provider.

    linode logo
    Linode v4.7.0 published on Friday, Sep 29, 2023 by Pulumi