1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. BlockstorageVolumeV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.BlockstorageVolumeV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a V2 volume resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const volume1 = new flexibleengine.BlockstorageVolumeV2("volume1", {
        description: "first test volume",
        metadata: {
            __system__cmkid: "kms_id",
            __system__encrypted: "1",
        },
        size: 3,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    volume1 = flexibleengine.BlockstorageVolumeV2("volume1",
        description="first test volume",
        metadata={
            "__system__cmkid": "kms_id",
            "__system__encrypted": "1",
        },
        size=3)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewBlockstorageVolumeV2(ctx, "volume1", &flexibleengine.BlockstorageVolumeV2Args{
    			Description: pulumi.String("first test volume"),
    			Metadata: pulumi.StringMap{
    				"__system__cmkid":     pulumi.String("kms_id"),
    				"__system__encrypted": pulumi.String("1"),
    			},
    			Size: pulumi.Float64(3),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var volume1 = new Flexibleengine.BlockstorageVolumeV2("volume1", new()
        {
            Description = "first test volume",
            Metadata = 
            {
                { "__system__cmkid", "kms_id" },
                { "__system__encrypted", "1" },
            },
            Size = 3,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.BlockstorageVolumeV2;
    import com.pulumi.flexibleengine.BlockstorageVolumeV2Args;
    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 volume1 = new BlockstorageVolumeV2("volume1", BlockstorageVolumeV2Args.builder()
                .description("first test volume")
                .metadata(Map.ofEntries(
                    Map.entry("__system__cmkid", "kms_id"),
                    Map.entry("__system__encrypted", "1")
                ))
                .size(3)
                .build());
    
        }
    }
    
    resources:
      volume1:
        type: flexibleengine:BlockstorageVolumeV2
        properties:
          description: first test volume
          metadata:
            __system__cmkid: kms_id
            __system__encrypted: '1'
          size: 3
    

    Create BlockstorageVolumeV2 Resource

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

    Constructor syntax

    new BlockstorageVolumeV2(name: string, args: BlockstorageVolumeV2Args, opts?: CustomResourceOptions);
    @overload
    def BlockstorageVolumeV2(resource_name: str,
                             args: BlockstorageVolumeV2Args,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def BlockstorageVolumeV2(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             size: Optional[float] = None,
                             name: Optional[str] = None,
                             blockstorage_volume_v2_id: Optional[str] = None,
                             consistency_group_id: Optional[str] = None,
                             description: Optional[str] = None,
                             image_id: Optional[str] = None,
                             metadata: Optional[Mapping[str, str]] = None,
                             cascade: Optional[bool] = None,
                             multiattach: Optional[bool] = None,
                             region: Optional[str] = None,
                             availability_zone: Optional[str] = None,
                             snapshot_id: Optional[str] = None,
                             source_replica: Optional[str] = None,
                             source_vol_id: Optional[str] = None,
                             tags: Optional[Mapping[str, str]] = None,
                             timeouts: Optional[BlockstorageVolumeV2TimeoutsArgs] = None,
                             volume_type: Optional[str] = None)
    func NewBlockstorageVolumeV2(ctx *Context, name string, args BlockstorageVolumeV2Args, opts ...ResourceOption) (*BlockstorageVolumeV2, error)
    public BlockstorageVolumeV2(string name, BlockstorageVolumeV2Args args, CustomResourceOptions? opts = null)
    public BlockstorageVolumeV2(String name, BlockstorageVolumeV2Args args)
    public BlockstorageVolumeV2(String name, BlockstorageVolumeV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:BlockstorageVolumeV2
    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 BlockstorageVolumeV2Args
    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 BlockstorageVolumeV2Args
    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 BlockstorageVolumeV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BlockstorageVolumeV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BlockstorageVolumeV2Args
    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 blockstorageVolumeV2Resource = new Flexibleengine.BlockstorageVolumeV2("blockstorageVolumeV2Resource", new()
    {
        Size = 0,
        Name = "string",
        BlockstorageVolumeV2Id = "string",
        ConsistencyGroupId = "string",
        Description = "string",
        ImageId = "string",
        Metadata = 
        {
            { "string", "string" },
        },
        Cascade = false,
        Multiattach = false,
        Region = "string",
        AvailabilityZone = "string",
        SnapshotId = "string",
        SourceReplica = "string",
        SourceVolId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Flexibleengine.Inputs.BlockstorageVolumeV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        VolumeType = "string",
    });
    
    example, err := flexibleengine.NewBlockstorageVolumeV2(ctx, "blockstorageVolumeV2Resource", &flexibleengine.BlockstorageVolumeV2Args{
    	Size:                   pulumi.Float64(0),
    	Name:                   pulumi.String("string"),
    	BlockstorageVolumeV2Id: pulumi.String("string"),
    	ConsistencyGroupId:     pulumi.String("string"),
    	Description:            pulumi.String("string"),
    	ImageId:                pulumi.String("string"),
    	Metadata: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Cascade:          pulumi.Bool(false),
    	Multiattach:      pulumi.Bool(false),
    	Region:           pulumi.String("string"),
    	AvailabilityZone: pulumi.String("string"),
    	SnapshotId:       pulumi.String("string"),
    	SourceReplica:    pulumi.String("string"),
    	SourceVolId:      pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &flexibleengine.BlockstorageVolumeV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	VolumeType: pulumi.String("string"),
    })
    
    var blockstorageVolumeV2Resource = new BlockstorageVolumeV2("blockstorageVolumeV2Resource", BlockstorageVolumeV2Args.builder()
        .size(0)
        .name("string")
        .blockstorageVolumeV2Id("string")
        .consistencyGroupId("string")
        .description("string")
        .imageId("string")
        .metadata(Map.of("string", "string"))
        .cascade(false)
        .multiattach(false)
        .region("string")
        .availabilityZone("string")
        .snapshotId("string")
        .sourceReplica("string")
        .sourceVolId("string")
        .tags(Map.of("string", "string"))
        .timeouts(BlockstorageVolumeV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .volumeType("string")
        .build());
    
    blockstorage_volume_v2_resource = flexibleengine.BlockstorageVolumeV2("blockstorageVolumeV2Resource",
        size=0,
        name="string",
        blockstorage_volume_v2_id="string",
        consistency_group_id="string",
        description="string",
        image_id="string",
        metadata={
            "string": "string",
        },
        cascade=False,
        multiattach=False,
        region="string",
        availability_zone="string",
        snapshot_id="string",
        source_replica="string",
        source_vol_id="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
        },
        volume_type="string")
    
    const blockstorageVolumeV2Resource = new flexibleengine.BlockstorageVolumeV2("blockstorageVolumeV2Resource", {
        size: 0,
        name: "string",
        blockstorageVolumeV2Id: "string",
        consistencyGroupId: "string",
        description: "string",
        imageId: "string",
        metadata: {
            string: "string",
        },
        cascade: false,
        multiattach: false,
        region: "string",
        availabilityZone: "string",
        snapshotId: "string",
        sourceReplica: "string",
        sourceVolId: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
        volumeType: "string",
    });
    
    type: flexibleengine:BlockstorageVolumeV2
    properties:
        availabilityZone: string
        blockstorageVolumeV2Id: string
        cascade: false
        consistencyGroupId: string
        description: string
        imageId: string
        metadata:
            string: string
        multiattach: false
        name: string
        region: string
        size: 0
        snapshotId: string
        sourceReplica: string
        sourceVolId: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
        volumeType: string
    

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

    Size double
    The size of the volume to create (in gigabytes).
    AvailabilityZone string
    The availability zone for the volume. Changing this creates a new volume.
    BlockstorageVolumeV2Id string
    Specifies a resource ID in UUID format.
    Cascade bool
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    ConsistencyGroupId string
    The consistency group to place the volume in. Changing this creates a new volume.
    Description string
    A description of the volume. Changing this updates the volume's description.
    ImageId string
    The image ID from which to create the volume. Changing this creates a new volume.
    Metadata Dictionary<string, string>

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    Multiattach bool
    Specifies whether the EVS disk is shareable.
    Name string
    A unique name for the volume. Changing this updates the volume's name.
    Region string
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    SnapshotId string
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    SourceReplica string
    The volume ID to replicate with. Changing this creates a new volume.
    SourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    Tags Dictionary<string, string>
    The key/value pairs to associate with the volume.
    Timeouts BlockstorageVolumeV2Timeouts
    VolumeType string
    The type of volume to create. Changing this creates a new volume.
    Size float64
    The size of the volume to create (in gigabytes).
    AvailabilityZone string
    The availability zone for the volume. Changing this creates a new volume.
    BlockstorageVolumeV2Id string
    Specifies a resource ID in UUID format.
    Cascade bool
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    ConsistencyGroupId string
    The consistency group to place the volume in. Changing this creates a new volume.
    Description string
    A description of the volume. Changing this updates the volume's description.
    ImageId string
    The image ID from which to create the volume. Changing this creates a new volume.
    Metadata map[string]string

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    Multiattach bool
    Specifies whether the EVS disk is shareable.
    Name string
    A unique name for the volume. Changing this updates the volume's name.
    Region string
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    SnapshotId string
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    SourceReplica string
    The volume ID to replicate with. Changing this creates a new volume.
    SourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    Tags map[string]string
    The key/value pairs to associate with the volume.
    Timeouts BlockstorageVolumeV2TimeoutsArgs
    VolumeType string
    The type of volume to create. Changing this creates a new volume.
    size Double
    The size of the volume to create (in gigabytes).
    availabilityZone String
    The availability zone for the volume. Changing this creates a new volume.
    blockstorageVolumeV2Id String
    Specifies a resource ID in UUID format.
    cascade Boolean
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    consistencyGroupId String
    The consistency group to place the volume in. Changing this creates a new volume.
    description String
    A description of the volume. Changing this updates the volume's description.
    imageId String
    The image ID from which to create the volume. Changing this creates a new volume.
    metadata Map<String,String>

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    multiattach Boolean
    Specifies whether the EVS disk is shareable.
    name String
    A unique name for the volume. Changing this updates the volume's name.
    region String
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    snapshotId String
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    sourceReplica String
    The volume ID to replicate with. Changing this creates a new volume.
    sourceVolId String
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Map<String,String>
    The key/value pairs to associate with the volume.
    timeouts BlockstorageVolumeV2Timeouts
    volumeType String
    The type of volume to create. Changing this creates a new volume.
    size number
    The size of the volume to create (in gigabytes).
    availabilityZone string
    The availability zone for the volume. Changing this creates a new volume.
    blockstorageVolumeV2Id string
    Specifies a resource ID in UUID format.
    cascade boolean
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    consistencyGroupId string
    The consistency group to place the volume in. Changing this creates a new volume.
    description string
    A description of the volume. Changing this updates the volume's description.
    imageId string
    The image ID from which to create the volume. Changing this creates a new volume.
    metadata {[key: string]: string}

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    multiattach boolean
    Specifies whether the EVS disk is shareable.
    name string
    A unique name for the volume. Changing this updates the volume's name.
    region string
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    snapshotId string
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    sourceReplica string
    The volume ID to replicate with. Changing this creates a new volume.
    sourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags {[key: string]: string}
    The key/value pairs to associate with the volume.
    timeouts BlockstorageVolumeV2Timeouts
    volumeType string
    The type of volume to create. Changing this creates a new volume.
    size float
    The size of the volume to create (in gigabytes).
    availability_zone str
    The availability zone for the volume. Changing this creates a new volume.
    blockstorage_volume_v2_id str
    Specifies a resource ID in UUID format.
    cascade bool
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    consistency_group_id str
    The consistency group to place the volume in. Changing this creates a new volume.
    description str
    A description of the volume. Changing this updates the volume's description.
    image_id str
    The image ID from which to create the volume. Changing this creates a new volume.
    metadata Mapping[str, str]

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    multiattach bool
    Specifies whether the EVS disk is shareable.
    name str
    A unique name for the volume. Changing this updates the volume's name.
    region str
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    snapshot_id str
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    source_replica str
    The volume ID to replicate with. Changing this creates a new volume.
    source_vol_id str
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Mapping[str, str]
    The key/value pairs to associate with the volume.
    timeouts BlockstorageVolumeV2TimeoutsArgs
    volume_type str
    The type of volume to create. Changing this creates a new volume.
    size Number
    The size of the volume to create (in gigabytes).
    availabilityZone String
    The availability zone for the volume. Changing this creates a new volume.
    blockstorageVolumeV2Id String
    Specifies a resource ID in UUID format.
    cascade Boolean
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    consistencyGroupId String
    The consistency group to place the volume in. Changing this creates a new volume.
    description String
    A description of the volume. Changing this updates the volume's description.
    imageId String
    The image ID from which to create the volume. Changing this creates a new volume.
    metadata Map<String>

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    multiattach Boolean
    Specifies whether the EVS disk is shareable.
    name String
    A unique name for the volume. Changing this updates the volume's name.
    region String
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    snapshotId String
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    sourceReplica String
    The volume ID to replicate with. Changing this creates a new volume.
    sourceVolId String
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Map<String>
    The key/value pairs to associate with the volume.
    timeouts Property Map
    volumeType String
    The type of volume to create. Changing this creates a new volume.

    Outputs

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

    Attachments List<BlockstorageVolumeV2Attachment>
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    Id string
    The provider-assigned unique ID for this managed resource.
    Attachments []BlockstorageVolumeV2Attachment
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    Id string
    The provider-assigned unique ID for this managed resource.
    attachments List<BlockstorageVolumeV2Attachment>
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    id String
    The provider-assigned unique ID for this managed resource.
    attachments BlockstorageVolumeV2Attachment[]
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    id string
    The provider-assigned unique ID for this managed resource.
    attachments Sequence[BlockstorageVolumeV2Attachment]
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    id str
    The provider-assigned unique ID for this managed resource.
    attachments List<Property Map>
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing BlockstorageVolumeV2 Resource

    Get an existing BlockstorageVolumeV2 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?: BlockstorageVolumeV2State, opts?: CustomResourceOptions): BlockstorageVolumeV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attachments: Optional[Sequence[BlockstorageVolumeV2AttachmentArgs]] = None,
            availability_zone: Optional[str] = None,
            blockstorage_volume_v2_id: Optional[str] = None,
            cascade: Optional[bool] = None,
            consistency_group_id: Optional[str] = None,
            description: Optional[str] = None,
            image_id: Optional[str] = None,
            metadata: Optional[Mapping[str, str]] = None,
            multiattach: Optional[bool] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            size: Optional[float] = None,
            snapshot_id: Optional[str] = None,
            source_replica: Optional[str] = None,
            source_vol_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[BlockstorageVolumeV2TimeoutsArgs] = None,
            volume_type: Optional[str] = None) -> BlockstorageVolumeV2
    func GetBlockstorageVolumeV2(ctx *Context, name string, id IDInput, state *BlockstorageVolumeV2State, opts ...ResourceOption) (*BlockstorageVolumeV2, error)
    public static BlockstorageVolumeV2 Get(string name, Input<string> id, BlockstorageVolumeV2State? state, CustomResourceOptions? opts = null)
    public static BlockstorageVolumeV2 get(String name, Output<String> id, BlockstorageVolumeV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:BlockstorageVolumeV2    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:
    Attachments List<BlockstorageVolumeV2Attachment>
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    AvailabilityZone string
    The availability zone for the volume. Changing this creates a new volume.
    BlockstorageVolumeV2Id string
    Specifies a resource ID in UUID format.
    Cascade bool
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    ConsistencyGroupId string
    The consistency group to place the volume in. Changing this creates a new volume.
    Description string
    A description of the volume. Changing this updates the volume's description.
    ImageId string
    The image ID from which to create the volume. Changing this creates a new volume.
    Metadata Dictionary<string, string>

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    Multiattach bool
    Specifies whether the EVS disk is shareable.
    Name string
    A unique name for the volume. Changing this updates the volume's name.
    Region string
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    Size double
    The size of the volume to create (in gigabytes).
    SnapshotId string
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    SourceReplica string
    The volume ID to replicate with. Changing this creates a new volume.
    SourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    Tags Dictionary<string, string>
    The key/value pairs to associate with the volume.
    Timeouts BlockstorageVolumeV2Timeouts
    VolumeType string
    The type of volume to create. Changing this creates a new volume.
    Attachments []BlockstorageVolumeV2AttachmentArgs
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    AvailabilityZone string
    The availability zone for the volume. Changing this creates a new volume.
    BlockstorageVolumeV2Id string
    Specifies a resource ID in UUID format.
    Cascade bool
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    ConsistencyGroupId string
    The consistency group to place the volume in. Changing this creates a new volume.
    Description string
    A description of the volume. Changing this updates the volume's description.
    ImageId string
    The image ID from which to create the volume. Changing this creates a new volume.
    Metadata map[string]string

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    Multiattach bool
    Specifies whether the EVS disk is shareable.
    Name string
    A unique name for the volume. Changing this updates the volume's name.
    Region string
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    Size float64
    The size of the volume to create (in gigabytes).
    SnapshotId string
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    SourceReplica string
    The volume ID to replicate with. Changing this creates a new volume.
    SourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    Tags map[string]string
    The key/value pairs to associate with the volume.
    Timeouts BlockstorageVolumeV2TimeoutsArgs
    VolumeType string
    The type of volume to create. Changing this creates a new volume.
    attachments List<BlockstorageVolumeV2Attachment>
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    availabilityZone String
    The availability zone for the volume. Changing this creates a new volume.
    blockstorageVolumeV2Id String
    Specifies a resource ID in UUID format.
    cascade Boolean
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    consistencyGroupId String
    The consistency group to place the volume in. Changing this creates a new volume.
    description String
    A description of the volume. Changing this updates the volume's description.
    imageId String
    The image ID from which to create the volume. Changing this creates a new volume.
    metadata Map<String,String>

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    multiattach Boolean
    Specifies whether the EVS disk is shareable.
    name String
    A unique name for the volume. Changing this updates the volume's name.
    region String
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    size Double
    The size of the volume to create (in gigabytes).
    snapshotId String
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    sourceReplica String
    The volume ID to replicate with. Changing this creates a new volume.
    sourceVolId String
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Map<String,String>
    The key/value pairs to associate with the volume.
    timeouts BlockstorageVolumeV2Timeouts
    volumeType String
    The type of volume to create. Changing this creates a new volume.
    attachments BlockstorageVolumeV2Attachment[]
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    availabilityZone string
    The availability zone for the volume. Changing this creates a new volume.
    blockstorageVolumeV2Id string
    Specifies a resource ID in UUID format.
    cascade boolean
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    consistencyGroupId string
    The consistency group to place the volume in. Changing this creates a new volume.
    description string
    A description of the volume. Changing this updates the volume's description.
    imageId string
    The image ID from which to create the volume. Changing this creates a new volume.
    metadata {[key: string]: string}

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    multiattach boolean
    Specifies whether the EVS disk is shareable.
    name string
    A unique name for the volume. Changing this updates the volume's name.
    region string
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    size number
    The size of the volume to create (in gigabytes).
    snapshotId string
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    sourceReplica string
    The volume ID to replicate with. Changing this creates a new volume.
    sourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags {[key: string]: string}
    The key/value pairs to associate with the volume.
    timeouts BlockstorageVolumeV2Timeouts
    volumeType string
    The type of volume to create. Changing this creates a new volume.
    attachments Sequence[BlockstorageVolumeV2AttachmentArgs]
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    availability_zone str
    The availability zone for the volume. Changing this creates a new volume.
    blockstorage_volume_v2_id str
    Specifies a resource ID in UUID format.
    cascade bool
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    consistency_group_id str
    The consistency group to place the volume in. Changing this creates a new volume.
    description str
    A description of the volume. Changing this updates the volume's description.
    image_id str
    The image ID from which to create the volume. Changing this creates a new volume.
    metadata Mapping[str, str]

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    multiattach bool
    Specifies whether the EVS disk is shareable.
    name str
    A unique name for the volume. Changing this updates the volume's name.
    region str
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    size float
    The size of the volume to create (in gigabytes).
    snapshot_id str
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    source_replica str
    The volume ID to replicate with. Changing this creates a new volume.
    source_vol_id str
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Mapping[str, str]
    The key/value pairs to associate with the volume.
    timeouts BlockstorageVolumeV2TimeoutsArgs
    volume_type str
    The type of volume to create. Changing this creates a new volume.
    attachments List<Property Map>
    If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
    availabilityZone String
    The availability zone for the volume. Changing this creates a new volume.
    blockstorageVolumeV2Id String
    Specifies a resource ID in UUID format.
    cascade Boolean
    Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
    consistencyGroupId String
    The consistency group to place the volume in. Changing this creates a new volume.
    description String
    A description of the volume. Changing this updates the volume's description.
    imageId String
    The image ID from which to create the volume. Changing this creates a new volume.
    metadata Map<String>

    Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

    The EVS encryption capability with KMS key can be set with the following parameters:

    multiattach Boolean
    Specifies whether the EVS disk is shareable.
    name String
    A unique name for the volume. Changing this updates the volume's name.
    region String
    The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new volume.
    size Number
    The size of the volume to create (in gigabytes).
    snapshotId String
    The snapshot ID from which to create the volume. Changing this creates a new volume.
    sourceReplica String
    The volume ID to replicate with. Changing this creates a new volume.
    sourceVolId String
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Map<String>
    The key/value pairs to associate with the volume.
    timeouts Property Map
    volumeType String
    The type of volume to create. Changing this creates a new volume.

    Supporting Types

    BlockstorageVolumeV2Attachment, BlockstorageVolumeV2AttachmentArgs

    Device string
    Id string
    Specifies a resource ID in UUID format.
    InstanceId string
    Device string
    Id string
    Specifies a resource ID in UUID format.
    InstanceId string
    device String
    id String
    Specifies a resource ID in UUID format.
    instanceId String
    device string
    id string
    Specifies a resource ID in UUID format.
    instanceId string
    device str
    id str
    Specifies a resource ID in UUID format.
    instance_id str
    device String
    id String
    Specifies a resource ID in UUID format.
    instanceId String

    BlockstorageVolumeV2Timeouts, BlockstorageVolumeV2TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    Volumes can be imported using the id, e.g.

    $ pulumi import flexibleengine:index/blockstorageVolumeV2:BlockstorageVolumeV2 volume_1 ea257959-eeb1-4c10-8d33-26f0409a755d
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud