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

flexibleengine.ImagesImageV2

Explore with Pulumi AI

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

    Manages a V2 Image resource within FlexibleEngine Glance.

    !> WARNING: It has been deprecated, please use flexibleengine.ImagesImage instead.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const rancheros = new flexibleengine.ImagesImageV2("rancheros", {
        containerFormat: "bare",
        diskFormat: "qcow2",
        imageSourceUrl: "https://releases.rancher.com/os/latest/rancheros-openstack.img",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    rancheros = flexibleengine.ImagesImageV2("rancheros",
        container_format="bare",
        disk_format="qcow2",
        image_source_url="https://releases.rancher.com/os/latest/rancheros-openstack.img")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewImagesImageV2(ctx, "rancheros", &flexibleengine.ImagesImageV2Args{
    			ContainerFormat: pulumi.String("bare"),
    			DiskFormat:      pulumi.String("qcow2"),
    			ImageSourceUrl:  pulumi.String("https://releases.rancher.com/os/latest/rancheros-openstack.img"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var rancheros = new Flexibleengine.ImagesImageV2("rancheros", new()
        {
            ContainerFormat = "bare",
            DiskFormat = "qcow2",
            ImageSourceUrl = "https://releases.rancher.com/os/latest/rancheros-openstack.img",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.ImagesImageV2;
    import com.pulumi.flexibleengine.ImagesImageV2Args;
    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 rancheros = new ImagesImageV2("rancheros", ImagesImageV2Args.builder()
                .containerFormat("bare")
                .diskFormat("qcow2")
                .imageSourceUrl("https://releases.rancher.com/os/latest/rancheros-openstack.img")
                .build());
    
        }
    }
    
    resources:
      rancheros:
        type: flexibleengine:ImagesImageV2
        properties:
          containerFormat: bare
          diskFormat: qcow2
          imageSourceUrl: https://releases.rancher.com/os/latest/rancheros-openstack.img
    

    Create ImagesImageV2 Resource

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

    Constructor syntax

    new ImagesImageV2(name: string, args: ImagesImageV2Args, opts?: CustomResourceOptions);
    @overload
    def ImagesImageV2(resource_name: str,
                      args: ImagesImageV2Args,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ImagesImageV2(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      container_format: Optional[str] = None,
                      disk_format: Optional[str] = None,
                      image_cache_path: Optional[str] = None,
                      image_source_url: Optional[str] = None,
                      images_image_v2_id: 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,
                      protected: Optional[bool] = None,
                      region: Optional[str] = None,
                      tags: Optional[Sequence[str]] = None,
                      timeouts: Optional[ImagesImageV2TimeoutsArgs] = None,
                      visibility: Optional[str] = None)
    func NewImagesImageV2(ctx *Context, name string, args ImagesImageV2Args, opts ...ResourceOption) (*ImagesImageV2, error)
    public ImagesImageV2(string name, ImagesImageV2Args args, CustomResourceOptions? opts = null)
    public ImagesImageV2(String name, ImagesImageV2Args args)
    public ImagesImageV2(String name, ImagesImageV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:ImagesImageV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ImagesImageV2Args
    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 ImagesImageV2Args
    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 ImagesImageV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImagesImageV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImagesImageV2Args
    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 imagesImageV2Resource = new Flexibleengine.ImagesImageV2("imagesImageV2Resource", new()
    {
        ContainerFormat = "string",
        DiskFormat = "string",
        ImageCachePath = "string",
        ImageSourceUrl = "string",
        ImagesImageV2Id = "string",
        LocalFilePath = "string",
        MinDiskGb = 0,
        MinRamMb = 0,
        Name = "string",
        Protected = false,
        Region = "string",
        Tags = new[]
        {
            "string",
        },
        Timeouts = new Flexibleengine.Inputs.ImagesImageV2TimeoutsArgs
        {
            Create = "string",
        },
        Visibility = "string",
    });
    
    example, err := flexibleengine.NewImagesImageV2(ctx, "imagesImageV2Resource", &flexibleengine.ImagesImageV2Args{
    	ContainerFormat: pulumi.String("string"),
    	DiskFormat:      pulumi.String("string"),
    	ImageCachePath:  pulumi.String("string"),
    	ImageSourceUrl:  pulumi.String("string"),
    	ImagesImageV2Id: pulumi.String("string"),
    	LocalFilePath:   pulumi.String("string"),
    	MinDiskGb:       pulumi.Float64(0),
    	MinRamMb:        pulumi.Float64(0),
    	Name:            pulumi.String("string"),
    	Protected:       pulumi.Bool(false),
    	Region:          pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &flexibleengine.ImagesImageV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    	},
    	Visibility: pulumi.String("string"),
    })
    
    var imagesImageV2Resource = new ImagesImageV2("imagesImageV2Resource", ImagesImageV2Args.builder()
        .containerFormat("string")
        .diskFormat("string")
        .imageCachePath("string")
        .imageSourceUrl("string")
        .imagesImageV2Id("string")
        .localFilePath("string")
        .minDiskGb(0)
        .minRamMb(0)
        .name("string")
        .protected_(false)
        .region("string")
        .tags("string")
        .timeouts(ImagesImageV2TimeoutsArgs.builder()
            .create("string")
            .build())
        .visibility("string")
        .build());
    
    images_image_v2_resource = flexibleengine.ImagesImageV2("imagesImageV2Resource",
        container_format="string",
        disk_format="string",
        image_cache_path="string",
        image_source_url="string",
        images_image_v2_id="string",
        local_file_path="string",
        min_disk_gb=0,
        min_ram_mb=0,
        name="string",
        protected=False,
        region="string",
        tags=["string"],
        timeouts={
            "create": "string",
        },
        visibility="string")
    
    const imagesImageV2Resource = new flexibleengine.ImagesImageV2("imagesImageV2Resource", {
        containerFormat: "string",
        diskFormat: "string",
        imageCachePath: "string",
        imageSourceUrl: "string",
        imagesImageV2Id: "string",
        localFilePath: "string",
        minDiskGb: 0,
        minRamMb: 0,
        name: "string",
        "protected": false,
        region: "string",
        tags: ["string"],
        timeouts: {
            create: "string",
        },
        visibility: "string",
    });
    
    type: flexibleengine:ImagesImageV2
    properties:
        containerFormat: string
        diskFormat: string
        imageCachePath: string
        imageSourceUrl: string
        imagesImageV2Id: string
        localFilePath: string
        minDiskGb: 0
        minRamMb: 0
        name: string
        protected: false
        region: string
        tags:
            - string
        timeouts:
            create: string
        visibility: string
    

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

    ContainerFormat string
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    DiskFormat string
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    ImageCachePath string
    ImageSourceUrl string
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    ImagesImageV2Id string
    A unique ID assigned by Glance.
    LocalFilePath string
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    MinDiskGb double
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    MinRamMb double
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    Name string
    The name of the image.
    Protected bool
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    Tags List<string>
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    Timeouts ImagesImageV2Timeouts
    Visibility string

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    ContainerFormat string
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    DiskFormat string
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    ImageCachePath string
    ImageSourceUrl string
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    ImagesImageV2Id string
    A unique ID assigned by Glance.
    LocalFilePath string
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    MinDiskGb float64
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    MinRamMb float64
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    Name string
    The name of the image.
    Protected bool
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    Tags []string
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    Timeouts ImagesImageV2TimeoutsArgs
    Visibility string

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    containerFormat String
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    diskFormat String
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    imageCachePath String
    imageSourceUrl String
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    imagesImageV2Id String
    A unique ID assigned by Glance.
    localFilePath String
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    minDiskGb Double
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    minRamMb Double
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    name String
    The name of the image.
    protected_ Boolean
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    tags List<String>
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    timeouts ImagesImageV2Timeouts
    visibility String

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    containerFormat string
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    diskFormat string
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    imageCachePath string
    imageSourceUrl string
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    imagesImageV2Id string
    A unique ID assigned by Glance.
    localFilePath string
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    minDiskGb number
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    minRamMb number
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    name string
    The name of the image.
    protected boolean
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    tags string[]
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    timeouts ImagesImageV2Timeouts
    visibility string

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    container_format str
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    disk_format str
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    image_cache_path str
    image_source_url str
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    images_image_v2_id str
    A unique ID assigned by Glance.
    local_file_path str
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    min_disk_gb float
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    min_ram_mb float
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    name str
    The name of the image.
    protected bool
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    region str
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    tags Sequence[str]
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    timeouts ImagesImageV2TimeoutsArgs
    visibility str

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    containerFormat String
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    diskFormat String
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    imageCachePath String
    imageSourceUrl String
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    imagesImageV2Id String
    A unique ID assigned by Glance.
    localFilePath String
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    minDiskGb Number
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    minRamMb Number
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    name String
    The name of the image.
    protected Boolean
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    tags List<String>
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    timeouts Property Map
    visibility String

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    Outputs

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

    Checksum string
    The checksum of the data associated with the image.
    CreatedAt string
    The date the image was created.
    File string
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata Dictionary<string, string>
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    Owner string
    The id of the flexibleengine user who owns the image.
    Schema string
    The path to the JSON-schema that represent the image or image
    SizeBytes double
    The size in bytes of the data associated with the image.
    Status string
    The status of the image. It can be "queued", "active" or "saving".
    UpdatedAt string
    The date the image was last updated.
    Checksum string
    The checksum of the data associated with the image.
    CreatedAt string
    The date the image was created.
    File string
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata map[string]string
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    Owner string
    The id of the flexibleengine user who owns the image.
    Schema string
    The path to the JSON-schema that represent the image or image
    SizeBytes float64
    The size in bytes of the data associated with the image.
    Status string
    The status of the image. It can be "queued", "active" or "saving".
    UpdatedAt string
    The date the image was last updated.
    checksum String
    The checksum of the data associated with the image.
    createdAt String
    The date the image was created.
    file String
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String,String>
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    owner String
    The id of the flexibleengine user who owns the image.
    schema String
    The path to the JSON-schema that represent the image or image
    sizeBytes Double
    The size in bytes of the data associated with the image.
    status String
    The status of the image. It can be "queued", "active" or "saving".
    updatedAt String
    The date the image was last updated.
    checksum string
    The checksum of the data associated with the image.
    createdAt string
    The date the image was created.
    file string
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    id string
    The provider-assigned unique ID for this managed resource.
    metadata {[key: string]: string}
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    owner string
    The id of the flexibleengine user who owns the image.
    schema string
    The path to the JSON-schema that represent the image or image
    sizeBytes number
    The size in bytes of the data associated with the image.
    status string
    The status of the image. It can be "queued", "active" or "saving".
    updatedAt string
    The date the image was last updated.
    checksum str
    The checksum of the data associated with the image.
    created_at str
    The date the image was created.
    file str
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    id str
    The provider-assigned unique ID for this managed resource.
    metadata Mapping[str, str]
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    owner str
    The id of the flexibleengine user who owns the image.
    schema str
    The path to the JSON-schema that represent the image or image
    size_bytes float
    The size in bytes of the data associated with the image.
    status str
    The status of the image. It can be "queued", "active" or "saving".
    updated_at str
    The date the image was last updated.
    checksum String
    The checksum of the data associated with the image.
    createdAt String
    The date the image was created.
    file String
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String>
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    owner String
    The id of the flexibleengine user who owns the image.
    schema String
    The path to the JSON-schema that represent the image or image
    sizeBytes Number
    The size in bytes of the data associated with the image.
    status String
    The status of the image. It can be "queued", "active" or "saving".
    updatedAt String
    The date the image was last updated.

    Look up Existing ImagesImageV2 Resource

    Get an existing ImagesImageV2 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?: ImagesImageV2State, opts?: CustomResourceOptions): ImagesImageV2
    @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,
            file: Optional[str] = None,
            image_cache_path: Optional[str] = None,
            image_source_url: Optional[str] = None,
            images_image_v2_id: Optional[str] = None,
            local_file_path: Optional[str] = None,
            metadata: Optional[Mapping[str, str]] = None,
            min_disk_gb: Optional[float] = None,
            min_ram_mb: Optional[float] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            protected: Optional[bool] = None,
            region: Optional[str] = None,
            schema: Optional[str] = None,
            size_bytes: Optional[float] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            timeouts: Optional[ImagesImageV2TimeoutsArgs] = None,
            updated_at: Optional[str] = None,
            visibility: Optional[str] = None) -> ImagesImageV2
    func GetImagesImageV2(ctx *Context, name string, id IDInput, state *ImagesImageV2State, opts ...ResourceOption) (*ImagesImageV2, error)
    public static ImagesImageV2 Get(string name, Input<string> id, ImagesImageV2State? state, CustomResourceOptions? opts = null)
    public static ImagesImageV2 get(String name, Output<String> id, ImagesImageV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:ImagesImageV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Checksum string
    The checksum of the data associated with the image.
    ContainerFormat string
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    CreatedAt string
    The date the image was created.
    DiskFormat string
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    File string
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    ImageCachePath string
    ImageSourceUrl string
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    ImagesImageV2Id string
    A unique ID assigned by Glance.
    LocalFilePath string
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    Metadata Dictionary<string, string>
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    MinDiskGb double
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    MinRamMb double
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    Name string
    The name of the image.
    Owner string
    The id of the flexibleengine user who owns the image.
    Protected bool
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    Schema string
    The path to the JSON-schema that represent the image or image
    SizeBytes double
    The size in bytes of the data associated with the image.
    Status string
    The status of the image. It can be "queued", "active" or "saving".
    Tags List<string>
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    Timeouts ImagesImageV2Timeouts
    UpdatedAt string
    The date the image was last updated.
    Visibility string

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    Checksum string
    The checksum of the data associated with the image.
    ContainerFormat string
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    CreatedAt string
    The date the image was created.
    DiskFormat string
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    File string
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    ImageCachePath string
    ImageSourceUrl string
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    ImagesImageV2Id string
    A unique ID assigned by Glance.
    LocalFilePath string
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    Metadata map[string]string
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    MinDiskGb float64
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    MinRamMb float64
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    Name string
    The name of the image.
    Owner string
    The id of the flexibleengine user who owns the image.
    Protected bool
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    Schema string
    The path to the JSON-schema that represent the image or image
    SizeBytes float64
    The size in bytes of the data associated with the image.
    Status string
    The status of the image. It can be "queued", "active" or "saving".
    Tags []string
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    Timeouts ImagesImageV2TimeoutsArgs
    UpdatedAt string
    The date the image was last updated.
    Visibility string

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    checksum String
    The checksum of the data associated with the image.
    containerFormat String
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    createdAt String
    The date the image was created.
    diskFormat String
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    file String
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    imageCachePath String
    imageSourceUrl String
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    imagesImageV2Id String
    A unique ID assigned by Glance.
    localFilePath String
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    metadata Map<String,String>
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    minDiskGb Double
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    minRamMb Double
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    name String
    The name of the image.
    owner String
    The id of the flexibleengine user who owns the image.
    protected_ Boolean
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    schema String
    The path to the JSON-schema that represent the image or image
    sizeBytes Double
    The size in bytes of the data associated with the image.
    status String
    The status of the image. It can be "queued", "active" or "saving".
    tags List<String>
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    timeouts ImagesImageV2Timeouts
    updatedAt String
    The date the image was last updated.
    visibility String

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    checksum string
    The checksum of the data associated with the image.
    containerFormat string
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    createdAt string
    The date the image was created.
    diskFormat string
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    file string
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    imageCachePath string
    imageSourceUrl string
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    imagesImageV2Id string
    A unique ID assigned by Glance.
    localFilePath string
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    metadata {[key: string]: string}
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    minDiskGb number
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    minRamMb number
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    name string
    The name of the image.
    owner string
    The id of the flexibleengine user who owns the image.
    protected boolean
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    schema string
    The path to the JSON-schema that represent the image or image
    sizeBytes number
    The size in bytes of the data associated with the image.
    status string
    The status of the image. It can be "queued", "active" or "saving".
    tags string[]
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    timeouts ImagesImageV2Timeouts
    updatedAt string
    The date the image was last updated.
    visibility string

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    checksum str
    The checksum of the data associated with the image.
    container_format str
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    created_at str
    The date the image was created.
    disk_format str
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    file str
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    image_cache_path str
    image_source_url str
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    images_image_v2_id str
    A unique ID assigned by Glance.
    local_file_path str
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    metadata Mapping[str, str]
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    min_disk_gb float
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    min_ram_mb float
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    name str
    The name of the image.
    owner str
    The id of the flexibleengine user who owns the image.
    protected bool
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    region str
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    schema str
    The path to the JSON-schema that represent the image or image
    size_bytes float
    The size in bytes of the data associated with the image.
    status str
    The status of the image. It can be "queued", "active" or "saving".
    tags Sequence[str]
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    timeouts ImagesImageV2TimeoutsArgs
    updated_at str
    The date the image was last updated.
    visibility str

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    checksum String
    The checksum of the data associated with the image.
    containerFormat String
    The container format. Must be one of "ami", "ari", "aki", "bare", "ovf". Changing this creates a new Image.
    createdAt String
    The date the image was created.
    diskFormat String
    The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso". Changing this creates a new Image.
    file String
    the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
    imageCachePath String
    imageSourceUrl String
    This is the url of the raw image that will be downloaded in the image_cache_path before being uploaded to Glance. Glance is able to download image from internet but the gophercloud library does not yet provide a way to do so. Conflicts with local_file_path. Changing this creates a new Image.
    imagesImageV2Id String
    A unique ID assigned by Glance.
    localFilePath String
    This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with image_source_url. Changing this creates a new Image.
    metadata Map<String>
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    minDiskGb Number
    Amount of disk space (in GB) required to boot image. Defaults to 0. Changing this creates a new Image.
    minRamMb Number
    Amount of ram (in MB) required to boot image. Defauts to 0. Changing this creates a new Image.
    name String
    The name of the image.
    owner String
    The id of the flexibleengine user who owns the image.
    protected Boolean
    If true, image will not be deletable. Defaults to false. Changing this creates a new Image.
    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    schema String
    The path to the JSON-schema that represent the image or image
    sizeBytes Number
    The size in bytes of the data associated with the image.
    status String
    The status of the image. It can be "queued", "active" or "saving".
    tags List<String>
    The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
    timeouts Property Map
    updatedAt String
    The date the image was last updated.
    visibility String

    The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the FlexibleEngine cloud.

    Note: The properties attribute handling in the gophercloud library is currently buggy and needs to be fixed before being implemented in this resource.

    Supporting Types

    ImagesImageV2Timeouts, ImagesImageV2TimeoutsArgs

    Create string
    Create string
    create String
    create string
    create str
    create String

    Import

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

    $ pulumi import flexibleengine:index/imagesImageV2:ImagesImageV2 rancheros 89c60255-9bd6-460c-822a-e2b959ede9d2
    

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

    Package Details

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