1. Packages
  2. Volcengine
  3. API Docs
  4. ecs
  5. Images
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.ecs.Images

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of images

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Ecs.Images.Invoke(new()
        {
            InstanceTypeId = "ecs.g1.large",
            OsType = "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.Images(ctx, &ecs.ImagesArgs{
    			InstanceTypeId: pulumi.StringRef("ecs.g1.large"),
    			OsType:         pulumi.StringRef("Linux"),
    			Visibility:     pulumi.StringRef("public"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.ImagesArgs;
    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.Images(ImagesArgs.builder()
                .instanceTypeId("ecs.g1.large")
                .osType("Linux")
                .visibility("public")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.ecs.images(instance_type_id="ecs.g1.large",
        os_type="Linux",
        visibility="public")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.ecs.Images({
        instanceTypeId: "ecs.g1.large",
        osType: "Linux",
        visibility: "public",
    });
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:ecs:Images
          Arguments:
            instanceTypeId: ecs.g1.large
            osType: Linux
            visibility: public
    

    Using Images

    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 images(args: ImagesArgs, opts?: InvokeOptions): Promise<ImagesResult>
    function imagesOutput(args: ImagesOutputArgs, opts?: InvokeOptions): Output<ImagesResult>
    def images(ids: Optional[Sequence[str]] = None,
               instance_type_id: Optional[str] = None,
               is_support_cloud_init: Optional[bool] = None,
               name_regex: Optional[str] = None,
               os_type: Optional[str] = None,
               output_file: Optional[str] = None,
               statuses: Optional[Sequence[str]] = None,
               visibility: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> ImagesResult
    def images_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
               instance_type_id: Optional[pulumi.Input[str]] = None,
               is_support_cloud_init: 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,
               statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
               visibility: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[ImagesResult]
    func Images(ctx *Context, args *ImagesArgs, opts ...InvokeOption) (*ImagesResult, error)
    func ImagesOutput(ctx *Context, args *ImagesOutputArgs, opts ...InvokeOption) ImagesResultOutput
    public static class Images 
    {
        public static Task<ImagesResult> InvokeAsync(ImagesArgs args, InvokeOptions? opts = null)
        public static Output<ImagesResult> Invoke(ImagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<ImagesResult> images(ImagesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:ecs:Images
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Image IDs.
    InstanceTypeId string
    The specification of Instance.
    IsSupportCloudInit bool
    Whether the Image support cloud-init.
    NameRegex string
    A Name Regex of Image.
    OsType string
    The operating system type of Image.
    OutputFile string
    File name where to save data source results.
    Statuses List<string>
    A list of Image status, the value can be available or creating or error.
    Visibility string
    The visibility of Image.
    Ids []string
    A list of Image IDs.
    InstanceTypeId string
    The specification of Instance.
    IsSupportCloudInit bool
    Whether the Image support cloud-init.
    NameRegex string
    A Name Regex of Image.
    OsType string
    The operating system type of Image.
    OutputFile string
    File name where to save data source results.
    Statuses []string
    A list of Image status, the value can be available or creating or error.
    Visibility string
    The visibility of Image.
    ids List<String>
    A list of Image IDs.
    instanceTypeId String
    The specification of Instance.
    isSupportCloudInit Boolean
    Whether the Image support cloud-init.
    nameRegex String
    A Name Regex of Image.
    osType String
    The operating system type of Image.
    outputFile String
    File name where to save data source results.
    statuses List<String>
    A list of Image status, the value can be available or creating or error.
    visibility String
    The visibility of Image.
    ids string[]
    A list of Image IDs.
    instanceTypeId string
    The specification of Instance.
    isSupportCloudInit boolean
    Whether the Image support cloud-init.
    nameRegex string
    A Name Regex of Image.
    osType string
    The operating system type of Image.
    outputFile string
    File name where to save data source results.
    statuses string[]
    A list of Image status, the value can be available or creating or error.
    visibility string
    The visibility of Image.
    ids Sequence[str]
    A list of Image IDs.
    instance_type_id str
    The specification of Instance.
    is_support_cloud_init bool
    Whether the Image support cloud-init.
    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.
    statuses Sequence[str]
    A list of Image status, the value can be available or creating or error.
    visibility str
    The visibility of Image.
    ids List<String>
    A list of Image IDs.
    instanceTypeId String
    The specification of Instance.
    isSupportCloudInit Boolean
    Whether the Image support cloud-init.
    nameRegex String
    A Name Regex of Image.
    osType String
    The operating system type of Image.
    outputFile String
    File name where to save data source results.
    statuses List<String>
    A list of Image status, the value can be available or creating or error.
    visibility String
    The visibility of Image.

    Images Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Images List<ImagesImage>
    The collection of Image query.
    TotalCount int
    The total count of Image query.
    Ids List<string>
    InstanceTypeId string
    IsSupportCloudInit bool
    Whether the Image support cloud-init.
    NameRegex string
    OsType string
    The operating system type of Image.
    OutputFile string
    Statuses List<string>
    The status of Image.
    Visibility string
    The visibility of Image.
    Id string
    The provider-assigned unique ID for this managed resource.
    Images []ImagesImage
    The collection of Image query.
    TotalCount int
    The total count of Image query.
    Ids []string
    InstanceTypeId string
    IsSupportCloudInit bool
    Whether the Image support cloud-init.
    NameRegex string
    OsType string
    The operating system type of Image.
    OutputFile string
    Statuses []string
    The status of Image.
    Visibility string
    The visibility of Image.
    id String
    The provider-assigned unique ID for this managed resource.
    images List<ImagesImage>
    The collection of Image query.
    totalCount Integer
    The total count of Image query.
    ids List<String>
    instanceTypeId String
    isSupportCloudInit Boolean
    Whether the Image support cloud-init.
    nameRegex String
    osType String
    The operating system type of Image.
    outputFile String
    statuses List<String>
    The status of Image.
    visibility String
    The visibility of Image.
    id string
    The provider-assigned unique ID for this managed resource.
    images ImagesImage[]
    The collection of Image query.
    totalCount number
    The total count of Image query.
    ids string[]
    instanceTypeId string
    isSupportCloudInit boolean
    Whether the Image support cloud-init.
    nameRegex string
    osType string
    The operating system type of Image.
    outputFile string
    statuses string[]
    The status of Image.
    visibility string
    The visibility of Image.
    id str
    The provider-assigned unique ID for this managed resource.
    images Sequence[ImagesImage]
    The collection of Image query.
    total_count int
    The total count of Image query.
    ids Sequence[str]
    instance_type_id str
    is_support_cloud_init bool
    Whether the Image support cloud-init.
    name_regex str
    os_type str
    The operating system type of Image.
    output_file str
    statuses Sequence[str]
    The status of Image.
    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.
    totalCount Number
    The total count of Image query.
    ids List<String>
    instanceTypeId String
    isSupportCloudInit Boolean
    Whether the Image support cloud-init.
    nameRegex String
    osType String
    The operating system type of Image.
    outputFile String
    statuses List<String>
    The status of Image.
    visibility String
    The visibility of Image.

    Supporting Types

    ImagesImage

    Architecture string
    The architecture of Image.
    CreatedAt string
    The create time of Image.
    Description string
    The description of Image.
    ImageId string
    The ID of Image.
    ImageName string
    The name of Image.
    IsSupportCloudInit bool
    Whether the Image support cloud-init.
    OsName string
    The name of Image operating system.
    OsType string
    The operating system type of Image.
    Platform string
    The platform of Image.
    PlatformVersion string
    The platform version of Image.
    ShareStatus 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 or creating or error.
    UpdatedAt string
    The update time of Image.
    Visibility string
    The visibility of Image.
    Architecture string
    The architecture of Image.
    CreatedAt string
    The create time of Image.
    Description string
    The description of Image.
    ImageId string
    The ID of Image.
    ImageName string
    The name of Image.
    IsSupportCloudInit bool
    Whether the Image support cloud-init.
    OsName string
    The name of Image operating system.
    OsType string
    The operating system type of Image.
    Platform string
    The platform of Image.
    PlatformVersion string
    The platform version of Image.
    ShareStatus 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 or creating or error.
    UpdatedAt string
    The update time of Image.
    Visibility string
    The visibility of Image.
    architecture String
    The architecture of Image.
    createdAt String
    The create time of Image.
    description String
    The description of Image.
    imageId String
    The ID of Image.
    imageName String
    The name of Image.
    isSupportCloudInit Boolean
    Whether the Image support cloud-init.
    osName String
    The name of Image operating system.
    osType String
    The operating system type of Image.
    platform String
    The platform of Image.
    platformVersion String
    The platform version of Image.
    shareStatus 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 or creating or error.
    updatedAt String
    The update time of Image.
    visibility String
    The visibility of Image.
    architecture string
    The architecture of Image.
    createdAt string
    The create time of Image.
    description string
    The description of Image.
    imageId string
    The ID of Image.
    imageName string
    The name of Image.
    isSupportCloudInit boolean
    Whether the Image support cloud-init.
    osName string
    The name of Image operating system.
    osType string
    The operating system type of Image.
    platform string
    The platform of Image.
    platformVersion string
    The platform version of Image.
    shareStatus 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 or creating or error.
    updatedAt string
    The update time of Image.
    visibility string
    The visibility of Image.
    architecture str
    The architecture 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_cloud_init bool
    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.
    share_status 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 or creating or error.
    updated_at str
    The update time of Image.
    visibility str
    The visibility of Image.
    architecture String
    The architecture of Image.
    createdAt String
    The create time of Image.
    description String
    The description of Image.
    imageId String
    The ID of Image.
    imageName String
    The name of Image.
    isSupportCloudInit Boolean
    Whether the Image support cloud-init.
    osName String
    The name of Image operating system.
    osType String
    The operating system type of Image.
    platform String
    The platform of Image.
    platformVersion String
    The platform version of Image.
    shareStatus 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 or creating or error.
    updatedAt String
    The update time of Image.
    visibility String
    The visibility of Image.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine