1. Registry
  2. Packages
  3. Glesys Provider
  4. API Docs
  5. Blockstorage
Viewing docs for glesys 0.19.0
published on Wednesday, Nov 4, 2026 by glesys
glesys
Viewing docs for glesys 0.19.0
published on Wednesday, Nov 4, 2026 by glesys

    BlockStorage volume.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as glesys from "@pulumi/glesys";
    
    const datadisk = new glesys.Blockstorage("datadisk", {
        name: "extra storage",
        datacenter: "dc-fbg1",
        size: 200,
        tier: "velocity",
        serverid: "kvm123456",
    });
    
    import pulumi
    import pulumi_glesys as glesys
    
    datadisk = glesys.Blockstorage("datadisk",
        name="extra storage",
        datacenter="dc-fbg1",
        size=200,
        tier="velocity",
        serverid="kvm123456")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/glesys/glesys"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := glesys.NewBlockstorage(ctx, "datadisk", &glesys.BlockstorageArgs{
    			Name:       pulumi.String("extra storage"),
    			Datacenter: pulumi.String("dc-fbg1"),
    			Size:       pulumi.Float64(200),
    			Tier:       pulumi.String("velocity"),
    			Serverid:   pulumi.String("kvm123456"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Glesys = Pulumi.Glesys;
    
    return await Deployment.RunAsync(() => 
    {
        var datadisk = new Glesys.Blockstorage("datadisk", new()
        {
            Name = "extra storage",
            Datacenter = "dc-fbg1",
            Size = 200,
            Tier = "velocity",
            Serverid = "kvm123456",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.glesys.Blockstorage;
    import com.pulumi.glesys.BlockstorageArgs;
    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 datadisk = new Blockstorage("datadisk", BlockstorageArgs.builder()
                .name("extra storage")
                .datacenter("dc-fbg1")
                .size(200.0)
                .tier("velocity")
                .serverid("kvm123456")
                .build());
    
        }
    }
    
    resources:
      datadisk:
        type: glesys:Blockstorage
        properties:
          name: extra storage
          datacenter: dc-fbg1
          size: 200
          tier: velocity
          serverid: kvm123456
    
    Example coming soon!
    

    Create Blockstorage Resource

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

    Constructor syntax

    new Blockstorage(name: string, args: BlockstorageArgs, opts?: CustomResourceOptions);
    @overload
    def Blockstorage(resource_name: str,
                     args: BlockstorageArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Blockstorage(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     datacenter: Optional[str] = None,
                     size: Optional[float] = None,
                     name: Optional[str] = None,
                     serverid: Optional[str] = None,
                     status: Optional[str] = None,
                     tier: Optional[str] = None,
                     wwn: Optional[str] = None)
    func NewBlockstorage(ctx *Context, name string, args BlockstorageArgs, opts ...ResourceOption) (*Blockstorage, error)
    public Blockstorage(string name, BlockstorageArgs args, CustomResourceOptions? opts = null)
    public Blockstorage(String name, BlockstorageArgs args)
    public Blockstorage(String name, BlockstorageArgs args, CustomResourceOptions options)
    
    type: glesys:Blockstorage
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "glesys_blockstorage" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args BlockstorageArgs
    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 BlockstorageArgs
    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 BlockstorageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BlockstorageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BlockstorageArgs
    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 blockstorageResource = new Glesys.Blockstorage("blockstorageResource", new()
    {
        Datacenter = "string",
        Size = 0.0,
        Name = "string",
        Serverid = "string",
        Status = "string",
        Tier = "string",
        Wwn = "string",
    });
    
    example, err := glesys.NewBlockstorage(ctx, "blockstorageResource", &glesys.BlockstorageArgs{
    	Datacenter: pulumi.String("string"),
    	Size:       pulumi.Float64(0),
    	Name:       pulumi.String("string"),
    	Serverid:   pulumi.String("string"),
    	Status:     pulumi.String("string"),
    	Tier:       pulumi.String("string"),
    	Wwn:        pulumi.String("string"),
    })
    
    resource "glesys_blockstorage" "blockstorageResource" {
      lifecycle {
        create_before_destroy = true
      }
      datacenter = "string"
      size       = 0
      name       = "string"
      serverid   = "string"
      status     = "string"
      tier       = "string"
      wwn        = "string"
    }
    
    var blockstorageResource = new Blockstorage("blockstorageResource", BlockstorageArgs.builder()
        .datacenter("string")
        .size(0.0)
        .name("string")
        .serverid("string")
        .status("string")
        .tier("string")
        .wwn("string")
        .build());
    
    blockstorage_resource = glesys.Blockstorage("blockstorageResource",
        datacenter="string",
        size=float(0),
        name="string",
        serverid="string",
        status="string",
        tier="string",
        wwn="string")
    
    const blockstorageResource = new glesys.Blockstorage("blockstorageResource", {
        datacenter: "string",
        size: 0,
        name: "string",
        serverid: "string",
        status: "string",
        tier: "string",
        wwn: "string",
    });
    
    type: glesys:Blockstorage
    properties:
        datacenter: string
        name: string
        serverid: string
        size: 0
        status: string
        tier: string
        wwn: string
    

    Blockstorage 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 Blockstorage resource accepts the following input properties:

    Datacenter string
    Volume location.
    Size double
    Volume size in GiB.
    Name string
    Volume descriptive name.
    Serverid string
    Attached glesys.Server id.
    Status string
    Volume status.
    Tier string
    Volume storage class tier [capacity|balanced|velocity].
    Wwn string
    Volume WWN id.
    Datacenter string
    Volume location.
    Size float64
    Volume size in GiB.
    Name string
    Volume descriptive name.
    Serverid string
    Attached glesys.Server id.
    Status string
    Volume status.
    Tier string
    Volume storage class tier [capacity|balanced|velocity].
    Wwn string
    Volume WWN id.
    datacenter string
    Volume location.
    size number
    Volume size in GiB.
    name string
    Volume descriptive name.
    serverid string
    Attached glesys.Server id.
    status string
    Volume status.
    tier string
    Volume storage class tier [capacity|balanced|velocity].
    wwn string
    Volume WWN id.
    datacenter String
    Volume location.
    size Double
    Volume size in GiB.
    name String
    Volume descriptive name.
    serverid String
    Attached glesys.Server id.
    status String
    Volume status.
    tier String
    Volume storage class tier [capacity|balanced|velocity].
    wwn String
    Volume WWN id.
    datacenter string
    Volume location.
    size number
    Volume size in GiB.
    name string
    Volume descriptive name.
    serverid string
    Attached glesys.Server id.
    status string
    Volume status.
    tier string
    Volume storage class tier [capacity|balanced|velocity].
    wwn string
    Volume WWN id.
    datacenter str
    Volume location.
    size float
    Volume size in GiB.
    name str
    Volume descriptive name.
    serverid str
    Attached glesys.Server id.
    status str
    Volume status.
    tier str
    Volume storage class tier [capacity|balanced|velocity].
    wwn str
    Volume WWN id.
    datacenter String
    Volume location.
    size Number
    Volume size in GiB.
    name String
    Volume descriptive name.
    serverid String
    Attached glesys.Server id.
    status String
    Volume status.
    tier String
    Volume storage class tier [capacity|balanced|velocity].
    wwn String
    Volume WWN id.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Blockstorage Resource

    Get an existing Blockstorage 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?: BlockstorageState, opts?: CustomResourceOptions): Blockstorage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            datacenter: Optional[str] = None,
            name: Optional[str] = None,
            serverid: Optional[str] = None,
            size: Optional[float] = None,
            status: Optional[str] = None,
            tier: Optional[str] = None,
            wwn: Optional[str] = None) -> Blockstorage
    func GetBlockstorage(ctx *Context, name string, id IDInput, state *BlockstorageState, opts ...ResourceOption) (*Blockstorage, error)
    public static Blockstorage Get(string name, Input<string> id, BlockstorageState? state, CustomResourceOptions? opts = null)
    public static Blockstorage get(String name, Output<String> id, BlockstorageState state, CustomResourceOptions options)
    resources:  existingBlockstorage:    type: glesys:Blockstorage    get:      id: ${id}
    import {
      to = glesys_blockstorage.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state BlockstorageState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state BlockstorageState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state BlockstorageState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state BlockstorageState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Datacenter string
    Volume location.
    Name string
    Volume descriptive name.
    Serverid string
    Attached glesys.Server id.
    Size double
    Volume size in GiB.
    Status string
    Volume status.
    Tier string
    Volume storage class tier [capacity|balanced|velocity].
    Wwn string
    Volume WWN id.
    Datacenter string
    Volume location.
    Name string
    Volume descriptive name.
    Serverid string
    Attached glesys.Server id.
    Size float64
    Volume size in GiB.
    Status string
    Volume status.
    Tier string
    Volume storage class tier [capacity|balanced|velocity].
    Wwn string
    Volume WWN id.
    datacenter string
    Volume location.
    name string
    Volume descriptive name.
    serverid string
    Attached glesys.Server id.
    size number
    Volume size in GiB.
    status string
    Volume status.
    tier string
    Volume storage class tier [capacity|balanced|velocity].
    wwn string
    Volume WWN id.
    datacenter String
    Volume location.
    name String
    Volume descriptive name.
    serverid String
    Attached glesys.Server id.
    size Double
    Volume size in GiB.
    status String
    Volume status.
    tier String
    Volume storage class tier [capacity|balanced|velocity].
    wwn String
    Volume WWN id.
    datacenter string
    Volume location.
    name string
    Volume descriptive name.
    serverid string
    Attached glesys.Server id.
    size number
    Volume size in GiB.
    status string
    Volume status.
    tier string
    Volume storage class tier [capacity|balanced|velocity].
    wwn string
    Volume WWN id.
    datacenter str
    Volume location.
    name str
    Volume descriptive name.
    serverid str
    Attached glesys.Server id.
    size float
    Volume size in GiB.
    status str
    Volume status.
    tier str
    Volume storage class tier [capacity|balanced|velocity].
    wwn str
    Volume WWN id.
    datacenter String
    Volume location.
    name String
    Volume descriptive name.
    serverid String
    Attached glesys.Server id.
    size Number
    Volume size in GiB.
    status String
    Volume status.
    tier String
    Volume storage class tier [capacity|balanced|velocity].
    wwn String
    Volume WWN id.

    Import

    glesys_blockstorage Import

    $ pulumi import glesys:index/blockstorage:Blockstorage example bsv-abc123
    

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

    Package Details

    Repository
    glesys glesys/terraform-provider-glesys
    License
    Notes
    This Pulumi package is based on the glesys Terraform Provider.
    glesys
    Viewing docs for glesys 0.19.0
    published on Wednesday, Nov 4, 2026 by glesys

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial