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

flexibleengine.getImagesImageV2

Explore with Pulumi AI

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

    Use this data source to get the ID of an available FlexibleEngine image.

    !> 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 ubuntu = flexibleengine.getImagesImageV2({
        name: "OBS Ubuntu 18.04",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    ubuntu = flexibleengine.get_images_image_v2(name="OBS Ubuntu 18.04")
    
    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.LookupImagesImageV2(ctx, &flexibleengine.LookupImagesImageV2Args{
    			Name: pulumi.StringRef("OBS Ubuntu 18.04"),
    		}, nil)
    		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 ubuntu = Flexibleengine.GetImagesImageV2.Invoke(new()
        {
            Name = "OBS Ubuntu 18.04",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetImagesImageV2Args;
    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) {
            final var ubuntu = FlexibleengineFunctions.getImagesImageV2(GetImagesImageV2Args.builder()
                .name("OBS Ubuntu 18.04")
                .build());
    
        }
    }
    
    variables:
      ubuntu:
        fn::invoke:
          function: flexibleengine:getImagesImageV2
          arguments:
            name: OBS Ubuntu 18.04
    

    Using getImagesImageV2

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getImagesImageV2(args: GetImagesImageV2Args, opts?: InvokeOptions): Promise<GetImagesImageV2Result>
    function getImagesImageV2Output(args: GetImagesImageV2OutputArgs, opts?: InvokeOptions): Output<GetImagesImageV2Result>
    def get_images_image_v2(id: Optional[str] = None,
                            most_recent: Optional[bool] = None,
                            name: Optional[str] = None,
                            owner: Optional[str] = None,
                            region: Optional[str] = None,
                            size_max: Optional[float] = None,
                            size_min: Optional[float] = None,
                            sort_direction: Optional[str] = None,
                            sort_key: Optional[str] = None,
                            tag: Optional[str] = None,
                            visibility: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetImagesImageV2Result
    def get_images_image_v2_output(id: Optional[pulumi.Input[str]] = None,
                            most_recent: Optional[pulumi.Input[bool]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            owner: Optional[pulumi.Input[str]] = None,
                            region: Optional[pulumi.Input[str]] = None,
                            size_max: Optional[pulumi.Input[float]] = None,
                            size_min: Optional[pulumi.Input[float]] = None,
                            sort_direction: Optional[pulumi.Input[str]] = None,
                            sort_key: Optional[pulumi.Input[str]] = None,
                            tag: Optional[pulumi.Input[str]] = None,
                            visibility: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetImagesImageV2Result]
    func LookupImagesImageV2(ctx *Context, args *LookupImagesImageV2Args, opts ...InvokeOption) (*LookupImagesImageV2Result, error)
    func LookupImagesImageV2Output(ctx *Context, args *LookupImagesImageV2OutputArgs, opts ...InvokeOption) LookupImagesImageV2ResultOutput

    > Note: This function is named LookupImagesImageV2 in the Go SDK.

    public static class GetImagesImageV2 
    {
        public static Task<GetImagesImageV2Result> InvokeAsync(GetImagesImageV2Args args, InvokeOptions? opts = null)
        public static Output<GetImagesImageV2Result> Invoke(GetImagesImageV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetImagesImageV2Result> getImagesImageV2(GetImagesImageV2Args args, InvokeOptions options)
    public static Output<GetImagesImageV2Result> getImagesImageV2(GetImagesImageV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getImagesImageV2:getImagesImageV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    MostRecent bool
    If more than one result is returned, use the most recent image.
    Name string
    The name of the image. Exact matching is used.
    Owner string
    The owner (UUID) of the image.
    Region string
    The region in which to obtain the image. If omitted, the region argument of the provider is used.
    SizeMax double
    The maximum size (in bytes) of the image to return.
    SizeMin double
    The minimum size (in bytes) of the image to return.
    SortDirection string
    Order the results in either asc or desc.
    SortKey string
    Sort images based on a certain key. Defaults to name.
    Tag string
    Search for images with a specific tag.
    Visibility string
    The visibility of the image. Must be one of "public", "private", "community", or "shared".
    Id string
    MostRecent bool
    If more than one result is returned, use the most recent image.
    Name string
    The name of the image. Exact matching is used.
    Owner string
    The owner (UUID) of the image.
    Region string
    The region in which to obtain the image. If omitted, the region argument of the provider is used.
    SizeMax float64
    The maximum size (in bytes) of the image to return.
    SizeMin float64
    The minimum size (in bytes) of the image to return.
    SortDirection string
    Order the results in either asc or desc.
    SortKey string
    Sort images based on a certain key. Defaults to name.
    Tag string
    Search for images with a specific tag.
    Visibility string
    The visibility of the image. Must be one of "public", "private", "community", or "shared".
    id String
    mostRecent Boolean
    If more than one result is returned, use the most recent image.
    name String
    The name of the image. Exact matching is used.
    owner String
    The owner (UUID) of the image.
    region String
    The region in which to obtain the image. If omitted, the region argument of the provider is used.
    sizeMax Double
    The maximum size (in bytes) of the image to return.
    sizeMin Double
    The minimum size (in bytes) of the image to return.
    sortDirection String
    Order the results in either asc or desc.
    sortKey String
    Sort images based on a certain key. Defaults to name.
    tag String
    Search for images with a specific tag.
    visibility String
    The visibility of the image. Must be one of "public", "private", "community", or "shared".
    id string
    mostRecent boolean
    If more than one result is returned, use the most recent image.
    name string
    The name of the image. Exact matching is used.
    owner string
    The owner (UUID) of the image.
    region string
    The region in which to obtain the image. If omitted, the region argument of the provider is used.
    sizeMax number
    The maximum size (in bytes) of the image to return.
    sizeMin number
    The minimum size (in bytes) of the image to return.
    sortDirection string
    Order the results in either asc or desc.
    sortKey string
    Sort images based on a certain key. Defaults to name.
    tag string
    Search for images with a specific tag.
    visibility string
    The visibility of the image. Must be one of "public", "private", "community", or "shared".
    id str
    most_recent bool
    If more than one result is returned, use the most recent image.
    name str
    The name of the image. Exact matching is used.
    owner str
    The owner (UUID) of the image.
    region str
    The region in which to obtain the image. If omitted, the region argument of the provider is used.
    size_max float
    The maximum size (in bytes) of the image to return.
    size_min float
    The minimum size (in bytes) of the image to return.
    sort_direction str
    Order the results in either asc or desc.
    sort_key str
    Sort images based on a certain key. Defaults to name.
    tag str
    Search for images with a specific tag.
    visibility str
    The visibility of the image. Must be one of "public", "private", "community", or "shared".
    id String
    mostRecent Boolean
    If more than one result is returned, use the most recent image.
    name String
    The name of the image. Exact matching is used.
    owner String
    The owner (UUID) of the image.
    region String
    The region in which to obtain the image. If omitted, the region argument of the provider is used.
    sizeMax Number
    The maximum size (in bytes) of the image to return.
    sizeMin Number
    The minimum size (in bytes) of the image to return.
    sortDirection String
    Order the results in either asc or desc.
    sortKey String
    Sort images based on a certain key. Defaults to name.
    tag String
    Search for images with a specific tag.
    visibility String
    The visibility of the image. Must be one of "public", "private", "community", or "shared".

    getImagesImageV2 Result

    The following output properties are available:

    Checksum string
    The checksum of the data associated with the image.
    ContainerFormat string
    The format of the image's container.
    CreatedAt string
    The date the image was created.
    DiskFormat string
    The format of the image's disk.
    File string
    The URL for uploading and downloading the image file.
    Id string
    Metadata Dictionary<string, string>
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    MinDiskGb double
    The minimum amount of disk space required to use the image.
    MinRamMb double
    The minimum amount of ram required to use the image.
    Protected bool
    Whether the image is protected.
    Region string
    Schema string
    The path to the JSON-schema that represent the image or image
    SizeBytes double
    The size of the image (in bytes).
    UpdatedAt string
    The date the image was last updated.
    MostRecent bool
    Name string
    Owner string
    SizeMax double
    SizeMin double
    SortDirection string
    SortKey string
    Tag string
    Visibility string
    Checksum string
    The checksum of the data associated with the image.
    ContainerFormat string
    The format of the image's container.
    CreatedAt string
    The date the image was created.
    DiskFormat string
    The format of the image's disk.
    File string
    The URL for uploading and downloading the image file.
    Id string
    Metadata map[string]string
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    MinDiskGb float64
    The minimum amount of disk space required to use the image.
    MinRamMb float64
    The minimum amount of ram required to use the image.
    Protected bool
    Whether the image is protected.
    Region string
    Schema string
    The path to the JSON-schema that represent the image or image
    SizeBytes float64
    The size of the image (in bytes).
    UpdatedAt string
    The date the image was last updated.
    MostRecent bool
    Name string
    Owner string
    SizeMax float64
    SizeMin float64
    SortDirection string
    SortKey string
    Tag string
    Visibility string
    checksum String
    The checksum of the data associated with the image.
    containerFormat String
    The format of the image's container.
    createdAt String
    The date the image was created.
    diskFormat String
    The format of the image's disk.
    file String
    The URL for uploading and downloading the image file.
    id String
    metadata Map<String,String>
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    minDiskGb Double
    The minimum amount of disk space required to use the image.
    minRamMb Double
    The minimum amount of ram required to use the image.
    protected_ Boolean
    Whether the image is protected.
    region String
    schema String
    The path to the JSON-schema that represent the image or image
    sizeBytes Double
    The size of the image (in bytes).
    updatedAt String
    The date the image was last updated.
    mostRecent Boolean
    name String
    owner String
    sizeMax Double
    sizeMin Double
    sortDirection String
    sortKey String
    tag String
    visibility String
    checksum string
    The checksum of the data associated with the image.
    containerFormat string
    The format of the image's container.
    createdAt string
    The date the image was created.
    diskFormat string
    The format of the image's disk.
    file string
    The URL for uploading and downloading the image file.
    id string
    metadata {[key: string]: string}
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    minDiskGb number
    The minimum amount of disk space required to use the image.
    minRamMb number
    The minimum amount of ram required to use the image.
    protected boolean
    Whether the image is protected.
    region string
    schema string
    The path to the JSON-schema that represent the image or image
    sizeBytes number
    The size of the image (in bytes).
    updatedAt string
    The date the image was last updated.
    mostRecent boolean
    name string
    owner string
    sizeMax number
    sizeMin number
    sortDirection string
    sortKey string
    tag string
    visibility string
    checksum str
    The checksum of the data associated with the image.
    container_format str
    The format of the image's container.
    created_at str
    The date the image was created.
    disk_format str
    The format of the image's disk.
    file str
    The URL for uploading and downloading the image file.
    id str
    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
    The minimum amount of disk space required to use the image.
    min_ram_mb float
    The minimum amount of ram required to use the image.
    protected bool
    Whether the image is protected.
    region str
    schema str
    The path to the JSON-schema that represent the image or image
    size_bytes float
    The size of the image (in bytes).
    updated_at str
    The date the image was last updated.
    most_recent bool
    name str
    owner str
    size_max float
    size_min float
    sort_direction str
    sort_key str
    tag str
    visibility str
    checksum String
    The checksum of the data associated with the image.
    containerFormat String
    The format of the image's container.
    createdAt String
    The date the image was created.
    diskFormat String
    The format of the image's disk.
    file String
    The URL for uploading and downloading the image file.
    id String
    metadata Map<String>
    The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags.
    minDiskGb Number
    The minimum amount of disk space required to use the image.
    minRamMb Number
    The minimum amount of ram required to use the image.
    protected Boolean
    Whether the image is protected.
    region String
    schema String
    The path to the JSON-schema that represent the image or image
    sizeBytes Number
    The size of the image (in bytes).
    updatedAt String
    The date the image was last updated.
    mostRecent Boolean
    name String
    owner String
    sizeMax Number
    sizeMin Number
    sortDirection String
    sortKey String
    tag String
    visibility String

    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