1. Registry
  2. Packages
  3. Selectel Provider
  4. API Docs
  5. ComputeImageV2
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

    Example Usage

    Upload an image from a local file

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const image1 = new selectel.ComputeImageV2("image_1", {
        projectId: project1.id,
        region: "ru-6",
        name: "image-1",
        containerFormat: "bare",
        diskFormat: "qcow2",
        localFilePath: "/var/lib/images/disk.qcow2",
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    image1 = selectel.ComputeImageV2("image_1",
        project_id=project1["id"],
        region="ru-6",
        name="image-1",
        container_format="bare",
        disk_format="qcow2",
        local_file_path="/var/lib/images/disk.qcow2")
    
    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.NewComputeImageV2(ctx, "image_1", &selectel.ComputeImageV2Args{
    			ProjectId:       pulumi.Any(project1.Id),
    			Region:          pulumi.String("ru-6"),
    			Name:            pulumi.String("image-1"),
    			ContainerFormat: pulumi.String("bare"),
    			DiskFormat:      pulumi.String("qcow2"),
    			LocalFilePath:   pulumi.String("/var/lib/images/disk.qcow2"),
    		})
    		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 image1 = new Selectel.ComputeImageV2("image_1", new()
        {
            ProjectId = project1.Id,
            Region = "ru-6",
            Name = "image-1",
            ContainerFormat = "bare",
            DiskFormat = "qcow2",
            LocalFilePath = "/var/lib/images/disk.qcow2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.ComputeImageV2;
    import com.pulumi.selectel.ComputeImageV2Args;
    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 image1 = new ComputeImageV2("image1", ComputeImageV2Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .name("image-1")
                .containerFormat("bare")
                .diskFormat("qcow2")
                .localFilePath("/var/lib/images/disk.qcow2")
                .build());
    
        }
    }
    
    resources:
      image1:
        type: selectel:ComputeImageV2
        name: image_1
        properties:
          projectId: ${project1.id}
          region: ru-6
          name: image-1
          containerFormat: bare
          diskFormat: qcow2
          localFilePath: /var/lib/images/disk.qcow2
    
    Example coming soon!
    

    Create an image from a URL

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const image1 = new selectel.ComputeImageV2("image_1", {
        projectId: project1.id,
        region: "ru-6",
        name: "ubuntu-24.04",
        containerFormat: "bare",
        diskFormat: "qcow2",
        imageSourceUrl: "https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img",
        minDiskGb: 5,
        properties: {
            os_distro: "ubuntu",
        },
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    image1 = selectel.ComputeImageV2("image_1",
        project_id=project1["id"],
        region="ru-6",
        name="ubuntu-24.04",
        container_format="bare",
        disk_format="qcow2",
        image_source_url="https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img",
        min_disk_gb=5,
        properties={
            "os_distro": "ubuntu",
        })
    
    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.NewComputeImageV2(ctx, "image_1", &selectel.ComputeImageV2Args{
    			ProjectId:       pulumi.Any(project1.Id),
    			Region:          pulumi.String("ru-6"),
    			Name:            pulumi.String("ubuntu-24.04"),
    			ContainerFormat: pulumi.String("bare"),
    			DiskFormat:      pulumi.String("qcow2"),
    			ImageSourceUrl:  pulumi.String("https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"),
    			MinDiskGb:       pulumi.Float64(5),
    			Properties: pulumi.StringMap{
    				"os_distro": pulumi.String("ubuntu"),
    			},
    		})
    		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 image1 = new Selectel.ComputeImageV2("image_1", new()
        {
            ProjectId = project1.Id,
            Region = "ru-6",
            Name = "ubuntu-24.04",
            ContainerFormat = "bare",
            DiskFormat = "qcow2",
            ImageSourceUrl = "https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img",
            MinDiskGb = 5,
            Properties = 
            {
                { "os_distro", "ubuntu" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.ComputeImageV2;
    import com.pulumi.selectel.ComputeImageV2Args;
    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 image1 = new ComputeImageV2("image1", ComputeImageV2Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .name("ubuntu-24.04")
                .containerFormat("bare")
                .diskFormat("qcow2")
                .imageSourceUrl("https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img")
                .minDiskGb(5.0)
                .properties(Map.of("os_distro", "ubuntu"))
                .build());
    
        }
    }
    
    resources:
      image1:
        type: selectel:ComputeImageV2
        name: image_1
        properties:
          projectId: ${project1.id}
          region: ru-6
          name: ubuntu-24.04
          containerFormat: bare
          diskFormat: qcow2
          imageSourceUrl: https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
          minDiskGb: 5
          properties:
            os_distro: ubuntu
    
    Example coming soon!
    

    Create ComputeImageV2 Resource

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

    Constructor syntax

    new ComputeImageV2(name: string, args: ComputeImageV2Args, opts?: CustomResourceOptions);
    @overload
    def ComputeImageV2(resource_name: str,
                       args: ComputeImageV2Args,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ComputeImageV2(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       container_format: Optional[str] = None,
                       disk_format: Optional[str] = None,
                       region: Optional[str] = None,
                       project_id: Optional[str] = None,
                       min_ram_mb: Optional[float] = None,
                       min_disk_gb: Optional[float] = None,
                       local_file_path: Optional[str] = None,
                       name: Optional[str] = None,
                       image_source_url: Optional[str] = None,
                       properties: Optional[Mapping[str, str]] = None,
                       protected: Optional[bool] = None,
                       hidden: Optional[bool] = None,
                       tags: Optional[Sequence[str]] = None,
                       timeouts: Optional[ComputeImageV2TimeoutsArgs] = None,
                       visibility: Optional[str] = None)
    func NewComputeImageV2(ctx *Context, name string, args ComputeImageV2Args, opts ...ResourceOption) (*ComputeImageV2, error)
    public ComputeImageV2(string name, ComputeImageV2Args args, CustomResourceOptions? opts = null)
    public ComputeImageV2(String name, ComputeImageV2Args args)
    public ComputeImageV2(String name, ComputeImageV2Args args, CustomResourceOptions options)
    
    type: selectel:ComputeImageV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "selectel_compute_image_v2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ComputeImageV2Args
    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 ComputeImageV2Args
    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 ComputeImageV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ComputeImageV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ComputeImageV2Args
    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 computeImageV2Resource = new Selectel.ComputeImageV2("computeImageV2Resource", new()
    {
        ContainerFormat = "string",
        DiskFormat = "string",
        Region = "string",
        ProjectId = "string",
        MinRamMb = 0.0,
        MinDiskGb = 0.0,
        LocalFilePath = "string",
        Name = "string",
        ImageSourceUrl = "string",
        Properties = 
        {
            { "string", "string" },
        },
        Protected = false,
        Hidden = false,
        Tags = new[]
        {
            "string",
        },
        Timeouts = new Selectel.Inputs.ComputeImageV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        Visibility = "string",
    });
    
    example, err := selectel.NewComputeImageV2(ctx, "computeImageV2Resource", &selectel.ComputeImageV2Args{
    	ContainerFormat: pulumi.String("string"),
    	DiskFormat:      pulumi.String("string"),
    	Region:          pulumi.String("string"),
    	ProjectId:       pulumi.String("string"),
    	MinRamMb:        pulumi.Float64(0),
    	MinDiskGb:       pulumi.Float64(0),
    	LocalFilePath:   pulumi.String("string"),
    	Name:            pulumi.String("string"),
    	ImageSourceUrl:  pulumi.String("string"),
    	Properties: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Protected: pulumi.Bool(false),
    	Hidden:    pulumi.Bool(false),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &selectel.ComputeImageV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	Visibility: pulumi.String("string"),
    })
    
    resource "selectel_compute_image_v2" "computeImageV2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      container_format = "string"
      disk_format      = "string"
      region           = "string"
      project_id       = "string"
      min_ram_mb       = 0
      min_disk_gb      = 0
      local_file_path  = "string"
      name             = "string"
      image_source_url = "string"
      properties = {
        "string" = "string"
      }
      protected = false
      hidden    = false
      tags      = ["string"]
      timeouts = {
        create = "string"
        delete = "string"
      }
      visibility = "string"
    }
    
    var computeImageV2Resource = new ComputeImageV2("computeImageV2Resource", ComputeImageV2Args.builder()
        .containerFormat("string")
        .diskFormat("string")
        .region("string")
        .projectId("string")
        .minRamMb(0.0)
        .minDiskGb(0.0)
        .localFilePath("string")
        .name("string")
        .imageSourceUrl("string")
        .properties(Map.of("string", "string"))
        .protected_(false)
        .hidden(false)
        .tags("string")
        .timeouts(ComputeImageV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .visibility("string")
        .build());
    
    compute_image_v2_resource = selectel.ComputeImageV2("computeImageV2Resource",
        container_format="string",
        disk_format="string",
        region="string",
        project_id="string",
        min_ram_mb=float(0),
        min_disk_gb=float(0),
        local_file_path="string",
        name="string",
        image_source_url="string",
        properties={
            "string": "string",
        },
        protected=False,
        hidden=False,
        tags=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
        },
        visibility="string")
    
    const computeImageV2Resource = new selectel.ComputeImageV2("computeImageV2Resource", {
        containerFormat: "string",
        diskFormat: "string",
        region: "string",
        projectId: "string",
        minRamMb: 0,
        minDiskGb: 0,
        localFilePath: "string",
        name: "string",
        imageSourceUrl: "string",
        properties: {
            string: "string",
        },
        "protected": false,
        hidden: false,
        tags: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
        },
        visibility: "string",
    });
    
    type: selectel:ComputeImageV2
    properties:
        containerFormat: string
        diskFormat: string
        hidden: false
        imageSourceUrl: string
        localFilePath: string
        minDiskGb: 0
        minRamMb: 0
        name: string
        projectId: string
        properties:
            string: string
        protected: false
        region: string
        tags:
            - string
        timeouts:
            create: string
            delete: string
        visibility: string
    

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

    ContainerFormat string
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    DiskFormat string
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    Region string
    Pool where the image 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 image.
    Hidden bool
    Specifies if the image is hidden from the default image list. The default value is false.
    ImageSourceUrl string
    LocalFilePath string
    MinDiskGb double
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    MinRamMb double
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    Name string
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    Properties Dictionary<string, string>
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    Protected bool
    Tags List<string>
    Timeouts ComputeImageV2Timeouts
    Timeouts for image operations.
    Visibility string
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    ContainerFormat string
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    DiskFormat string
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    Region string
    Pool where the image 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 image.
    Hidden bool
    Specifies if the image is hidden from the default image list. The default value is false.
    ImageSourceUrl string
    LocalFilePath string
    MinDiskGb float64
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    MinRamMb float64
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    Name string
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    Properties map[string]string
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    Protected bool
    Tags []string
    Timeouts ComputeImageV2TimeoutsArgs
    Timeouts for image operations.
    Visibility string
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    container_format string
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    disk_format string
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    project_id string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    region string
    Pool where the image 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 image.
    hidden bool
    Specifies if the image is hidden from the default image list. The default value is false.
    image_source_url string
    local_file_path string
    min_disk_gb number
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    min_ram_mb number
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    name string
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    properties map(string)
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    protected bool
    tags list(string)
    timeouts object
    Timeouts for image operations.
    visibility string
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    containerFormat String
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    diskFormat String
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    region String
    Pool where the image 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 image.
    hidden Boolean
    Specifies if the image is hidden from the default image list. The default value is false.
    imageSourceUrl String
    localFilePath String
    minDiskGb Double
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    minRamMb Double
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    name String
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    properties Map<String,String>
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    protected_ Boolean
    tags List<String>
    timeouts ComputeImageV2Timeouts
    Timeouts for image operations.
    visibility String
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    containerFormat string
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    diskFormat string
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    projectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    region string
    Pool where the image 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 image.
    hidden boolean
    Specifies if the image is hidden from the default image list. The default value is false.
    imageSourceUrl string
    localFilePath string
    minDiskGb number
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    minRamMb number
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    name string
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    properties {[key: string]: string}
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    protected boolean
    tags string[]
    timeouts ComputeImageV2Timeouts
    Timeouts for image operations.
    visibility string
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    container_format str
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    disk_format str
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    project_id str
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    region str
    Pool where the image 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 image.
    hidden bool
    Specifies if the image is hidden from the default image list. The default value is false.
    image_source_url str
    local_file_path str
    min_disk_gb float
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    min_ram_mb float
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    name str
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    properties Mapping[str, str]
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    protected bool
    tags Sequence[str]
    timeouts ComputeImageV2TimeoutsArgs
    Timeouts for image operations.
    visibility str
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    containerFormat String
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    diskFormat String
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    region String
    Pool where the image 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 image.
    hidden Boolean
    Specifies if the image is hidden from the default image list. The default value is false.
    imageSourceUrl String
    localFilePath String
    minDiskGb Number
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    minRamMb Number
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    name String
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    properties Map<String>
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    protected Boolean
    tags List<String>
    timeouts Property Map
    Timeouts for image operations.
    visibility String
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.

    Outputs

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

    Checksum string
    MD5 checksum of the image data.
    CreatedAt string
    Time when the image was created in the RFC 3339 format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    Unique identifier of the project that owns the image.
    ServiceProperties Dictionary<string, string>
    All image properties returned by the API, including those that are not set in properties.
    SizeBytes double
    Size of the image data in bytes.
    Status string
    Status of the image.
    UpdatedAt string
    Time when the image was last updated in the RFC 3339 format.
    Checksum string
    MD5 checksum of the image data.
    CreatedAt string
    Time when the image was created in the RFC 3339 format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    Unique identifier of the project that owns the image.
    ServiceProperties map[string]string
    All image properties returned by the API, including those that are not set in properties.
    SizeBytes float64
    Size of the image data in bytes.
    Status string
    Status of the image.
    UpdatedAt string
    Time when the image was last updated in the RFC 3339 format.
    checksum string
    MD5 checksum of the image data.
    created_at string
    Time when the image was created in the RFC 3339 format.
    id string
    The provider-assigned unique ID for this managed resource.
    owner string
    Unique identifier of the project that owns the image.
    service_properties map(string)
    All image properties returned by the API, including those that are not set in properties.
    size_bytes number
    Size of the image data in bytes.
    status string
    Status of the image.
    updated_at string
    Time when the image was last updated in the RFC 3339 format.
    checksum String
    MD5 checksum of the image data.
    createdAt String
    Time when the image was created in the RFC 3339 format.
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    Unique identifier of the project that owns the image.
    serviceProperties Map<String,String>
    All image properties returned by the API, including those that are not set in properties.
    sizeBytes Double
    Size of the image data in bytes.
    status String
    Status of the image.
    updatedAt String
    Time when the image was last updated in the RFC 3339 format.
    checksum string
    MD5 checksum of the image data.
    createdAt string
    Time when the image was created in the RFC 3339 format.
    id string
    The provider-assigned unique ID for this managed resource.
    owner string
    Unique identifier of the project that owns the image.
    serviceProperties {[key: string]: string}
    All image properties returned by the API, including those that are not set in properties.
    sizeBytes number
    Size of the image data in bytes.
    status string
    Status of the image.
    updatedAt string
    Time when the image was last updated in the RFC 3339 format.
    checksum str
    MD5 checksum of the image data.
    created_at str
    Time when the image was created in the RFC 3339 format.
    id str
    The provider-assigned unique ID for this managed resource.
    owner str
    Unique identifier of the project that owns the image.
    service_properties Mapping[str, str]
    All image properties returned by the API, including those that are not set in properties.
    size_bytes float
    Size of the image data in bytes.
    status str
    Status of the image.
    updated_at str
    Time when the image was last updated in the RFC 3339 format.
    checksum String
    MD5 checksum of the image data.
    createdAt String
    Time when the image was created in the RFC 3339 format.
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    Unique identifier of the project that owns the image.
    serviceProperties Map<String>
    All image properties returned by the API, including those that are not set in properties.
    sizeBytes Number
    Size of the image data in bytes.
    status String
    Status of the image.
    updatedAt String
    Time when the image was last updated in the RFC 3339 format.

    Look up Existing ComputeImageV2 Resource

    Get an existing ComputeImageV2 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?: ComputeImageV2State, opts?: CustomResourceOptions): ComputeImageV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            checksum: Optional[str] = None,
            container_format: Optional[str] = None,
            created_at: Optional[str] = None,
            disk_format: Optional[str] = None,
            hidden: Optional[bool] = None,
            image_source_url: Optional[str] = None,
            local_file_path: Optional[str] = None,
            min_disk_gb: Optional[float] = None,
            min_ram_mb: Optional[float] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            project_id: Optional[str] = None,
            properties: Optional[Mapping[str, str]] = None,
            protected: Optional[bool] = None,
            region: Optional[str] = None,
            service_properties: Optional[Mapping[str, str]] = None,
            size_bytes: Optional[float] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            timeouts: Optional[ComputeImageV2TimeoutsArgs] = None,
            updated_at: Optional[str] = None,
            visibility: Optional[str] = None) -> ComputeImageV2
    func GetComputeImageV2(ctx *Context, name string, id IDInput, state *ComputeImageV2State, opts ...ResourceOption) (*ComputeImageV2, error)
    public static ComputeImageV2 Get(string name, Input<string> id, ComputeImageV2State? state, CustomResourceOptions? opts = null)
    public static ComputeImageV2 get(String name, Output<String> id, ComputeImageV2State state, CustomResourceOptions options)
    resources:  _:    type: selectel:ComputeImageV2    get:      id: ${id}
    import {
      to = selectel_compute_image_v2.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:
    Checksum string
    MD5 checksum of the image data.
    ContainerFormat string
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    CreatedAt string
    Time when the image was created in the RFC 3339 format.
    DiskFormat string
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    Hidden bool
    Specifies if the image is hidden from the default image list. The default value is false.
    ImageSourceUrl string
    LocalFilePath string
    MinDiskGb double
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    MinRamMb double
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    Name string
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    Owner string
    Unique identifier of the project that owns the image.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    Properties Dictionary<string, string>
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    Protected bool
    Region string
    Pool where the image 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 image.
    ServiceProperties Dictionary<string, string>
    All image properties returned by the API, including those that are not set in properties.
    SizeBytes double
    Size of the image data in bytes.
    Status string
    Status of the image.
    Tags List<string>
    Timeouts ComputeImageV2Timeouts
    Timeouts for image operations.
    UpdatedAt string
    Time when the image was last updated in the RFC 3339 format.
    Visibility string
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    Checksum string
    MD5 checksum of the image data.
    ContainerFormat string
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    CreatedAt string
    Time when the image was created in the RFC 3339 format.
    DiskFormat string
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    Hidden bool
    Specifies if the image is hidden from the default image list. The default value is false.
    ImageSourceUrl string
    LocalFilePath string
    MinDiskGb float64
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    MinRamMb float64
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    Name string
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    Owner string
    Unique identifier of the project that owns the image.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    Properties map[string]string
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    Protected bool
    Region string
    Pool where the image 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 image.
    ServiceProperties map[string]string
    All image properties returned by the API, including those that are not set in properties.
    SizeBytes float64
    Size of the image data in bytes.
    Status string
    Status of the image.
    Tags []string
    Timeouts ComputeImageV2TimeoutsArgs
    Timeouts for image operations.
    UpdatedAt string
    Time when the image was last updated in the RFC 3339 format.
    Visibility string
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    checksum string
    MD5 checksum of the image data.
    container_format string
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    created_at string
    Time when the image was created in the RFC 3339 format.
    disk_format string
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    hidden bool
    Specifies if the image is hidden from the default image list. The default value is false.
    image_source_url string
    local_file_path string
    min_disk_gb number
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    min_ram_mb number
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    name string
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    owner string
    Unique identifier of the project that owns the image.
    project_id string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    properties map(string)
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    protected bool
    region string
    Pool where the image 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 image.
    service_properties map(string)
    All image properties returned by the API, including those that are not set in properties.
    size_bytes number
    Size of the image data in bytes.
    status string
    Status of the image.
    tags list(string)
    timeouts object
    Timeouts for image operations.
    updated_at string
    Time when the image was last updated in the RFC 3339 format.
    visibility string
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    checksum String
    MD5 checksum of the image data.
    containerFormat String
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    createdAt String
    Time when the image was created in the RFC 3339 format.
    diskFormat String
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    hidden Boolean
    Specifies if the image is hidden from the default image list. The default value is false.
    imageSourceUrl String
    localFilePath String
    minDiskGb Double
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    minRamMb Double
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    name String
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    owner String
    Unique identifier of the project that owns the image.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    properties Map<String,String>
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    protected_ Boolean
    region String
    Pool where the image 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 image.
    serviceProperties Map<String,String>
    All image properties returned by the API, including those that are not set in properties.
    sizeBytes Double
    Size of the image data in bytes.
    status String
    Status of the image.
    tags List<String>
    timeouts ComputeImageV2Timeouts
    Timeouts for image operations.
    updatedAt String
    Time when the image was last updated in the RFC 3339 format.
    visibility String
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    checksum string
    MD5 checksum of the image data.
    containerFormat string
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    createdAt string
    Time when the image was created in the RFC 3339 format.
    diskFormat string
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    hidden boolean
    Specifies if the image is hidden from the default image list. The default value is false.
    imageSourceUrl string
    localFilePath string
    minDiskGb number
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    minRamMb number
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    name string
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    owner string
    Unique identifier of the project that owns the image.
    projectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    properties {[key: string]: string}
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    protected boolean
    region string
    Pool where the image 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 image.
    serviceProperties {[key: string]: string}
    All image properties returned by the API, including those that are not set in properties.
    sizeBytes number
    Size of the image data in bytes.
    status string
    Status of the image.
    tags string[]
    timeouts ComputeImageV2Timeouts
    Timeouts for image operations.
    updatedAt string
    Time when the image was last updated in the RFC 3339 format.
    visibility string
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    checksum str
    MD5 checksum of the image data.
    container_format str
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    created_at str
    Time when the image was created in the RFC 3339 format.
    disk_format str
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    hidden bool
    Specifies if the image is hidden from the default image list. The default value is false.
    image_source_url str
    local_file_path str
    min_disk_gb float
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    min_ram_mb float
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    name str
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    owner str
    Unique identifier of the project that owns the image.
    project_id str
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    properties Mapping[str, str]
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    protected bool
    region str
    Pool where the image 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 image.
    service_properties Mapping[str, str]
    All image properties returned by the API, including those that are not set in properties.
    size_bytes float
    Size of the image data in bytes.
    status str
    Status of the image.
    tags Sequence[str]
    timeouts ComputeImageV2TimeoutsArgs
    Timeouts for image operations.
    updated_at str
    Time when the image was last updated in the RFC 3339 format.
    visibility str
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.
    checksum String
    MD5 checksum of the image data.
    containerFormat String
    Container format of the image. Available values are bare, ovf, aki, ari, ami, ova, docker, and compressed. Learn more about supported formats. Changing this creates a new image.
    createdAt String
    Time when the image was created in the RFC 3339 format.
    diskFormat String
    Disk format of the image. Available values are raw, vhd, vhdx, vmdk, vdi, iso, ploop, qcow2, aki, ari, and ami. The API does not convert the image data, so the value must match the format of the file. Learn more about supported formats. Changing this creates a new image.
    hidden Boolean
    Specifies if the image is hidden from the default image list. The default value is false.
    imageSourceUrl String
    localFilePath String
    minDiskGb Number
    Minimum disk size in GB required to boot the image. The minimum value is 0. If omitted, the API derives the value from the image data.
    minRamMb Number
    Minimum RAM in MB required to boot the image. The minimum value is 0. The default value is 0.
    name String
    Name of the image. The minimum length is 1 character. The maximum length is 255 characters.
    owner String
    Unique identifier of the project that owns the image.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image.
    properties Map<String>
    Key-value pairs of custom image properties, for example, os_distro = "ubuntu". The maximum number of properties is 128, including the properties added by the API. Each key must contain from 1 to 255 characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such as name, min_disk, or os_hidden, are not accepted: set the matching argument instead. The os_glance prefix is reserved by the API. Properties added by the API are available in service_properties. Import does not restore this argument.
    protected Boolean
    region String
    Pool where the image 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 image.
    serviceProperties Map<String>
    All image properties returned by the API, including those that are not set in properties.
    sizeBytes Number
    Size of the image data in bytes.
    status String
    Status of the image.
    tags List<String>
    timeouts Property Map
    Timeouts for image operations.
    updatedAt String
    Time when the image was last updated in the RFC 3339 format.
    visibility String
    Visibility of the image. Available values are private, shared, and community. Use shared to grant access to other projects with the selectelcomputeimageaccessv2 resource. A community image is available to all projects in the pool. The default value is private. Learn more about image sharing.

    Supporting Types

    ComputeImageV2Timeouts, ComputeImageV2TimeoutsArgs

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

    Import

    All versions

    Use the pulumi import command:

    Import the existing image by its UUID.

    local_file_path, image_source_url, and properties are not restored.

    Setting local_file_path or image_source_url after import does not replace the image.

    Set the project and pool containing the image.

    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/computeImageV2:ComputeImageV2 image_1 <image_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