1. Registry
  2. Packages
  3. Selectel Provider
  4. API Docs
  5. ComputeVolumeV3
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel
selectel
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel

    Creates and manages a network volume in Cloud Servers using the v3 public API. The volume size can only increase. Detach the volume before deletion. For more information about network volumes, see the official Selectel documentation.

    To create a volume from an existing source, set at most one of snapshot_id, source_volume_id, image_id, or backup_id.

    Example Usage

    Create an empty network volume

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const volume1 = new selectel.ComputeVolumeV3("volume_1", {
        projectId: project1.id,
        region: "ru-6",
        size: 10,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    volume1 = selectel.ComputeVolumeV3("volume_1",
        project_id=project1["id"],
        region="ru-6",
        size=10)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v9/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewComputeVolumeV3(ctx, "volume_1", &selectel.ComputeVolumeV3Args{
    			ProjectId: pulumi.Any(project1.Id),
    			Region:    pulumi.String("ru-6"),
    			Size:      pulumi.Float64(10),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var volume1 = new Selectel.ComputeVolumeV3("volume_1", new()
        {
            ProjectId = project1.Id,
            Region = "ru-6",
            Size = 10,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.ComputeVolumeV3;
    import com.pulumi.selectel.ComputeVolumeV3Args;
    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 ComputeVolumeV3("volume1", ComputeVolumeV3Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .size(10.0)
                .build());
    
        }
    }
    
    resources:
      volume1:
        type: selectel:ComputeVolumeV3
        name: volume_1
        properties:
          projectId: ${project1.id}
          region: ru-6
          size: 10
    
    Example coming soon!
    

    Create an SSD Fast v2 network volume with custom IOPS

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const volume1 = new selectel.ComputeVolumeV3("volume_1", {
        projectId: project1.id,
        region: "ru-6",
        size: 10,
        availabilityZone: "ru-6a",
        volumeType: volumeType1.name,
        metadata: {
            total_iops_sec: "30000",
        },
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    volume1 = selectel.ComputeVolumeV3("volume_1",
        project_id=project1["id"],
        region="ru-6",
        size=10,
        availability_zone="ru-6a",
        volume_type=volume_type1["name"],
        metadata={
            "total_iops_sec": "30000",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v9/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewComputeVolumeV3(ctx, "volume_1", &selectel.ComputeVolumeV3Args{
    			ProjectId:        pulumi.Any(project1.Id),
    			Region:           pulumi.String("ru-6"),
    			Size:             pulumi.Float64(10),
    			AvailabilityZone: pulumi.String("ru-6a"),
    			VolumeType:       pulumi.Any(volumeType1.Name),
    			Metadata: pulumi.StringMap{
    				"total_iops_sec": pulumi.String("30000"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var volume1 = new Selectel.ComputeVolumeV3("volume_1", new()
        {
            ProjectId = project1.Id,
            Region = "ru-6",
            Size = 10,
            AvailabilityZone = "ru-6a",
            VolumeType = volumeType1.Name,
            Metadata = 
            {
                { "total_iops_sec", "30000" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.ComputeVolumeV3;
    import com.pulumi.selectel.ComputeVolumeV3Args;
    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 ComputeVolumeV3("volume1", ComputeVolumeV3Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .size(10.0)
                .availabilityZone("ru-6a")
                .volumeType(volumeType1.name())
                .metadata(Map.of("total_iops_sec", "30000"))
                .build());
    
        }
    }
    
    resources:
      volume1:
        type: selectel:ComputeVolumeV3
        name: volume_1
        properties:
          projectId: ${project1.id}
          region: ru-6
          size: 10
          availabilityZone: ru-6a
          volumeType: ${volumeType1.name}
          metadata:
            total_iops_sec: '30000'
    
    Example coming soon!
    

    Create a network volume from a snapshot

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const volume1 = new selectel.ComputeVolumeV3("volume_1", {
        projectId: project1.id,
        region: "ru-6",
        size: 20,
        availabilityZone: "ru-6a",
        volumeType: volumeType1.name,
        snapshotId: snapshot1.id,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    volume1 = selectel.ComputeVolumeV3("volume_1",
        project_id=project1["id"],
        region="ru-6",
        size=20,
        availability_zone="ru-6a",
        volume_type=volume_type1["name"],
        snapshot_id=snapshot1["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v9/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewComputeVolumeV3(ctx, "volume_1", &selectel.ComputeVolumeV3Args{
    			ProjectId:        pulumi.Any(project1.Id),
    			Region:           pulumi.String("ru-6"),
    			Size:             pulumi.Float64(20),
    			AvailabilityZone: pulumi.String("ru-6a"),
    			VolumeType:       pulumi.Any(volumeType1.Name),
    			SnapshotId:       pulumi.Any(snapshot1.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var volume1 = new Selectel.ComputeVolumeV3("volume_1", new()
        {
            ProjectId = project1.Id,
            Region = "ru-6",
            Size = 20,
            AvailabilityZone = "ru-6a",
            VolumeType = volumeType1.Name,
            SnapshotId = snapshot1.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.ComputeVolumeV3;
    import com.pulumi.selectel.ComputeVolumeV3Args;
    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 ComputeVolumeV3("volume1", ComputeVolumeV3Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .size(20.0)
                .availabilityZone("ru-6a")
                .volumeType(volumeType1.name())
                .snapshotId(snapshot1.id())
                .build());
    
        }
    }
    
    resources:
      volume1:
        type: selectel:ComputeVolumeV3
        name: volume_1
        properties:
          projectId: ${project1.id}
          region: ru-6
          size: 20
          availabilityZone: ru-6a
          volumeType: ${volumeType1.name}
          snapshotId: ${snapshot1.id}
    
    Example coming soon!
    

    Create ComputeVolumeV3 Resource

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

    Constructor syntax

    new ComputeVolumeV3(name: string, args: ComputeVolumeV3Args, opts?: CustomResourceOptions);
    @overload
    def ComputeVolumeV3(resource_name: str,
                        args: ComputeVolumeV3Args,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ComputeVolumeV3(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        project_id: Optional[str] = None,
                        region: Optional[str] = None,
                        name: Optional[str] = None,
                        enable_online_resize: Optional[bool] = None,
                        image_id: Optional[str] = None,
                        metadata: Optional[Mapping[str, str]] = None,
                        availability_zone: Optional[str] = None,
                        description: Optional[str] = None,
                        backup_id: Optional[str] = None,
                        size: Optional[float] = None,
                        snapshot_id: Optional[str] = None,
                        source_volume_id: Optional[str] = None,
                        timeouts: Optional[ComputeVolumeV3TimeoutsArgs] = None,
                        volume_type: Optional[str] = None)
    func NewComputeVolumeV3(ctx *Context, name string, args ComputeVolumeV3Args, opts ...ResourceOption) (*ComputeVolumeV3, error)
    public ComputeVolumeV3(string name, ComputeVolumeV3Args args, CustomResourceOptions? opts = null)
    public ComputeVolumeV3(String name, ComputeVolumeV3Args args)
    public ComputeVolumeV3(String name, ComputeVolumeV3Args args, CustomResourceOptions options)
    
    type: selectel:ComputeVolumeV3
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "selectel_compute_volume_v3" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ComputeVolumeV3Args
    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 ComputeVolumeV3Args
    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 ComputeVolumeV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ComputeVolumeV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ComputeVolumeV3Args
    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 computeVolumeV3Resource = new Selectel.ComputeVolumeV3("computeVolumeV3Resource", new()
    {
        ProjectId = "string",
        Region = "string",
        Name = "string",
        EnableOnlineResize = false,
        ImageId = "string",
        Metadata = 
        {
            { "string", "string" },
        },
        AvailabilityZone = "string",
        Description = "string",
        BackupId = "string",
        Size = 0.0,
        SnapshotId = "string",
        SourceVolumeId = "string",
        Timeouts = new Selectel.Inputs.ComputeVolumeV3TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        VolumeType = "string",
    });
    
    example, err := selectel.NewComputeVolumeV3(ctx, "computeVolumeV3Resource", &selectel.ComputeVolumeV3Args{
    	ProjectId:          pulumi.String("string"),
    	Region:             pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	EnableOnlineResize: pulumi.Bool(false),
    	ImageId:            pulumi.String("string"),
    	Metadata: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	AvailabilityZone: pulumi.String("string"),
    	Description:      pulumi.String("string"),
    	BackupId:         pulumi.String("string"),
    	Size:             pulumi.Float64(0),
    	SnapshotId:       pulumi.String("string"),
    	SourceVolumeId:   pulumi.String("string"),
    	Timeouts: &selectel.ComputeVolumeV3TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	VolumeType: pulumi.String("string"),
    })
    
    resource "selectel_compute_volume_v3" "computeVolumeV3Resource" {
      lifecycle {
        create_before_destroy = true
      }
      project_id           = "string"
      region               = "string"
      name                 = "string"
      enable_online_resize = false
      image_id             = "string"
      metadata = {
        "string" = "string"
      }
      availability_zone = "string"
      description       = "string"
      backup_id         = "string"
      size              = 0
      snapshot_id       = "string"
      source_volume_id  = "string"
      timeouts = {
        create = "string"
        delete = "string"
        update = "string"
      }
      volume_type = "string"
    }
    
    var computeVolumeV3Resource = new ComputeVolumeV3("computeVolumeV3Resource", ComputeVolumeV3Args.builder()
        .projectId("string")
        .region("string")
        .name("string")
        .enableOnlineResize(false)
        .imageId("string")
        .metadata(Map.of("string", "string"))
        .availabilityZone("string")
        .description("string")
        .backupId("string")
        .size(0.0)
        .snapshotId("string")
        .sourceVolumeId("string")
        .timeouts(ComputeVolumeV3TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .volumeType("string")
        .build());
    
    compute_volume_v3_resource = selectel.ComputeVolumeV3("computeVolumeV3Resource",
        project_id="string",
        region="string",
        name="string",
        enable_online_resize=False,
        image_id="string",
        metadata={
            "string": "string",
        },
        availability_zone="string",
        description="string",
        backup_id="string",
        size=float(0),
        snapshot_id="string",
        source_volume_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        volume_type="string")
    
    const computeVolumeV3Resource = new selectel.ComputeVolumeV3("computeVolumeV3Resource", {
        projectId: "string",
        region: "string",
        name: "string",
        enableOnlineResize: false,
        imageId: "string",
        metadata: {
            string: "string",
        },
        availabilityZone: "string",
        description: "string",
        backupId: "string",
        size: 0,
        snapshotId: "string",
        sourceVolumeId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        volumeType: "string",
    });
    
    type: selectel:ComputeVolumeV3
    properties:
        availabilityZone: string
        backupId: string
        description: string
        enableOnlineResize: false
        imageId: string
        metadata:
            string: string
        name: string
        projectId: string
        region: string
        size: 0
        snapshotId: string
        sourceVolumeId: string
        timeouts:
            create: string
            delete: string
            update: string
        volumeType: string
    

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

    ProjectId string
    Region string
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    AvailabilityZone string
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    BackupId string
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    Description string
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    EnableOnlineResize bool
    ImageId string
    Metadata Dictionary<string, string>
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    Name string
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    Size double
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    SnapshotId string
    SourceVolumeId string
    Timeouts ComputeVolumeV3Timeouts
    Timeouts for network volume operations.
    VolumeType string
    ProjectId string
    Region string
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    AvailabilityZone string
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    BackupId string
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    Description string
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    EnableOnlineResize bool
    ImageId string
    Metadata map[string]string
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    Name string
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    Size float64
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    SnapshotId string
    SourceVolumeId string
    Timeouts ComputeVolumeV3TimeoutsArgs
    Timeouts for network volume operations.
    VolumeType string
    project_id string
    region string
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    availability_zone string
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    backup_id string
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    description string
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    enable_online_resize bool
    image_id string
    metadata map(string)
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    name string
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    size number
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    snapshot_id string
    source_volume_id string
    timeouts object
    Timeouts for network volume operations.
    volume_type string
    projectId String
    region String
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    availabilityZone String
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    backupId String
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    description String
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    enableOnlineResize Boolean
    imageId String
    metadata Map<String,String>
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    name String
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    size Double
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    snapshotId String
    sourceVolumeId String
    timeouts ComputeVolumeV3Timeouts
    Timeouts for network volume operations.
    volumeType String
    projectId string
    region string
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    availabilityZone string
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    backupId string
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    description string
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    enableOnlineResize boolean
    imageId string
    metadata {[key: string]: string}
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    name string
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    size number
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    snapshotId string
    sourceVolumeId string
    timeouts ComputeVolumeV3Timeouts
    Timeouts for network volume operations.
    volumeType string
    project_id str
    region str
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    availability_zone str
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    backup_id str
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    description str
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    enable_online_resize bool
    image_id str
    metadata Mapping[str, str]
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    name str
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    size float
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    snapshot_id str
    source_volume_id str
    timeouts ComputeVolumeV3TimeoutsArgs
    Timeouts for network volume operations.
    volume_type str
    projectId String
    region String
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    availabilityZone String
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    backupId String
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    description String
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    enableOnlineResize Boolean
    imageId String
    metadata Map<String>
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    name String
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    size Number
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    snapshotId String
    sourceVolumeId String
    timeouts Property Map
    Timeouts for network volume operations.
    volumeType String

    Outputs

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

    Attachments List<ComputeVolumeV3Attachment>
    Read-only volume attachments. Detach all attachments before deletion.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceMetadata Dictionary<string, string>
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    Attachments []ComputeVolumeV3Attachment
    Read-only volume attachments. Detach all attachments before deletion.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceMetadata map[string]string
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    attachments list(object)
    Read-only volume attachments. Detach all attachments before deletion.
    id string
    The provider-assigned unique ID for this managed resource.
    service_metadata map(string)
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    attachments List<ComputeVolumeV3Attachment>
    Read-only volume attachments. Detach all attachments before deletion.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceMetadata Map<String,String>
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    attachments ComputeVolumeV3Attachment[]
    Read-only volume attachments. Detach all attachments before deletion.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceMetadata {[key: string]: string}
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    attachments Sequence[ComputeVolumeV3Attachment]
    Read-only volume attachments. Detach all attachments before deletion.
    id str
    The provider-assigned unique ID for this managed resource.
    service_metadata Mapping[str, str]
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    attachments List<Property Map>
    Read-only volume attachments. Detach all attachments before deletion.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceMetadata Map<String>
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.

    Look up Existing ComputeVolumeV3 Resource

    Get an existing ComputeVolumeV3 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?: ComputeVolumeV3State, opts?: CustomResourceOptions): ComputeVolumeV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attachments: Optional[Sequence[ComputeVolumeV3AttachmentArgs]] = None,
            availability_zone: Optional[str] = None,
            backup_id: Optional[str] = None,
            description: Optional[str] = None,
            enable_online_resize: Optional[bool] = None,
            image_id: Optional[str] = None,
            metadata: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            service_metadata: Optional[Mapping[str, str]] = None,
            size: Optional[float] = None,
            snapshot_id: Optional[str] = None,
            source_volume_id: Optional[str] = None,
            timeouts: Optional[ComputeVolumeV3TimeoutsArgs] = None,
            volume_type: Optional[str] = None) -> ComputeVolumeV3
    func GetComputeVolumeV3(ctx *Context, name string, id IDInput, state *ComputeVolumeV3State, opts ...ResourceOption) (*ComputeVolumeV3, error)
    public static ComputeVolumeV3 Get(string name, Input<string> id, ComputeVolumeV3State? state, CustomResourceOptions? opts = null)
    public static ComputeVolumeV3 get(String name, Output<String> id, ComputeVolumeV3State state, CustomResourceOptions options)
    resources:  _:    type: selectel:ComputeVolumeV3    get:      id: ${id}
    import {
      to = selectel_compute_volume_v3.example
      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<ComputeVolumeV3Attachment>
    Read-only volume attachments. Detach all attachments before deletion.
    AvailabilityZone string
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    BackupId string
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    Description string
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    EnableOnlineResize bool
    ImageId string
    Metadata Dictionary<string, string>
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    Name string
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    ProjectId string
    Region string
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    ServiceMetadata Dictionary<string, string>
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    Size double
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    SnapshotId string
    SourceVolumeId string
    Timeouts ComputeVolumeV3Timeouts
    Timeouts for network volume operations.
    VolumeType string
    Attachments []ComputeVolumeV3AttachmentArgs
    Read-only volume attachments. Detach all attachments before deletion.
    AvailabilityZone string
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    BackupId string
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    Description string
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    EnableOnlineResize bool
    ImageId string
    Metadata map[string]string
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    Name string
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    ProjectId string
    Region string
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    ServiceMetadata map[string]string
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    Size float64
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    SnapshotId string
    SourceVolumeId string
    Timeouts ComputeVolumeV3TimeoutsArgs
    Timeouts for network volume operations.
    VolumeType string
    attachments list(object)
    Read-only volume attachments. Detach all attachments before deletion.
    availability_zone string
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    backup_id string
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    description string
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    enable_online_resize bool
    image_id string
    metadata map(string)
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    name string
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    project_id string
    region string
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    service_metadata map(string)
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    size number
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    snapshot_id string
    source_volume_id string
    timeouts object
    Timeouts for network volume operations.
    volume_type string
    attachments List<ComputeVolumeV3Attachment>
    Read-only volume attachments. Detach all attachments before deletion.
    availabilityZone String
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    backupId String
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    description String
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    enableOnlineResize Boolean
    imageId String
    metadata Map<String,String>
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    name String
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    projectId String
    region String
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    serviceMetadata Map<String,String>
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    size Double
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    snapshotId String
    sourceVolumeId String
    timeouts ComputeVolumeV3Timeouts
    Timeouts for network volume operations.
    volumeType String
    attachments ComputeVolumeV3Attachment[]
    Read-only volume attachments. Detach all attachments before deletion.
    availabilityZone string
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    backupId string
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    description string
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    enableOnlineResize boolean
    imageId string
    metadata {[key: string]: string}
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    name string
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    projectId string
    region string
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    serviceMetadata {[key: string]: string}
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    size number
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    snapshotId string
    sourceVolumeId string
    timeouts ComputeVolumeV3Timeouts
    Timeouts for network volume operations.
    volumeType string
    attachments Sequence[ComputeVolumeV3AttachmentArgs]
    Read-only volume attachments. Detach all attachments before deletion.
    availability_zone str
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    backup_id str
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    description str
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    enable_online_resize bool
    image_id str
    metadata Mapping[str, str]
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    name str
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    project_id str
    region str
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    service_metadata Mapping[str, str]
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    size float
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    snapshot_id str
    source_volume_id str
    timeouts ComputeVolumeV3TimeoutsArgs
    Timeouts for network volume operations.
    volume_type str
    attachments List<Property Map>
    Read-only volume attachments. Detach all attachments before deletion.
    availabilityZone String
    Pool segment, for example, ru-6a. The value cannot be empty or start or end with whitespace. The API selects a segment when omitted. Learn more about available pool segments in Product availability by location. Changing this creates a new network volume.
    backupId String
    Unique identifier of the backup to restore. The format is a lowercase UUID. This argument requires name. This argument conflicts with snapshot_id, source_volume_id, and image_id. If size is omitted, the API uses the backup size. Import does not restore this argument. To get the backup ID, use the OpenStack CLI command openstack volume backup list and copy the ID field. Changing this creates a new network volume.
    description String
    Description of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. The default value is an empty string.
    enableOnlineResize Boolean
    imageId String
    metadata Map<String>
    Key-value pairs of the network volume. Each key and value is limited to 255 characters. Keys can contain ASCII letters, digits, underscores, colons, periods, spaces, slashes, and hyphens. Metadata added by the API is available in service_metadata. Import does not restore this argument. Special keys:

    • total_iops_sec — custom IOPS as a decimal string, for volume types that support it. You can change the value but cannot remove it. Learn more about available values in network volume limits.
    • total_bytes_sec — managed by the API and cannot be set.
    • selectel_tf_create_token — reserved by the provider and cannot be set.
    name String
    Name of the network volume. The maximum length is 255 characters. The value cannot start or end with whitespace. With backup_id, this argument is required and cannot be empty. The default value is an empty string.
    projectId String
    region String
    Pool where the network volume is located, for example, ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new network volume.
    serviceMetadata Map<String>
    All metadata returned by the API, excluding the provider creation token. The map includes server-managed QoS values.
    size Number
    Size of the network volume in GB. The available range is from 1 to 2147483647. This argument is required unless snapshot_id, source_volume_id, or backup_id is set. It is also required with image_id. Only increases are supported. To increase the size of a network volume attached to a cloud server, set enable_online_resize to true. Learn more about network volume limits.
    snapshotId String
    sourceVolumeId String
    timeouts Property Map
    Timeouts for network volume operations.
    volumeType String

    Supporting Types

    ComputeVolumeV3Attachment, ComputeVolumeV3AttachmentArgs

    Device string
    Device name on the cloud server.
    Id string
    Unique identifier of the network volume.
    InstanceId string
    Unique identifier of the attached cloud server.
    Device string
    Device name on the cloud server.
    Id string
    Unique identifier of the network volume.
    InstanceId string
    Unique identifier of the attached cloud server.
    device string
    Device name on the cloud server.
    id string
    Unique identifier of the network volume.
    instance_id string
    Unique identifier of the attached cloud server.
    device String
    Device name on the cloud server.
    id String
    Unique identifier of the network volume.
    instanceId String
    Unique identifier of the attached cloud server.
    device string
    Device name on the cloud server.
    id string
    Unique identifier of the network volume.
    instanceId string
    Unique identifier of the attached cloud server.
    device str
    Device name on the cloud server.
    id str
    Unique identifier of the network volume.
    instance_id str
    Unique identifier of the attached cloud server.
    device String
    Device name on the cloud server.
    id String
    Unique identifier of the network volume.
    instanceId String
    Unique identifier of the attached cloud server.

    ComputeVolumeV3Timeouts, ComputeVolumeV3TimeoutsArgs

    Create string
    Timeout for the create operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    Delete string
    Timeout for the delete operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    Update string
    Timeout for the update operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 20m.
    Create string
    Timeout for the create operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    Delete string
    Timeout for the delete operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    Update string
    Timeout for the update operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 20m.
    create string
    Timeout for the create operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    delete string
    Timeout for the delete operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    update string
    Timeout for the update operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 20m.
    create String
    Timeout for the create operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    delete String
    Timeout for the delete operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    update String
    Timeout for the update operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 20m.
    create string
    Timeout for the create operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    delete string
    Timeout for the delete operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    update string
    Timeout for the update operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 20m.
    create str
    Timeout for the create operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    delete str
    Timeout for the delete operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    update str
    Timeout for the update operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 20m.
    create String
    Timeout for the create operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    delete String
    Timeout for the delete operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 10m.
    update String
    Timeout for the update operation. The format is a duration, for example, 30s or 10m. If omitted, the timeout is 20m.

    Import

    All versions

    Use the pulumi import command:

    Import the existing network volume by its UUID.

    Leave image_id and backup_id unset in the resource configuration after import.

    These fields are not restored. Setting either plans replacement of the volume.

    Set volume_type to the volume type name or leave it unset.

    A volume type UUID plans replacement of the volume.

    Set the project and pool containing the volume.

    export OS_DOMAIN_NAME=<domain_name>

    export OS_USERNAME=

    export OS_PASSWORD=

    export INFRA_PROJECT_ID=<project_id>

    export INFRA_REGION=

    $ pulumi import selectel:index/computeVolumeV3:ComputeVolumeV3 volume_1 <volume_uuid>
    

    <domain_name>, <username>, and <password> are the arguments of the provider configuration.

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

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel
    Viewing docs for selectel 9.5.0
    published on Friday, Oct 30, 2026 by selectel

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial