Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine
volcengine.ecs.getImages
Explore with Pulumi AI
Use this data source to query detailed information of images
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.ecs.getImages({
instanceTypeId: "ecs.g1.large",
osType: "Linux",
visibility: "public",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.ecs.get_images(instance_type_id="ecs.g1.large",
os_type="Linux",
visibility="public")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
InstanceTypeId: pulumi.StringRef("ecs.g1.large"),
OsType: pulumi.StringRef("Linux"),
Visibility: pulumi.StringRef("public"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Ecs.GetImages.Invoke(new()
{
InstanceTypeId = "ecs.g1.large",
OsType = "Linux",
Visibility = "public",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.GetImagesArgs;
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 foo = EcsFunctions.getImages(GetImagesArgs.builder()
.instanceTypeId("ecs.g1.large")
.osType("Linux")
.visibility("public")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:ecs:getImages
Arguments:
instanceTypeId: ecs.g1.large
osType: Linux
visibility: public
Using getImages
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 getImages(args: GetImagesArgs, opts?: InvokeOptions): Promise<GetImagesResult>
function getImagesOutput(args: GetImagesOutputArgs, opts?: InvokeOptions): Output<GetImagesResult>
def get_images(ids: Optional[Sequence[str]] = None,
image_name: Optional[str] = None,
instance_type_id: Optional[str] = None,
is_support_cloud_init: Optional[bool] = None,
is_tls: Optional[bool] = None,
name_regex: Optional[str] = None,
os_type: Optional[str] = None,
output_file: Optional[str] = None,
platform: Optional[str] = None,
statuses: Optional[Sequence[str]] = None,
tags: Optional[Sequence[GetImagesTag]] = None,
visibility: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImagesResult
def get_images_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
image_name: Optional[pulumi.Input[str]] = None,
instance_type_id: Optional[pulumi.Input[str]] = None,
is_support_cloud_init: Optional[pulumi.Input[bool]] = None,
is_tls: Optional[pulumi.Input[bool]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
os_type: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
platform: Optional[pulumi.Input[str]] = None,
statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetImagesTagArgs]]]] = None,
visibility: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImagesResult]
func GetImages(ctx *Context, args *GetImagesArgs, opts ...InvokeOption) (*GetImagesResult, error)
func GetImagesOutput(ctx *Context, args *GetImagesOutputArgs, opts ...InvokeOption) GetImagesResultOutput
> Note: This function is named GetImages
in the Go SDK.
public static class GetImages
{
public static Task<GetImagesResult> InvokeAsync(GetImagesArgs args, InvokeOptions? opts = null)
public static Output<GetImagesResult> Invoke(GetImagesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImagesResult> getImages(GetImagesArgs args, InvokeOptions options)
public static Output<GetImagesResult> getImages(GetImagesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:ecs/getImages:getImages
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of Image IDs.
- Image
Name string - The name of Image.
- Instance
Type stringId - The specification of Instance.
- Is
Support boolCloud Init - Whether the Image support cloud-init.
- Is
Tls bool - Whether the Image maintained for a long time.
- Name
Regex string - A Name Regex of Image.
- Os
Type string - The operating system type of Image.
- Output
File string - File name where to save data source results.
- Platform string
- The platform of Image.
- Statuses List<string>
- A list of Image status, the value can be
available
orcreating
orerror
. - List<Get
Images Tag> - Tags.
- Visibility string
- The visibility of Image.
- Ids []string
- A list of Image IDs.
- Image
Name string - The name of Image.
- Instance
Type stringId - The specification of Instance.
- Is
Support boolCloud Init - Whether the Image support cloud-init.
- Is
Tls bool - Whether the Image maintained for a long time.
- Name
Regex string - A Name Regex of Image.
- Os
Type string - The operating system type of Image.
- Output
File string - File name where to save data source results.
- Platform string
- The platform of Image.
- Statuses []string
- A list of Image status, the value can be
available
orcreating
orerror
. - []Get
Images Tag - Tags.
- Visibility string
- The visibility of Image.
- ids List<String>
- A list of Image IDs.
- image
Name String - The name of Image.
- instance
Type StringId - The specification of Instance.
- is
Support BooleanCloud Init - Whether the Image support cloud-init.
- is
Tls Boolean - Whether the Image maintained for a long time.
- name
Regex String - A Name Regex of Image.
- os
Type String - The operating system type of Image.
- output
File String - File name where to save data source results.
- platform String
- The platform of Image.
- statuses List<String>
- A list of Image status, the value can be
available
orcreating
orerror
. - List<Get
Images Tag> - Tags.
- visibility String
- The visibility of Image.
- ids string[]
- A list of Image IDs.
- image
Name string - The name of Image.
- instance
Type stringId - The specification of Instance.
- is
Support booleanCloud Init - Whether the Image support cloud-init.
- is
Tls boolean - Whether the Image maintained for a long time.
- name
Regex string - A Name Regex of Image.
- os
Type string - The operating system type of Image.
- output
File string - File name where to save data source results.
- platform string
- The platform of Image.
- statuses string[]
- A list of Image status, the value can be
available
orcreating
orerror
. - Get
Images Tag[] - Tags.
- visibility string
- The visibility of Image.
- ids Sequence[str]
- A list of Image IDs.
- image_
name str - The name of Image.
- instance_
type_ strid - The specification of Instance.
- is_
support_ boolcloud_ init - Whether the Image support cloud-init.
- is_
tls bool - Whether the Image maintained for a long time.
- name_
regex str - A Name Regex of Image.
- os_
type str - The operating system type of Image.
- output_
file str - File name where to save data source results.
- platform str
- The platform of Image.
- statuses Sequence[str]
- A list of Image status, the value can be
available
orcreating
orerror
. - Sequence[Get
Images Tag] - Tags.
- visibility str
- The visibility of Image.
- ids List<String>
- A list of Image IDs.
- image
Name String - The name of Image.
- instance
Type StringId - The specification of Instance.
- is
Support BooleanCloud Init - Whether the Image support cloud-init.
- is
Tls Boolean - Whether the Image maintained for a long time.
- name
Regex String - A Name Regex of Image.
- os
Type String - The operating system type of Image.
- output
File String - File name where to save data source results.
- platform String
- The platform of Image.
- statuses List<String>
- A list of Image status, the value can be
available
orcreating
orerror
. - List<Property Map>
- Tags.
- visibility String
- The visibility of Image.
getImages Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Images
List<Get
Images Image> - The collection of Image query.
- Total
Count int - The total count of Image query.
- Ids List<string>
- Image
Name string - The name of Image.
- Instance
Type stringId - Is
Support boolCloud Init - Whether the Image support cloud-init.
- Is
Tls bool - Name
Regex string - Os
Type string - The operating system type of Image.
- Output
File string - Platform string
- The platform of Image.
- Statuses List<string>
- The status of Image.
- List<Get
Images Tag> - Tags.
- Visibility string
- The visibility of Image.
- Id string
- The provider-assigned unique ID for this managed resource.
- Images
[]Get
Images Image - The collection of Image query.
- Total
Count int - The total count of Image query.
- Ids []string
- Image
Name string - The name of Image.
- Instance
Type stringId - Is
Support boolCloud Init - Whether the Image support cloud-init.
- Is
Tls bool - Name
Regex string - Os
Type string - The operating system type of Image.
- Output
File string - Platform string
- The platform of Image.
- Statuses []string
- The status of Image.
- []Get
Images Tag - Tags.
- Visibility string
- The visibility of Image.
- id String
- The provider-assigned unique ID for this managed resource.
- images
List<Get
Images Image> - The collection of Image query.
- total
Count Integer - The total count of Image query.
- ids List<String>
- image
Name String - The name of Image.
- instance
Type StringId - is
Support BooleanCloud Init - Whether the Image support cloud-init.
- is
Tls Boolean - name
Regex String - os
Type String - The operating system type of Image.
- output
File String - platform String
- The platform of Image.
- statuses List<String>
- The status of Image.
- List<Get
Images Tag> - Tags.
- visibility String
- The visibility of Image.
- id string
- The provider-assigned unique ID for this managed resource.
- images
Get
Images Image[] - The collection of Image query.
- total
Count number - The total count of Image query.
- ids string[]
- image
Name string - The name of Image.
- instance
Type stringId - is
Support booleanCloud Init - Whether the Image support cloud-init.
- is
Tls boolean - name
Regex string - os
Type string - The operating system type of Image.
- output
File string - platform string
- The platform of Image.
- statuses string[]
- The status of Image.
- Get
Images Tag[] - Tags.
- visibility string
- The visibility of Image.
- id str
- The provider-assigned unique ID for this managed resource.
- images
Sequence[Get
Images Image] - The collection of Image query.
- total_
count int - The total count of Image query.
- ids Sequence[str]
- image_
name str - The name of Image.
- instance_
type_ strid - is_
support_ boolcloud_ init - Whether the Image support cloud-init.
- is_
tls bool - name_
regex str - os_
type str - The operating system type of Image.
- output_
file str - platform str
- The platform of Image.
- statuses Sequence[str]
- The status of Image.
- Sequence[Get
Images Tag] - Tags.
- visibility str
- The visibility of Image.
- id String
- The provider-assigned unique ID for this managed resource.
- images List<Property Map>
- The collection of Image query.
- total
Count Number - The total count of Image query.
- ids List<String>
- image
Name String - The name of Image.
- instance
Type StringId - is
Support BooleanCloud Init - Whether the Image support cloud-init.
- is
Tls Boolean - name
Regex String - os
Type String - The operating system type of Image.
- output
File String - platform String
- The platform of Image.
- statuses List<String>
- The status of Image.
- List<Property Map>
- Tags.
- visibility String
- The visibility of Image.
Supporting Types
GetImagesImage
- Architecture string
- The architecture of Image.
- Boot
Mode string - The boot mode of Image.
- Created
At string - The create time of Image.
- Description string
- The description of Image.
- Image
Id string - The ID of Image.
- Image
Name string - The name of Image.
- Is
Support boolCloud Init - Whether the Image support cloud-init.
- Os
Name string - The name of Image operating system.
- Os
Type string - The operating system type of Image.
- Platform string
- The platform of Image.
- Platform
Version string - The platform version of Image.
- string
- The share mode of Image.
- Size int
- The size(GiB) of Image.
- Status string
- A list of Image status, the value can be
available
orcreating
orerror
. - List<Get
Images Image Tag> - Tags.
- Updated
At string - The update time of Image.
- Visibility string
- The visibility of Image.
- Architecture string
- The architecture of Image.
- Boot
Mode string - The boot mode of Image.
- Created
At string - The create time of Image.
- Description string
- The description of Image.
- Image
Id string - The ID of Image.
- Image
Name string - The name of Image.
- Is
Support boolCloud Init - Whether the Image support cloud-init.
- Os
Name string - The name of Image operating system.
- Os
Type string - The operating system type of Image.
- Platform string
- The platform of Image.
- Platform
Version string - The platform version of Image.
- string
- The share mode of Image.
- Size int
- The size(GiB) of Image.
- Status string
- A list of Image status, the value can be
available
orcreating
orerror
. - []Get
Images Image Tag - Tags.
- Updated
At string - The update time of Image.
- Visibility string
- The visibility of Image.
- architecture String
- The architecture of Image.
- boot
Mode String - The boot mode of Image.
- created
At String - The create time of Image.
- description String
- The description of Image.
- image
Id String - The ID of Image.
- image
Name String - The name of Image.
- is
Support BooleanCloud Init - Whether the Image support cloud-init.
- os
Name String - The name of Image operating system.
- os
Type String - The operating system type of Image.
- platform String
- The platform of Image.
- platform
Version String - The platform version of Image.
- String
- The share mode of Image.
- size Integer
- The size(GiB) of Image.
- status String
- A list of Image status, the value can be
available
orcreating
orerror
. - List<Get
Images Image Tag> - Tags.
- updated
At String - The update time of Image.
- visibility String
- The visibility of Image.
- architecture string
- The architecture of Image.
- boot
Mode string - The boot mode of Image.
- created
At string - The create time of Image.
- description string
- The description of Image.
- image
Id string - The ID of Image.
- image
Name string - The name of Image.
- is
Support booleanCloud Init - Whether the Image support cloud-init.
- os
Name string - The name of Image operating system.
- os
Type string - The operating system type of Image.
- platform string
- The platform of Image.
- platform
Version string - The platform version of Image.
- string
- The share mode of Image.
- size number
- The size(GiB) of Image.
- status string
- A list of Image status, the value can be
available
orcreating
orerror
. - Get
Images Image Tag[] - Tags.
- updated
At string - The update time of Image.
- visibility string
- The visibility of Image.
- architecture str
- The architecture of Image.
- boot_
mode str - The boot mode of Image.
- created_
at str - The create time of Image.
- description str
- The description of Image.
- image_
id str - The ID of Image.
- image_
name str - The name of Image.
- is_
support_ boolcloud_ init - Whether the Image support cloud-init.
- os_
name str - The name of Image operating system.
- os_
type str - The operating system type of Image.
- platform str
- The platform of Image.
- platform_
version str - The platform version of Image.
- str
- The share mode of Image.
- size int
- The size(GiB) of Image.
- status str
- A list of Image status, the value can be
available
orcreating
orerror
. - Sequence[Get
Images Image Tag] - Tags.
- updated_
at str - The update time of Image.
- visibility str
- The visibility of Image.
- architecture String
- The architecture of Image.
- boot
Mode String - The boot mode of Image.
- created
At String - The create time of Image.
- description String
- The description of Image.
- image
Id String - The ID of Image.
- image
Name String - The name of Image.
- is
Support BooleanCloud Init - Whether the Image support cloud-init.
- os
Name String - The name of Image operating system.
- os
Type String - The operating system type of Image.
- platform String
- The platform of Image.
- platform
Version String - The platform version of Image.
- String
- The share mode of Image.
- size Number
- The size(GiB) of Image.
- status String
- A list of Image status, the value can be
available
orcreating
orerror
. - List<Property Map>
- Tags.
- updated
At String - The update time of Image.
- visibility String
- The visibility of Image.
GetImagesImageTag
GetImagesTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.