1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. BlockstorageVolumeV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.BlockstorageVolumeV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Manages a V2 volume resource within OpenTelekomCloud.

    Example Usage

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

    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,
                             device_type: Optional[str] = None,
                             image_id: Optional[str] = None,
                             cascade: Optional[bool] = None,
                             metadata: Optional[Mapping[str, str]] = 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: opentelekomcloud: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 Opentelekomcloud.BlockstorageVolumeV2("blockstorageVolumeV2Resource", new()
    {
        Size = 0,
        Name = "string",
        BlockstorageVolumeV2Id = "string",
        ConsistencyGroupId = "string",
        Description = "string",
        DeviceType = "string",
        ImageId = "string",
        Cascade = false,
        Metadata = 
        {
            { "string", "string" },
        },
        Region = "string",
        AvailabilityZone = "string",
        SnapshotId = "string",
        SourceReplica = "string",
        SourceVolId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Opentelekomcloud.Inputs.BlockstorageVolumeV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        VolumeType = "string",
    });
    
    example, err := opentelekomcloud.NewBlockstorageVolumeV2(ctx, "blockstorageVolumeV2Resource", &opentelekomcloud.BlockstorageVolumeV2Args{
    	Size:                   pulumi.Float64(0),
    	Name:                   pulumi.String("string"),
    	BlockstorageVolumeV2Id: pulumi.String("string"),
    	ConsistencyGroupId:     pulumi.String("string"),
    	Description:            pulumi.String("string"),
    	DeviceType:             pulumi.String("string"),
    	ImageId:                pulumi.String("string"),
    	Cascade:                pulumi.Bool(false),
    	Metadata: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	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: &opentelekomcloud.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")
        .deviceType("string")
        .imageId("string")
        .cascade(false)
        .metadata(Map.of("string", "string"))
        .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 = opentelekomcloud.BlockstorageVolumeV2("blockstorageVolumeV2Resource",
        size=0,
        name="string",
        blockstorage_volume_v2_id="string",
        consistency_group_id="string",
        description="string",
        device_type="string",
        image_id="string",
        cascade=False,
        metadata={
            "string": "string",
        },
        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 opentelekomcloud.BlockstorageVolumeV2("blockstorageVolumeV2Resource", {
        size: 0,
        name: "string",
        blockstorageVolumeV2Id: "string",
        consistencyGroupId: "string",
        description: "string",
        deviceType: "string",
        imageId: "string",
        cascade: false,
        metadata: {
            string: "string",
        },
        region: "string",
        availabilityZone: "string",
        snapshotId: "string",
        sourceReplica: "string",
        sourceVolId: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
        volumeType: "string",
    });
    
    type: opentelekomcloud:BlockstorageVolumeV2
    properties:
        availabilityZone: string
        blockstorageVolumeV2Id: string
        cascade: false
        consistencyGroupId: string
        description: string
        deviceType: string
        imageId: string
        metadata:
            string: string
        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). Decreasing this parameter creates a new volume.
    AvailabilityZone string
    The availability zone for the volume. Changing this creates a new volume.
    BlockstorageVolumeV2Id string
    Cascade bool
    Specifies to delete all snapshots associated with the EVS disk.
    ConsistencyGroupId string
    The consistency group to place the volume in.
    Description string
    A description of the volume. Changing this updates the volume's description.
    DeviceType string
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    Name string
    A unique name for the volume. Changing this updates the volume's name.
    Region string
    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.
    SourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    Tags Dictionary<string, string>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    Timeouts BlockstorageVolumeV2Timeouts
    VolumeType string

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    Size float64
    The size of the volume to create (in gigabytes). Decreasing this parameter creates a new volume.
    AvailabilityZone string
    The availability zone for the volume. Changing this creates a new volume.
    BlockstorageVolumeV2Id string
    Cascade bool
    Specifies to delete all snapshots associated with the EVS disk.
    ConsistencyGroupId string
    The consistency group to place the volume in.
    Description string
    A description of the volume. Changing this updates the volume's description.
    DeviceType string
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    Name string
    A unique name for the volume. Changing this updates the volume's name.
    Region string
    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.
    SourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    Tags map[string]string
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    Timeouts BlockstorageVolumeV2TimeoutsArgs
    VolumeType string

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    size Double
    The size of the volume to create (in gigabytes). Decreasing this parameter creates a new volume.
    availabilityZone String
    The availability zone for the volume. Changing this creates a new volume.
    blockstorageVolumeV2Id String
    cascade Boolean
    Specifies to delete all snapshots associated with the EVS disk.
    consistencyGroupId String
    The consistency group to place the volume in.
    description String
    A description of the volume. Changing this updates the volume's description.
    deviceType String
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    name String
    A unique name for the volume. Changing this updates the volume's name.
    region String
    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.
    sourceVolId String
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Map<String,String>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts BlockstorageVolumeV2Timeouts
    volumeType String

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    size number
    The size of the volume to create (in gigabytes). Decreasing this parameter creates a new volume.
    availabilityZone string
    The availability zone for the volume. Changing this creates a new volume.
    blockstorageVolumeV2Id string
    cascade boolean
    Specifies to delete all snapshots associated with the EVS disk.
    consistencyGroupId string
    The consistency group to place the volume in.
    description string
    A description of the volume. Changing this updates the volume's description.
    deviceType string
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    name string
    A unique name for the volume. Changing this updates the volume's name.
    region string
    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.
    sourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags {[key: string]: string}
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts BlockstorageVolumeV2Timeouts
    volumeType string

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    size float
    The size of the volume to create (in gigabytes). Decreasing this parameter creates a new volume.
    availability_zone str
    The availability zone for the volume. Changing this creates a new volume.
    blockstorage_volume_v2_id str
    cascade bool
    Specifies to delete all snapshots associated with the EVS disk.
    consistency_group_id str
    The consistency group to place the volume in.
    description str
    A description of the volume. Changing this updates the volume's description.
    device_type str
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    name str
    A unique name for the volume. Changing this updates the volume's name.
    region str
    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.
    source_vol_id str
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Mapping[str, str]
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts BlockstorageVolumeV2TimeoutsArgs
    volume_type str

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    size Number
    The size of the volume to create (in gigabytes). Decreasing this parameter creates a new volume.
    availabilityZone String
    The availability zone for the volume. Changing this creates a new volume.
    blockstorageVolumeV2Id String
    cascade Boolean
    Specifies to delete all snapshots associated with the EVS disk.
    consistencyGroupId String
    The consistency group to place the volume in.
    description String
    A description of the volume. Changing this updates the volume's description.
    deviceType String
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    name String
    A unique name for the volume. Changing this updates the volume's name.
    region String
    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.
    sourceVolId String
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Map<String>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts Property Map
    volumeType String

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    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.
    Wwn string
    Specifies the unique identifier used for mounting the EVS disk.
    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.
    Wwn string
    Specifies the unique identifier used for mounting the EVS disk.
    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.
    wwn String
    Specifies the unique identifier used for mounting the EVS disk.
    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.
    wwn string
    Specifies the unique identifier used for mounting the EVS disk.
    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.
    wwn str
    Specifies the unique identifier used for mounting the EVS disk.
    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.
    wwn String
    Specifies the unique identifier used for mounting the EVS disk.

    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,
            device_type: Optional[str] = None,
            image_id: Optional[str] = None,
            metadata: Optional[Mapping[str, str]] = 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,
            wwn: 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: opentelekomcloud: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
    Cascade bool
    Specifies to delete all snapshots associated with the EVS disk.
    ConsistencyGroupId string
    The consistency group to place the volume in.
    Description string
    A description of the volume. Changing this updates the volume's description.
    DeviceType string
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    Name string
    A unique name for the volume. Changing this updates the volume's name.
    Region string
    Size double
    The size of the volume to create (in gigabytes). Decreasing this parameter 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.
    SourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    Tags Dictionary<string, string>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    Timeouts BlockstorageVolumeV2Timeouts
    VolumeType string

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    Wwn string
    Specifies the unique identifier used for mounting the EVS disk.
    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
    Cascade bool
    Specifies to delete all snapshots associated with the EVS disk.
    ConsistencyGroupId string
    The consistency group to place the volume in.
    Description string
    A description of the volume. Changing this updates the volume's description.
    DeviceType string
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    Name string
    A unique name for the volume. Changing this updates the volume's name.
    Region string
    Size float64
    The size of the volume to create (in gigabytes). Decreasing this parameter 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.
    SourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    Tags map[string]string
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    Timeouts BlockstorageVolumeV2TimeoutsArgs
    VolumeType string

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    Wwn string
    Specifies the unique identifier used for mounting the EVS disk.
    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
    cascade Boolean
    Specifies to delete all snapshots associated with the EVS disk.
    consistencyGroupId String
    The consistency group to place the volume in.
    description String
    A description of the volume. Changing this updates the volume's description.
    deviceType String
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    name String
    A unique name for the volume. Changing this updates the volume's name.
    region String
    size Double
    The size of the volume to create (in gigabytes). Decreasing this parameter 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.
    sourceVolId String
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Map<String,String>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts BlockstorageVolumeV2Timeouts
    volumeType String

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    wwn String
    Specifies the unique identifier used for mounting the EVS disk.
    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
    cascade boolean
    Specifies to delete all snapshots associated with the EVS disk.
    consistencyGroupId string
    The consistency group to place the volume in.
    description string
    A description of the volume. Changing this updates the volume's description.
    deviceType string
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    name string
    A unique name for the volume. Changing this updates the volume's name.
    region string
    size number
    The size of the volume to create (in gigabytes). Decreasing this parameter 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.
    sourceVolId string
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags {[key: string]: string}
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts BlockstorageVolumeV2Timeouts
    volumeType string

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    wwn string
    Specifies the unique identifier used for mounting the EVS disk.
    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
    cascade bool
    Specifies to delete all snapshots associated with the EVS disk.
    consistency_group_id str
    The consistency group to place the volume in.
    description str
    A description of the volume. Changing this updates the volume's description.
    device_type str
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    name str
    A unique name for the volume. Changing this updates the volume's name.
    region str
    size float
    The size of the volume to create (in gigabytes). Decreasing this parameter 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.
    source_vol_id str
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Mapping[str, str]
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts BlockstorageVolumeV2TimeoutsArgs
    volume_type str

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    wwn str
    Specifies the unique identifier used for mounting the EVS disk.
    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
    cascade Boolean
    Specifies to delete all snapshots associated with the EVS disk.
    consistencyGroupId String
    The consistency group to place the volume in.
    description String
    A description of the volume. Changing this updates the volume's description.
    deviceType String
    The device type of volume to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new volume.
    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:
    name String
    A unique name for the volume. Changing this updates the volume's name.
    region String
    size Number
    The size of the volume to create (in gigabytes). Decreasing this parameter 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.
    sourceVolId String
    The volume ID from which to create the volume. Changing this creates a new volume.
    tags Map<String>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts Property Map
    volumeType String

    Currently, the value can be SSD (ultra-high I/O disk type), SAS (high I/O disk type), SATA (common I/O disk type), co-p1 (Exclusive HPC/ SAP HANA: high I/O, performance optimized), or uh-l1 (Exclusive HPC/ SAP HANA: ultra-high-I/O, latency optimized). Read Note for uh-l1 and co-p1: OTC-API. Changing this creates a new volume.

    NOTE: Common I/O (SATA) will reach end of life, end of 2025.

    wwn String
    Specifies the unique identifier used for mounting the EVS disk.

    Supporting Types

    BlockstorageVolumeV2Attachment, BlockstorageVolumeV2AttachmentArgs

    Device string
    Id string
    InstanceId string
    Device string
    Id string
    InstanceId string
    device String
    id String
    instanceId String
    device string
    id string
    instanceId string
    device String
    id String
    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 opentelekomcloud:index/blockstorageVolumeV2:BlockstorageVolumeV2 volume_1 ea257959-eeb1-4c10-8d33-26f0409a755d
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud