1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. simpleapplicationserver
  5. getImages
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.simpleapplicationserver.getImages

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides the Simple Application Server Images of the current Alibaba Cloud user.

    NOTE: Available in v1.135.0+.

    Example Usage

    Basic Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.simpleapplicationserver.SimpleapplicationserverFunctions;
    import com.pulumi.alicloud.simpleapplicationserver.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 instanceImageType = SimpleapplicationserverFunctions.getImages(GetImagesArgs.builder()
                .instanceImageType("system")
                .build());
    
            ctx.export("simpleApplicationServerImageId1", ids.images()[0].id());
        }
    }
    
    variables:
      instanceImageType:
        fn::invoke:
          Function: alicloud:simpleapplicationserver:getImages
          Arguments:
            instanceImageType: system
    outputs:
      simpleApplicationServerImageId1: ${ids.images[0].id}
    

    The following arguments are supported:

    • ids - (Optional, ForceNew, Computed) A list of Image IDs.
    • image_type - (Optional, ForceNew) The image type. Valid values: app, custom, system.
    • name_regex - (Optional, ForceNew) A regex string to filter results by Image name.
    • platform - (Available in v1.161.0) The platform of Image supported. Valid values: [“Linux”, “Windows”].
    • output_file - (Optional) File name where to save data source results (after running pulumi preview).

    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_type: Optional[str] = None,
                   name_regex: Optional[str] = None,
                   output_file: Optional[str] = None,
                   platform: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetImagesResult
    def get_images_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   image_type: Optional[pulumi.Input[str]] = None,
                   name_regex: Optional[pulumi.Input[str]] = None,
                   output_file: Optional[pulumi.Input[str]] = None,
                   platform: 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:simpleapplicationserver/getImages:getImages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    ImageType string
    NameRegex string
    OutputFile string
    Platform string
    Ids []string
    ImageType string
    NameRegex string
    OutputFile string
    Platform string
    ids List<String>
    imageType String
    nameRegex String
    outputFile String
    platform String
    ids string[]
    imageType string
    nameRegex string
    outputFile string
    platform string
    ids Sequence[str]
    image_type str
    name_regex str
    output_file str
    platform str
    ids List<String>
    imageType String
    nameRegex String
    outputFile String
    platform String

    getImages Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Images List<Pulumi.AliCloud.SimpleApplicationServer.Outputs.GetImagesImage>
    Names List<string>
    ImageType string
    NameRegex string
    OutputFile string
    Platform string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Images []GetImagesImage
    Names []string
    ImageType string
    NameRegex string
    OutputFile string
    Platform string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    images List<GetImagesImage>
    names List<String>
    imageType String
    nameRegex String
    outputFile String
    platform String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    images GetImagesImage[]
    names string[]
    imageType string
    nameRegex string
    outputFile string
    platform string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    images Sequence[GetImagesImage]
    names Sequence[str]
    image_type str
    name_regex str
    output_file str
    platform str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    images List<Property Map>
    names List<String>
    imageType String
    nameRegex String
    outputFile String
    platform String

    Supporting Types

    GetImagesImage

    Description string
    The description of the image.
    Id string
    The ID of the Instance Image.
    ImageId string
    The ID of the image.
    ImageName string
    The name of the resource.
    ImageType string
    The type of the image. Valid values: app, custom, system.
    Platform string
    The platform of Plan supported.
    Description string
    The description of the image.
    Id string
    The ID of the Instance Image.
    ImageId string
    The ID of the image.
    ImageName string
    The name of the resource.
    ImageType string
    The type of the image. Valid values: app, custom, system.
    Platform string
    The platform of Plan supported.
    description String
    The description of the image.
    id String
    The ID of the Instance Image.
    imageId String
    The ID of the image.
    imageName String
    The name of the resource.
    imageType String
    The type of the image. Valid values: app, custom, system.
    platform String
    The platform of Plan supported.
    description string
    The description of the image.
    id string
    The ID of the Instance Image.
    imageId string
    The ID of the image.
    imageName string
    The name of the resource.
    imageType string
    The type of the image. Valid values: app, custom, system.
    platform string
    The platform of Plan supported.
    description str
    The description of the image.
    id str
    The ID of the Instance Image.
    image_id str
    The ID of the image.
    image_name str
    The name of the resource.
    image_type str
    The type of the image. Valid values: app, custom, system.
    platform str
    The platform of Plan supported.
    description String
    The description of the image.
    id String
    The ID of the Instance Image.
    imageId String
    The ID of the image.
    imageName String
    The name of the resource.
    imageType String
    The type of the image. Valid values: app, custom, system.
    platform String
    The platform of Plan supported.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi