flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getImagesImageV2
Explore with Pulumi AI
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
- Most
Recent 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. - Size
Max double - The maximum size (in bytes) of the image to return.
- Size
Min double - The minimum size (in bytes) of the image to return.
- Sort
Direction string - Order the results in either
asc
ordesc
. - Sort
Key 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
- Most
Recent 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. - Size
Max float64 - The maximum size (in bytes) of the image to return.
- Size
Min float64 - The minimum size (in bytes) of the image to return.
- Sort
Direction string - Order the results in either
asc
ordesc
. - Sort
Key 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
- most
Recent 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. - size
Max Double - The maximum size (in bytes) of the image to return.
- size
Min Double - The minimum size (in bytes) of the image to return.
- sort
Direction String - Order the results in either
asc
ordesc
. - sort
Key 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
- most
Recent 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. - size
Max number - The maximum size (in bytes) of the image to return.
- size
Min number - The minimum size (in bytes) of the image to return.
- sort
Direction string - Order the results in either
asc
ordesc
. - sort
Key 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
ordesc
. - 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
- most
Recent 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. - size
Max Number - The maximum size (in bytes) of the image to return.
- size
Min Number - The minimum size (in bytes) of the image to return.
- sort
Direction String - Order the results in either
asc
ordesc
. - sort
Key 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.
- Container
Format string - The format of the image's container.
- Created
At string - The date the image was created.
- Disk
Format 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.
- Min
Disk doubleGb - The minimum amount of disk space required to use the image.
- Min
Ram doubleMb - 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
- Size
Bytes double - The size of the image (in bytes).
- Updated
At string - The date the image was last updated.
- Most
Recent bool - Name string
- Owner string
- Size
Max double - Size
Min double - Sort
Direction string - Sort
Key string - Tag string
- Visibility string
- Checksum string
- The checksum of the data associated with the image.
- Container
Format string - The format of the image's container.
- Created
At string - The date the image was created.
- Disk
Format 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.
- Min
Disk float64Gb - The minimum amount of disk space required to use the image.
- Min
Ram float64Mb - 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
- Size
Bytes float64 - The size of the image (in bytes).
- Updated
At string - The date the image was last updated.
- Most
Recent bool - Name string
- Owner string
- Size
Max float64 - Size
Min float64 - Sort
Direction string - Sort
Key string - Tag string
- Visibility string
- checksum String
- The checksum of the data associated with the image.
- container
Format String - The format of the image's container.
- created
At String - The date the image was created.
- disk
Format 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.
- min
Disk DoubleGb - The minimum amount of disk space required to use the image.
- min
Ram DoubleMb - 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
- size
Bytes Double - The size of the image (in bytes).
- updated
At String - The date the image was last updated.
- most
Recent Boolean - name String
- owner String
- size
Max Double - size
Min Double - sort
Direction String - sort
Key String - tag String
- visibility String
- checksum string
- The checksum of the data associated with the image.
- container
Format string - The format of the image's container.
- created
At string - The date the image was created.
- disk
Format 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.
- min
Disk numberGb - The minimum amount of disk space required to use the image.
- min
Ram numberMb - 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
- size
Bytes number - The size of the image (in bytes).
- updated
At string - The date the image was last updated.
- most
Recent boolean - name string
- owner string
- size
Max number - size
Min number - sort
Direction string - sort
Key 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_ floatgb - The minimum amount of disk space required to use the image.
- min_
ram_ floatmb - 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.
- container
Format String - The format of the image's container.
- created
At String - The date the image was created.
- disk
Format 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.
- min
Disk NumberGb - The minimum amount of disk space required to use the image.
- min
Ram NumberMb - 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
- size
Bytes Number - The size of the image (in bytes).
- updated
At String - The date the image was last updated.
- most
Recent Boolean - name String
- owner String
- size
Max Number - size
Min Number - sort
Direction String - sort
Key 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 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud