1. Packages
  2. Vultr
  3. API Docs
  4. VirtualFileSystemStorage
Vultr v2.27.1 published on Tuesday, Sep 30, 2025 by dirien

vultr.VirtualFileSystemStorage

Start a Neo task
Explain and create a vultr.VirtualFileSystemStorage resource
vultr logo
Vultr v2.27.1 published on Tuesday, Sep 30, 2025 by dirien

    Provides a Vultr virtual file system storage resource. This can be used to create, read, modify and delete a virtual file system storage.

    Example Usage

    Define a virtual file system storage resource:

    import * as pulumi from "@pulumi/pulumi";
    import * as vultr from "@ediri/vultr";
    
    const myVfsStorage = new vultr.VirtualFileSystemStorage("myVfsStorage", {
        label: "vultr-vfs-storage",
        region: "ewr",
        sizeGb: 10,
        tags: [
            "terraform",
            "important",
        ],
    });
    
    import pulumi
    import ediri_vultr as vultr
    
    my_vfs_storage = vultr.VirtualFileSystemStorage("myVfsStorage",
        label="vultr-vfs-storage",
        region="ewr",
        size_gb=10,
        tags=[
            "terraform",
            "important",
        ])
    
    package main
    
    import (
    	"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vultr.NewVirtualFileSystemStorage(ctx, "myVfsStorage", &vultr.VirtualFileSystemStorageArgs{
    			Label:  pulumi.String("vultr-vfs-storage"),
    			Region: pulumi.String("ewr"),
    			SizeGb: pulumi.Int(10),
    			Tags: pulumi.StringArray{
    				pulumi.String("terraform"),
    				pulumi.String("important"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vultr = ediri.Vultr;
    
    return await Deployment.RunAsync(() => 
    {
        var myVfsStorage = new Vultr.VirtualFileSystemStorage("myVfsStorage", new()
        {
            Label = "vultr-vfs-storage",
            Region = "ewr",
            SizeGb = 10,
            Tags = new[]
            {
                "terraform",
                "important",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vultr.VirtualFileSystemStorage;
    import com.pulumi.vultr.VirtualFileSystemStorageArgs;
    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 myVfsStorage = new VirtualFileSystemStorage("myVfsStorage", VirtualFileSystemStorageArgs.builder()
                .label("vultr-vfs-storage")
                .region("ewr")
                .sizeGb(10)
                .tags(            
                    "terraform",
                    "important")
                .build());
    
        }
    }
    
    resources:
      myVfsStorage:
        type: vultr:VirtualFileSystemStorage
        properties:
          label: vultr-vfs-storage
          region: ewr
          sizeGb: 10
          tags:
            - terraform
            - important
    

    Create VirtualFileSystemStorage Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualFileSystemStorage(name: string, args: VirtualFileSystemStorageArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualFileSystemStorage(resource_name: str,
                                 args: VirtualFileSystemStorageArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualFileSystemStorage(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 label: Optional[str] = None,
                                 region: Optional[str] = None,
                                 size_gb: Optional[int] = None,
                                 attached_instances: Optional[Sequence[str]] = None,
                                 disk_type: Optional[str] = None,
                                 tags: Optional[Sequence[str]] = None)
    func NewVirtualFileSystemStorage(ctx *Context, name string, args VirtualFileSystemStorageArgs, opts ...ResourceOption) (*VirtualFileSystemStorage, error)
    public VirtualFileSystemStorage(string name, VirtualFileSystemStorageArgs args, CustomResourceOptions? opts = null)
    public VirtualFileSystemStorage(String name, VirtualFileSystemStorageArgs args)
    public VirtualFileSystemStorage(String name, VirtualFileSystemStorageArgs args, CustomResourceOptions options)
    
    type: vultr:VirtualFileSystemStorage
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VirtualFileSystemStorageArgs
    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 VirtualFileSystemStorageArgs
    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 VirtualFileSystemStorageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualFileSystemStorageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualFileSystemStorageArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var virtualFileSystemStorageResource = new Vultr.VirtualFileSystemStorage("virtualFileSystemStorageResource", new()
    {
        Label = "string",
        Region = "string",
        SizeGb = 0,
        AttachedInstances = new[]
        {
            "string",
        },
        DiskType = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := vultr.NewVirtualFileSystemStorage(ctx, "virtualFileSystemStorageResource", &vultr.VirtualFileSystemStorageArgs{
    	Label:  pulumi.String("string"),
    	Region: pulumi.String("string"),
    	SizeGb: pulumi.Int(0),
    	AttachedInstances: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DiskType: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var virtualFileSystemStorageResource = new VirtualFileSystemStorage("virtualFileSystemStorageResource", VirtualFileSystemStorageArgs.builder()
        .label("string")
        .region("string")
        .sizeGb(0)
        .attachedInstances("string")
        .diskType("string")
        .tags("string")
        .build());
    
    virtual_file_system_storage_resource = vultr.VirtualFileSystemStorage("virtualFileSystemStorageResource",
        label="string",
        region="string",
        size_gb=0,
        attached_instances=["string"],
        disk_type="string",
        tags=["string"])
    
    const virtualFileSystemStorageResource = new vultr.VirtualFileSystemStorage("virtualFileSystemStorageResource", {
        label: "string",
        region: "string",
        sizeGb: 0,
        attachedInstances: ["string"],
        diskType: "string",
        tags: ["string"],
    });
    
    type: vultr:VirtualFileSystemStorage
    properties:
        attachedInstances:
            - string
        diskType: string
        label: string
        region: string
        sizeGb: 0
        tags:
            - string
    

    VirtualFileSystemStorage Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VirtualFileSystemStorage resource accepts the following input properties:

    Label string
    The label to give to the virtual file system storage subscription.
    Region string
    The region in which this virtual file system storage will reside.
    SizeGb int
    The size of the given virtual file system storage subscription.
    AttachedInstances List<string>
    A list of UUIDs to attach to the virtual file system storage subscription.
    DiskType string
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    Tags List<string>
    A list of tags to be used on the virtual file system storage subscription.
    Label string
    The label to give to the virtual file system storage subscription.
    Region string
    The region in which this virtual file system storage will reside.
    SizeGb int
    The size of the given virtual file system storage subscription.
    AttachedInstances []string
    A list of UUIDs to attach to the virtual file system storage subscription.
    DiskType string
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    Tags []string
    A list of tags to be used on the virtual file system storage subscription.
    label String
    The label to give to the virtual file system storage subscription.
    region String
    The region in which this virtual file system storage will reside.
    sizeGb Integer
    The size of the given virtual file system storage subscription.
    attachedInstances List<String>
    A list of UUIDs to attach to the virtual file system storage subscription.
    diskType String
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    tags List<String>
    A list of tags to be used on the virtual file system storage subscription.
    label string
    The label to give to the virtual file system storage subscription.
    region string
    The region in which this virtual file system storage will reside.
    sizeGb number
    The size of the given virtual file system storage subscription.
    attachedInstances string[]
    A list of UUIDs to attach to the virtual file system storage subscription.
    diskType string
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    tags string[]
    A list of tags to be used on the virtual file system storage subscription.
    label str
    The label to give to the virtual file system storage subscription.
    region str
    The region in which this virtual file system storage will reside.
    size_gb int
    The size of the given virtual file system storage subscription.
    attached_instances Sequence[str]
    A list of UUIDs to attach to the virtual file system storage subscription.
    disk_type str
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    tags Sequence[str]
    A list of tags to be used on the virtual file system storage subscription.
    label String
    The label to give to the virtual file system storage subscription.
    region String
    The region in which this virtual file system storage will reside.
    sizeGb Number
    The size of the given virtual file system storage subscription.
    attachedInstances List<String>
    A list of UUIDs to attach to the virtual file system storage subscription.
    diskType String
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    tags List<String>
    A list of tags to be used on the virtual file system storage subscription.

    Outputs

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

    Attachments List<ediri.Vultr.Outputs.VirtualFileSystemStorageAttachment>
    A list of attchment states for instances currently attached to the virtual file system storage.
    Charges double
    The current pending charges for the virtual file system storage subscription in USD.
    Cost double
    The cost per month of the virtual file system storage subscription in USD.
    DateCreated string
    The date the virtual file system storage subscription was added to your Vultr account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the virtual file system storage subscription.
    Attachments []VirtualFileSystemStorageAttachment
    A list of attchment states for instances currently attached to the virtual file system storage.
    Charges float64
    The current pending charges for the virtual file system storage subscription in USD.
    Cost float64
    The cost per month of the virtual file system storage subscription in USD.
    DateCreated string
    The date the virtual file system storage subscription was added to your Vultr account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the virtual file system storage subscription.
    attachments List<VirtualFileSystemStorageAttachment>
    A list of attchment states for instances currently attached to the virtual file system storage.
    charges Double
    The current pending charges for the virtual file system storage subscription in USD.
    cost Double
    The cost per month of the virtual file system storage subscription in USD.
    dateCreated String
    The date the virtual file system storage subscription was added to your Vultr account.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the virtual file system storage subscription.
    attachments VirtualFileSystemStorageAttachment[]
    A list of attchment states for instances currently attached to the virtual file system storage.
    charges number
    The current pending charges for the virtual file system storage subscription in USD.
    cost number
    The cost per month of the virtual file system storage subscription in USD.
    dateCreated string
    The date the virtual file system storage subscription was added to your Vultr account.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the virtual file system storage subscription.
    attachments Sequence[VirtualFileSystemStorageAttachment]
    A list of attchment states for instances currently attached to the virtual file system storage.
    charges float
    The current pending charges for the virtual file system storage subscription in USD.
    cost float
    The cost per month of the virtual file system storage subscription in USD.
    date_created str
    The date the virtual file system storage subscription was added to your Vultr account.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the virtual file system storage subscription.
    attachments List<Property Map>
    A list of attchment states for instances currently attached to the virtual file system storage.
    charges Number
    The current pending charges for the virtual file system storage subscription in USD.
    cost Number
    The cost per month of the virtual file system storage subscription in USD.
    dateCreated String
    The date the virtual file system storage subscription was added to your Vultr account.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the virtual file system storage subscription.

    Look up Existing VirtualFileSystemStorage Resource

    Get an existing VirtualFileSystemStorage 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?: VirtualFileSystemStorageState, opts?: CustomResourceOptions): VirtualFileSystemStorage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attached_instances: Optional[Sequence[str]] = None,
            attachments: Optional[Sequence[VirtualFileSystemStorageAttachmentArgs]] = None,
            charges: Optional[float] = None,
            cost: Optional[float] = None,
            date_created: Optional[str] = None,
            disk_type: Optional[str] = None,
            label: Optional[str] = None,
            region: Optional[str] = None,
            size_gb: Optional[int] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> VirtualFileSystemStorage
    func GetVirtualFileSystemStorage(ctx *Context, name string, id IDInput, state *VirtualFileSystemStorageState, opts ...ResourceOption) (*VirtualFileSystemStorage, error)
    public static VirtualFileSystemStorage Get(string name, Input<string> id, VirtualFileSystemStorageState? state, CustomResourceOptions? opts = null)
    public static VirtualFileSystemStorage get(String name, Output<String> id, VirtualFileSystemStorageState state, CustomResourceOptions options)
    resources:  _:    type: vultr:VirtualFileSystemStorage    get:      id: ${id}
    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:
    AttachedInstances List<string>
    A list of UUIDs to attach to the virtual file system storage subscription.
    Attachments List<ediri.Vultr.Inputs.VirtualFileSystemStorageAttachment>
    A list of attchment states for instances currently attached to the virtual file system storage.
    Charges double
    The current pending charges for the virtual file system storage subscription in USD.
    Cost double
    The cost per month of the virtual file system storage subscription in USD.
    DateCreated string
    The date the virtual file system storage subscription was added to your Vultr account.
    DiskType string
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    Label string
    The label to give to the virtual file system storage subscription.
    Region string
    The region in which this virtual file system storage will reside.
    SizeGb int
    The size of the given virtual file system storage subscription.
    Status string
    The status of the virtual file system storage subscription.
    Tags List<string>
    A list of tags to be used on the virtual file system storage subscription.
    AttachedInstances []string
    A list of UUIDs to attach to the virtual file system storage subscription.
    Attachments []VirtualFileSystemStorageAttachmentArgs
    A list of attchment states for instances currently attached to the virtual file system storage.
    Charges float64
    The current pending charges for the virtual file system storage subscription in USD.
    Cost float64
    The cost per month of the virtual file system storage subscription in USD.
    DateCreated string
    The date the virtual file system storage subscription was added to your Vultr account.
    DiskType string
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    Label string
    The label to give to the virtual file system storage subscription.
    Region string
    The region in which this virtual file system storage will reside.
    SizeGb int
    The size of the given virtual file system storage subscription.
    Status string
    The status of the virtual file system storage subscription.
    Tags []string
    A list of tags to be used on the virtual file system storage subscription.
    attachedInstances List<String>
    A list of UUIDs to attach to the virtual file system storage subscription.
    attachments List<VirtualFileSystemStorageAttachment>
    A list of attchment states for instances currently attached to the virtual file system storage.
    charges Double
    The current pending charges for the virtual file system storage subscription in USD.
    cost Double
    The cost per month of the virtual file system storage subscription in USD.
    dateCreated String
    The date the virtual file system storage subscription was added to your Vultr account.
    diskType String
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    label String
    The label to give to the virtual file system storage subscription.
    region String
    The region in which this virtual file system storage will reside.
    sizeGb Integer
    The size of the given virtual file system storage subscription.
    status String
    The status of the virtual file system storage subscription.
    tags List<String>
    A list of tags to be used on the virtual file system storage subscription.
    attachedInstances string[]
    A list of UUIDs to attach to the virtual file system storage subscription.
    attachments VirtualFileSystemStorageAttachment[]
    A list of attchment states for instances currently attached to the virtual file system storage.
    charges number
    The current pending charges for the virtual file system storage subscription in USD.
    cost number
    The cost per month of the virtual file system storage subscription in USD.
    dateCreated string
    The date the virtual file system storage subscription was added to your Vultr account.
    diskType string
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    label string
    The label to give to the virtual file system storage subscription.
    region string
    The region in which this virtual file system storage will reside.
    sizeGb number
    The size of the given virtual file system storage subscription.
    status string
    The status of the virtual file system storage subscription.
    tags string[]
    A list of tags to be used on the virtual file system storage subscription.
    attached_instances Sequence[str]
    A list of UUIDs to attach to the virtual file system storage subscription.
    attachments Sequence[VirtualFileSystemStorageAttachmentArgs]
    A list of attchment states for instances currently attached to the virtual file system storage.
    charges float
    The current pending charges for the virtual file system storage subscription in USD.
    cost float
    The cost per month of the virtual file system storage subscription in USD.
    date_created str
    The date the virtual file system storage subscription was added to your Vultr account.
    disk_type str
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    label str
    The label to give to the virtual file system storage subscription.
    region str
    The region in which this virtual file system storage will reside.
    size_gb int
    The size of the given virtual file system storage subscription.
    status str
    The status of the virtual file system storage subscription.
    tags Sequence[str]
    A list of tags to be used on the virtual file system storage subscription.
    attachedInstances List<String>
    A list of UUIDs to attach to the virtual file system storage subscription.
    attachments List<Property Map>
    A list of attchment states for instances currently attached to the virtual file system storage.
    charges Number
    The current pending charges for the virtual file system storage subscription in USD.
    cost Number
    The cost per month of the virtual file system storage subscription in USD.
    dateCreated String
    The date the virtual file system storage subscription was added to your Vultr account.
    diskType String
    The underlying disk type to use for the virtual file system storage. Default is nvme.
    label String
    The label to give to the virtual file system storage subscription.
    region String
    The region in which this virtual file system storage will reside.
    sizeGb Number
    The size of the given virtual file system storage subscription.
    status String
    The status of the virtual file system storage subscription.
    tags List<String>
    A list of tags to be used on the virtual file system storage subscription.

    Supporting Types

    VirtualFileSystemStorageAttachment, VirtualFileSystemStorageAttachmentArgs

    InstanceId string
    Mount int
    State string
    InstanceId string
    Mount int
    State string
    instanceId String
    mount Integer
    state String
    instanceId string
    mount number
    state string
    instanceId String
    mount Number
    state String

    Import

    Virtual file system storage can be imported using the ID, e.g.

    $ pulumi import vultr:index/virtualFileSystemStorage:VirtualFileSystemStorage my_vfs_storage 79210a84-bc58-494f-8dd1-953685654f7f
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    vultr dirien/pulumi-vultr
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vultr Terraform Provider.
    vultr logo
    Vultr v2.27.1 published on Tuesday, Sep 30, 2025 by dirien
      Meet Neo: Your AI Platform Teammate