published on Friday, Oct 30, 2026 by selectel
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:
- Container
Format string - Container format of the image. Available values are
bare,ovf,aki,ari,ami,ova,docker, andcompressed. 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, andami. 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. - bool
- Specifies if the image is hidden from the default image list. The default value is
false. - Image
Source stringUrl - Local
File stringPath - Min
Disk doubleGb - 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 doubleMb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - Name string
- Name of the image. The minimum length is
1character. The maximum length is255characters. - Properties Dictionary<string, string>
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_properties. Import does not restore this argument. - Protected bool
- List<string>
- Timeouts
Compute
Image V2Timeouts - Timeouts for image operations.
- Visibility string
- Visibility of the image. Available values are
private,shared, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. Learn more about image sharing.
- Container
Format string - Container format of the image. Available values are
bare,ovf,aki,ari,ami,ova,docker, andcompressed. 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, andami. 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. - bool
- Specifies if the image is hidden from the default image list. The default value is
false. - Image
Source stringUrl - Local
File stringPath - Min
Disk float64Gb - 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 float64Mb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - Name string
- Name of the image. The minimum length is
1character. The maximum length is255characters. - Properties map[string]string
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_properties. Import does not restore this argument. - Protected bool
- []string
- Timeouts
Compute
Image V2Timeouts Args - Timeouts for image operations.
- Visibility string
- Visibility of the image. Available values are
private,shared, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. Learn more about image sharing.
- container_
format string - Container format of the image. Available values are
bare,ovf,aki,ari,ami,ova,docker, andcompressed. 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, andami. 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. - bool
- Specifies if the image is hidden from the default image list. The default value is
false. - image_
source_ stringurl - local_
file_ stringpath - min_
disk_ numbergb - 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_ numbermb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - name string
- Name of the image. The minimum length is
1character. The maximum length is255characters. - properties map(string)
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_properties. Import does not restore this argument. - protected bool
- list(string)
- timeouts object
- Timeouts for image operations.
- visibility string
- Visibility of the image. Available values are
private,shared, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. Learn more about image sharing.
- container
Format String - Container format of the image. Available values are
bare,ovf,aki,ari,ami,ova,docker, andcompressed. 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, andami. 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. - Boolean
- Specifies if the image is hidden from the default image list. The default value is
false. - image
Source StringUrl - local
File StringPath - min
Disk DoubleGb - 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 DoubleMb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - name String
- Name of the image. The minimum length is
1character. The maximum length is255characters. - properties Map<String,String>
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_properties. Import does not restore this argument. - protected_ Boolean
- List<String>
- timeouts
Compute
Image V2Timeouts - Timeouts for image operations.
- visibility String
- Visibility of the image. Available values are
private,shared, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. Learn more about image sharing.
- container
Format string - Container format of the image. Available values are
bare,ovf,aki,ari,ami,ova,docker, andcompressed. 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, andami. 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. - boolean
- Specifies if the image is hidden from the default image list. The default value is
false. - image
Source stringUrl - local
File stringPath - min
Disk numberGb - 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 numberMb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - name string
- Name of the image. The minimum length is
1character. The maximum length is255characters. - properties {[key: string]: string}
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_properties. Import does not restore this argument. - protected boolean
- string[]
- timeouts
Compute
Image V2Timeouts - Timeouts for image operations.
- visibility string
- Visibility of the image. Available values are
private,shared, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. Learn more about image sharing.
- container_
format str - Container format of the image. Available values are
bare,ovf,aki,ari,ami,ova,docker, andcompressed. 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, andami. 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. - bool
- Specifies if the image is hidden from the default image list. The default value is
false. - image_
source_ strurl - local_
file_ strpath - min_
disk_ floatgb - 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_ floatmb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - name str
- Name of the image. The minimum length is
1character. The maximum length is255characters. - properties Mapping[str, str]
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_properties. Import does not restore this argument. - protected bool
- Sequence[str]
- timeouts
Compute
Image V2Timeouts Args - Timeouts for image operations.
- visibility str
- Visibility of the image. Available values are
private,shared, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. Learn more about image sharing.
- container
Format String - Container format of the image. Available values are
bare,ovf,aki,ari,ami,ova,docker, andcompressed. 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, andami. 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. - Boolean
- Specifies if the image is hidden from the default image list. The default value is
false. - image
Source StringUrl - local
File StringPath - min
Disk NumberGb - 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 NumberMb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - name String
- Name of the image. The minimum length is
1character. The maximum length is255characters. - properties Map<String>
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_properties. Import does not restore this argument. - protected Boolean
- List<String>
- timeouts Property Map
- Timeouts for image operations.
- visibility String
- Visibility of the image. Available values are
private,shared, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. 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.
- 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 Dictionary<string, string> - All image properties returned by the API, including those that are not set in
properties. - Size
Bytes double - 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.
- 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]string - All image properties returned by the API, including those that are not set in
properties. - Size
Bytes float64 - 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.
- 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.
- 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,String> - All image properties returned by the API, including those that are not set in
properties. - size
Bytes Double - 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.
- 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 {[key: string]: 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 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.
- 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.
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) -> ComputeImageV2func 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.
- 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, andcompressed. 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, andami. 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. - bool
- Specifies if the image is hidden from the default image list. The default value is
false. - Image
Source stringUrl - Local
File stringPath - Min
Disk doubleGb - 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 doubleMb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - Name string
- Name of the image. The minimum length is
1character. The maximum length is255characters. - 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 Dictionary<string, string>
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_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 Dictionary<string, string> - All image properties returned by the API, including those that are not set in
properties. - Size
Bytes double - Size of the image data in bytes.
- Status string
- Status of the image.
- List<string>
- Timeouts
Compute
Image V2Timeouts - 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, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. 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, andcompressed. 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, andami. 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. - bool
- Specifies if the image is hidden from the default image list. The default value is
false. - Image
Source stringUrl - Local
File stringPath - Min
Disk float64Gb - 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 float64Mb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - Name string
- Name of the image. The minimum length is
1character. The maximum length is255characters. - 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]string
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_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]string - All image properties returned by the API, including those that are not set in
properties. - Size
Bytes float64 - Size of the image data in bytes.
- Status string
- Status of the image.
- []string
- Timeouts
Compute
Image V2Timeouts Args - 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, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. 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, andcompressed. 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, andami. 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. - bool
- Specifies if the image is hidden from the default image list. The default value is
false. - image_
source_ stringurl - local_
file_ stringpath - min_
disk_ numbergb - 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_ numbermb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - name string
- Name of the image. The minimum length is
1character. The maximum length is255characters. - 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 is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_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.
- 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, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. 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, andcompressed. 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, andami. 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. - Boolean
- Specifies if the image is hidden from the default image list. The default value is
false. - image
Source StringUrl - local
File StringPath - min
Disk DoubleGb - 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 DoubleMb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - name String
- Name of the image. The minimum length is
1character. The maximum length is255characters. - 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,String>
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_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. - service
Properties Map<String,String> - All image properties returned by the API, including those that are not set in
properties. - size
Bytes Double - Size of the image data in bytes.
- status String
- Status of the image.
- List<String>
- timeouts
Compute
Image V2Timeouts - 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, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. 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, andcompressed. 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, andami. 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. - boolean
- Specifies if the image is hidden from the default image list. The default value is
false. - image
Source stringUrl - local
File stringPath - min
Disk numberGb - 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 numberMb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - name string
- Name of the image. The minimum length is
1character. The maximum length is255characters. - 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 {[key: string]: string}
- Key-value pairs of custom image properties, for example,
os_distro = "ubuntu". The maximum number of properties is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_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. - service
Properties {[key: string]: 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.
- string[]
- timeouts
Compute
Image V2Timeouts - 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, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. 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, andcompressed. 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, andami. 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. - bool
- Specifies if the image is hidden from the default image list. The default value is
false. - image_
source_ strurl - local_
file_ strpath - min_
disk_ floatgb - 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_ floatmb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - name str
- Name of the image. The minimum length is
1character. The maximum length is255characters. - 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 is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_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.
- Sequence[str]
- timeouts
Compute
Image V2Timeouts Args - 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, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. 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, andcompressed. 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, andami. 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. - Boolean
- Specifies if the image is hidden from the default image list. The default value is
false. - image
Source StringUrl - local
File StringPath - min
Disk NumberGb - 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 NumberMb - Minimum RAM in MB required to boot the image. The minimum value is
0. The default value is0. - name String
- Name of the image. The minimum length is
1character. The maximum length is255characters. - 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 is128, including the properties added by the API. Each key must contain from1to255characters and cannot start or end with whitespace. Keys that differ only in letter case are not allowed. Keys of image fields, such asname,min_disk, oros_hidden, are not accepted: set the matching argument instead. Theos_glanceprefix is reserved by the API. Properties added by the API are available inservice_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. - 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.
- List<String>
- timeouts Property Map
- 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, andcommunity. Usesharedto grant access to other projects with the selectelcomputeimageaccessv2 resource. Acommunityimage is available to all projects in the pool. The default value isprivate. Learn more about image sharing.
Supporting Types
ComputeImageV2Timeouts, ComputeImageV2TimeoutsArgs
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
selectelTerraform Provider.
published on Friday, Oct 30, 2026 by selectel