vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getImagesImage
Explore with Pulumi AI
Use this data source to get the ID of an available VKCS image.
Example Usage
VKCS provided image
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const debian = vkcs.getImagesImage({
"default": true,
properties: {
mcs_os_distro: "debian",
mcs_os_version: "12",
},
visibility: "public",
});
import pulumi
import pulumi_vkcs as vkcs
debian = vkcs.get_images_image(default=True,
properties={
"mcs_os_distro": "debian",
"mcs_os_version": "12",
},
visibility="public")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.LookupImagesImage(ctx, &vkcs.LookupImagesImageArgs{
Default: pulumi.BoolRef(true),
Properties: map[string]interface{}{
"mcs_os_distro": "debian",
"mcs_os_version": "12",
},
Visibility: pulumi.StringRef("public"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var debian = Vkcs.GetImagesImage.Invoke(new()
{
Default = true,
Properties =
{
{ "mcs_os_distro", "debian" },
{ "mcs_os_version", "12" },
},
Visibility = "public",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetImagesImageArgs;
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 debian = VkcsFunctions.getImagesImage(GetImagesImageArgs.builder()
.default_(true)
.properties(Map.ofEntries(
Map.entry("mcs_os_distro", "debian"),
Map.entry("mcs_os_version", "12")
))
.visibility("public")
.build());
}
}
variables:
debian:
fn::invoke:
function: vkcs:getImagesImage
arguments:
default: true
properties:
mcs_os_distro: debian
mcs_os_version: '12'
visibility: public
User image
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const eurolinux9 = vkcs.getImagesImage({
tag: "tf-example",
mostRecent: true,
properties: {
mcs_os_distro: "eurolinux",
mcs_os_version: "9",
},
});
import pulumi
import pulumi_vkcs as vkcs
eurolinux9 = vkcs.get_images_image(tag="tf-example",
most_recent=True,
properties={
"mcs_os_distro": "eurolinux",
"mcs_os_version": "9",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.LookupImagesImage(ctx, &vkcs.LookupImagesImageArgs{
Tag: pulumi.StringRef("tf-example"),
MostRecent: pulumi.BoolRef(true),
Properties: map[string]interface{}{
"mcs_os_distro": "eurolinux",
"mcs_os_version": "9",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var eurolinux9 = Vkcs.GetImagesImage.Invoke(new()
{
Tag = "tf-example",
MostRecent = true,
Properties =
{
{ "mcs_os_distro", "eurolinux" },
{ "mcs_os_version", "9" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetImagesImageArgs;
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 eurolinux9 = VkcsFunctions.getImagesImage(GetImagesImageArgs.builder()
.tag("tf-example")
.mostRecent(true)
.properties(Map.ofEntries(
Map.entry("mcs_os_distro", "eurolinux"),
Map.entry("mcs_os_version", "9")
))
.build());
}
}
variables:
eurolinux9:
fn::invoke:
function: vkcs:getImagesImage
arguments:
tag: tf-example
mostRecent: true
properties:
mcs_os_distro: eurolinux
mcs_os_version: '9'
Using getImagesImage
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 getImagesImage(args: GetImagesImageArgs, opts?: InvokeOptions): Promise<GetImagesImageResult>
function getImagesImageOutput(args: GetImagesImageOutputArgs, opts?: InvokeOptions): Output<GetImagesImageResult>
def get_images_image(default: Optional[bool] = None,
member_status: Optional[str] = None,
most_recent: Optional[bool] = None,
name: Optional[str] = None,
owner: Optional[str] = None,
properties: Optional[Mapping[str, str]] = None,
region: Optional[str] = None,
size_max: Optional[float] = None,
size_min: Optional[float] = None,
tag: Optional[str] = None,
visibility: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImagesImageResult
def get_images_image_output(default: Optional[pulumi.Input[bool]] = None,
member_status: Optional[pulumi.Input[str]] = None,
most_recent: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
owner: Optional[pulumi.Input[str]] = None,
properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
region: Optional[pulumi.Input[str]] = None,
size_max: Optional[pulumi.Input[float]] = None,
size_min: Optional[pulumi.Input[float]] = None,
tag: Optional[pulumi.Input[str]] = None,
visibility: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImagesImageResult]
func LookupImagesImage(ctx *Context, args *LookupImagesImageArgs, opts ...InvokeOption) (*LookupImagesImageResult, error)
func LookupImagesImageOutput(ctx *Context, args *LookupImagesImageOutputArgs, opts ...InvokeOption) LookupImagesImageResultOutput
> Note: This function is named LookupImagesImage
in the Go SDK.
public static class GetImagesImage
{
public static Task<GetImagesImageResult> InvokeAsync(GetImagesImageArgs args, InvokeOptions? opts = null)
public static Output<GetImagesImageResult> Invoke(GetImagesImageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImagesImageResult> getImagesImage(GetImagesImageArgs args, InvokeOptions options)
public static Output<GetImagesImageResult> getImagesImage(GetImagesImageArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getImagesImage:getImagesImage
arguments:
# arguments dictionary
The following arguments are supported:
- Default bool
- optional boolean → Search for an image that is available for virtual machine creation.New since v0.4.2.
- Member
Status string - optional string → Status for adding a new member (tenant) to an image member list.
- Most
Recent bool - optional boolean → If more than one result is returned, use the most recent image.
- Name string
- optional string → The name of the image.
- Owner string
- optional string → The owner (UUID) of the image.
- Properties Dictionary<string, string>
- optional map of string → A map of key/value pairs to match an image with. All specified properties must be matched. Unlike other options filtering by
properties
does by client on the result of search query. Filtering is applied if server response contains at least 2 images. In case there is only one image theproperties
ignores. - Region string
- optional string → The region in which to obtain the Image client. An Image client is needed to create an Image that can be used with a compute instance. If omitted, the
region
argument of the provider is used. - Size
Max double - optional number → The maximum size (in bytes) of the image to return.
- Size
Min double - optional number → The minimum size (in bytes) of the image to return.
- Tag string
- optional string → Search for images with a specific tag.
- Visibility string
- optional string → The visibility of the image. Must be one of "public", "private", "community", or "shared".
- Default bool
- optional boolean → Search for an image that is available for virtual machine creation.New since v0.4.2.
- Member
Status string - optional string → Status for adding a new member (tenant) to an image member list.
- Most
Recent bool - optional boolean → If more than one result is returned, use the most recent image.
- Name string
- optional string → The name of the image.
- Owner string
- optional string → The owner (UUID) of the image.
- Properties map[string]string
- optional map of string → A map of key/value pairs to match an image with. All specified properties must be matched. Unlike other options filtering by
properties
does by client on the result of search query. Filtering is applied if server response contains at least 2 images. In case there is only one image theproperties
ignores. - Region string
- optional string → The region in which to obtain the Image client. An Image client is needed to create an Image that can be used with a compute instance. If omitted, the
region
argument of the provider is used. - Size
Max float64 - optional number → The maximum size (in bytes) of the image to return.
- Size
Min float64 - optional number → The minimum size (in bytes) of the image to return.
- Tag string
- optional string → Search for images with a specific tag.
- Visibility string
- optional string → The visibility of the image. Must be one of "public", "private", "community", or "shared".
- default_ Boolean
- optional boolean → Search for an image that is available for virtual machine creation.New since v0.4.2.
- member
Status String - optional string → Status for adding a new member (tenant) to an image member list.
- most
Recent Boolean - optional boolean → If more than one result is returned, use the most recent image.
- name String
- optional string → The name of the image.
- owner String
- optional string → The owner (UUID) of the image.
- properties Map<String,String>
- optional map of string → A map of key/value pairs to match an image with. All specified properties must be matched. Unlike other options filtering by
properties
does by client on the result of search query. Filtering is applied if server response contains at least 2 images. In case there is only one image theproperties
ignores. - region String
- optional string → The region in which to obtain the Image client. An Image client is needed to create an Image that can be used with a compute instance. If omitted, the
region
argument of the provider is used. - size
Max Double - optional number → The maximum size (in bytes) of the image to return.
- size
Min Double - optional number → The minimum size (in bytes) of the image to return.
- tag String
- optional string → Search for images with a specific tag.
- visibility String
- optional string → The visibility of the image. Must be one of "public", "private", "community", or "shared".
- default boolean
- optional boolean → Search for an image that is available for virtual machine creation.New since v0.4.2.
- member
Status string - optional string → Status for adding a new member (tenant) to an image member list.
- most
Recent boolean - optional boolean → If more than one result is returned, use the most recent image.
- name string
- optional string → The name of the image.
- owner string
- optional string → The owner (UUID) of the image.
- properties {[key: string]: string}
- optional map of string → A map of key/value pairs to match an image with. All specified properties must be matched. Unlike other options filtering by
properties
does by client on the result of search query. Filtering is applied if server response contains at least 2 images. In case there is only one image theproperties
ignores. - region string
- optional string → The region in which to obtain the Image client. An Image client is needed to create an Image that can be used with a compute instance. If omitted, the
region
argument of the provider is used. - size
Max number - optional number → The maximum size (in bytes) of the image to return.
- size
Min number - optional number → The minimum size (in bytes) of the image to return.
- tag string
- optional string → Search for images with a specific tag.
- visibility string
- optional string → The visibility of the image. Must be one of "public", "private", "community", or "shared".
- default bool
- optional boolean → Search for an image that is available for virtual machine creation.New since v0.4.2.
- member_
status str - optional string → Status for adding a new member (tenant) to an image member list.
- most_
recent bool - optional boolean → If more than one result is returned, use the most recent image.
- name str
- optional string → The name of the image.
- owner str
- optional string → The owner (UUID) of the image.
- properties Mapping[str, str]
- optional map of string → A map of key/value pairs to match an image with. All specified properties must be matched. Unlike other options filtering by
properties
does by client on the result of search query. Filtering is applied if server response contains at least 2 images. In case there is only one image theproperties
ignores. - region str
- optional string → The region in which to obtain the Image client. An Image client is needed to create an Image that can be used with a compute instance. If omitted, the
region
argument of the provider is used. - size_
max float - optional number → The maximum size (in bytes) of the image to return.
- size_
min float - optional number → The minimum size (in bytes) of the image to return.
- tag str
- optional string → Search for images with a specific tag.
- visibility str
- optional string → The visibility of the image. Must be one of "public", "private", "community", or "shared".
- default Boolean
- optional boolean → Search for an image that is available for virtual machine creation.New since v0.4.2.
- member
Status String - optional string → Status for adding a new member (tenant) to an image member list.
- most
Recent Boolean - optional boolean → If more than one result is returned, use the most recent image.
- name String
- optional string → The name of the image.
- owner String
- optional string → The owner (UUID) of the image.
- properties Map<String>
- optional map of string → A map of key/value pairs to match an image with. All specified properties must be matched. Unlike other options filtering by
properties
does by client on the result of search query. Filtering is applied if server response contains at least 2 images. In case there is only one image theproperties
ignores. - region String
- optional string → The region in which to obtain the Image client. An Image client is needed to create an Image that can be used with a compute instance. If omitted, the
region
argument of the provider is used. - size
Max Number - optional number → The maximum size (in bytes) of the image to return.
- size
Min Number - optional number → The minimum size (in bytes) of the image to return.
- tag String
- optional string → Search for images with a specific tag.
- visibility String
- optional string → The visibility of the image. Must be one of "public", "private", "community", or "shared".
getImagesImage Result
The following output properties are available:
- Checksum string
- string → The checksum of the data associated with the image.
- Container
Format string - string → The format of the image's container.
- Created
At string - string → The date the image was created.
- Disk
Format string - string → The format of the image's disk.
- File string
- string → The trailing path after the endpoint that represent the location of the image or the path to retrieve it.
- Id string
- string → The UUID of the image.
- Metadata Dictionary<string, string>
- map of string → The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html.
- Min
Disk doubleGb - number → The minimum amount of disk space required to use the image.
- Min
Ram doubleMb - number → The minimum amount of ram required to use the image.
- Protected bool
- boolean → Whether or not the image is protected.
- Region string
- Schema string
- string → The path to the JSON-schema that represent the image or image
- Size
Bytes double - number → The size of the image (in bytes).
- List<string>
- set of string → The tags list of the image.
- Updated
At string - string → The date the image was last updated.
- Default bool
- Member
Status string - Most
Recent bool - Name string
- Owner string
- Properties Dictionary<string, string>
- Size
Max double - Size
Min double - Tag string
- Visibility string
- Checksum string
- string → The checksum of the data associated with the image.
- Container
Format string - string → The format of the image's container.
- Created
At string - string → The date the image was created.
- Disk
Format string - string → The format of the image's disk.
- File string
- string → The trailing path after the endpoint that represent the location of the image or the path to retrieve it.
- Id string
- string → The UUID of the image.
- Metadata map[string]string
- map of string → The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html.
- Min
Disk float64Gb - number → The minimum amount of disk space required to use the image.
- Min
Ram float64Mb - number → The minimum amount of ram required to use the image.
- Protected bool
- boolean → Whether or not the image is protected.
- Region string
- Schema string
- string → The path to the JSON-schema that represent the image or image
- Size
Bytes float64 - number → The size of the image (in bytes).
- []string
- set of string → The tags list of the image.
- Updated
At string - string → The date the image was last updated.
- Default bool
- Member
Status string - Most
Recent bool - Name string
- Owner string
- Properties map[string]string
- Size
Max float64 - Size
Min float64 - Tag string
- Visibility string
- checksum String
- string → The checksum of the data associated with the image.
- container
Format String - string → The format of the image's container.
- created
At String - string → The date the image was created.
- disk
Format String - string → The format of the image's disk.
- file String
- string → The trailing path after the endpoint that represent the location of the image or the path to retrieve it.
- id String
- string → The UUID of the image.
- metadata Map<String,String>
- map of string → The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html.
- min
Disk DoubleGb - number → The minimum amount of disk space required to use the image.
- min
Ram DoubleMb - number → The minimum amount of ram required to use the image.
- protected_ Boolean
- boolean → Whether or not the image is protected.
- region String
- schema String
- string → The path to the JSON-schema that represent the image or image
- size
Bytes Double - number → The size of the image (in bytes).
- List<String>
- set of string → The tags list of the image.
- updated
At String - string → The date the image was last updated.
- default_ Boolean
- member
Status String - most
Recent Boolean - name String
- owner String
- properties Map<String,String>
- size
Max Double - size
Min Double - tag String
- visibility String
- checksum string
- string → The checksum of the data associated with the image.
- container
Format string - string → The format of the image's container.
- created
At string - string → The date the image was created.
- disk
Format string - string → The format of the image's disk.
- file string
- string → The trailing path after the endpoint that represent the location of the image or the path to retrieve it.
- id string
- string → The UUID of the image.
- metadata {[key: string]: string}
- map of string → The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html.
- min
Disk numberGb - number → The minimum amount of disk space required to use the image.
- min
Ram numberMb - number → The minimum amount of ram required to use the image.
- protected boolean
- boolean → Whether or not the image is protected.
- region string
- schema string
- string → The path to the JSON-schema that represent the image or image
- size
Bytes number - number → The size of the image (in bytes).
- string[]
- set of string → The tags list of the image.
- updated
At string - string → The date the image was last updated.
- default boolean
- member
Status string - most
Recent boolean - name string
- owner string
- properties {[key: string]: string}
- size
Max number - size
Min number - tag string
- visibility string
- checksum str
- string → The checksum of the data associated with the image.
- container_
format str - string → The format of the image's container.
- created_
at str - string → The date the image was created.
- disk_
format str - string → The format of the image's disk.
- file str
- string → The trailing path after the endpoint that represent the location of the image or the path to retrieve it.
- id str
- string → The UUID of the image.
- metadata Mapping[str, str]
- map of string → The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html.
- min_
disk_ floatgb - number → The minimum amount of disk space required to use the image.
- min_
ram_ floatmb - number → The minimum amount of ram required to use the image.
- protected bool
- boolean → Whether or not the image is protected.
- region str
- schema str
- string → The path to the JSON-schema that represent the image or image
- size_
bytes float - number → The size of the image (in bytes).
- Sequence[str]
- set of string → The tags list of the image.
- updated_
at str - string → The date the image was last updated.
- default bool
- member_
status str - most_
recent bool - name str
- owner str
- properties Mapping[str, str]
- size_
max float - size_
min float - tag str
- visibility str
- checksum String
- string → The checksum of the data associated with the image.
- container
Format String - string → The format of the image's container.
- created
At String - string → The date the image was created.
- disk
Format String - string → The format of the image's disk.
- file String
- string → The trailing path after the endpoint that represent the location of the image or the path to retrieve it.
- id String
- string → The UUID of the image.
- metadata Map<String>
- map of string → The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html.
- min
Disk NumberGb - number → The minimum amount of disk space required to use the image.
- min
Ram NumberMb - number → The minimum amount of ram required to use the image.
- protected Boolean
- boolean → Whether or not the image is protected.
- region String
- schema String
- string → The path to the JSON-schema that represent the image or image
- size
Bytes Number - number → The size of the image (in bytes).
- List<String>
- set of string → The tags list of the image.
- updated
At String - string → The date the image was last updated.
- default Boolean
- member
Status String - most
Recent Boolean - name String
- owner String
- properties Map<String>
- size
Max Number - size
Min Number - tag String
- visibility String
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.