published on Wednesday, Nov 4, 2026 by glesys
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:
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) -> Blockstoragefunc 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.
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
glesysTerraform Provider.
published on Wednesday, Nov 4, 2026 by glesys