1. Packages
  2. Genesis Cloud
  3. API Docs
  4. Images
Genesis Cloud v0.0.35 published on Friday, May 16, 2025 by Genesiscloud

genesiscloud.Images

Start a Neo task
Explain and create a genesiscloud.Images resource
genesiscloud logo
Genesis Cloud v0.0.35 published on Friday, May 16, 2025 by Genesiscloud

    Images data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as genesiscloud from "@pulumi/genesiscloud";
    
    const cloud-images = genesiscloud.Images({
        filter: {
            type: "cloud-image",
        },
    });
    const snapshots = genesiscloud.Images({
        filter: {
            region: "NORD-NO-KRS-1",
            type: "snapshot",
        },
    });
    const preconfigured-images = genesiscloud.Images({
        filter: {
            type: "preconfigured",
        },
    });
    
    import pulumi
    import pulumi_genesiscloud as genesiscloud
    
    cloud_images = genesiscloud.images(filter={
        "type": "cloud-image",
    })
    snapshots = genesiscloud.images(filter={
        "region": "NORD-NO-KRS-1",
        "type": "snapshot",
    })
    preconfigured_images = genesiscloud.images(filter={
        "type": "preconfigured",
    })
    
    package main
    
    import (
    	"github.com/genesiscloud/pulumi-genesiscloud/sdk/go/genesiscloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := genesiscloud.Images(ctx, &genesiscloud.ImagesArgs{
    			Filter: genesiscloud.ImagesFilter{
    				Type: "cloud-image",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = genesiscloud.Images(ctx, &genesiscloud.ImagesArgs{
    			Filter: genesiscloud.ImagesFilter{
    				Region: pulumi.StringRef("NORD-NO-KRS-1"),
    				Type:   "snapshot",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = genesiscloud.Images(ctx, &genesiscloud.ImagesArgs{
    			Filter: genesiscloud.ImagesFilter{
    				Type: "preconfigured",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Genesiscloud = Pulumi.Genesiscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var cloud_images = Genesiscloud.Images.Invoke(new()
        {
            Filter = new Genesiscloud.Inputs.ImagesFilterInputArgs
            {
                Type = "cloud-image",
            },
        });
    
        var snapshots = Genesiscloud.Images.Invoke(new()
        {
            Filter = new Genesiscloud.Inputs.ImagesFilterInputArgs
            {
                Region = "NORD-NO-KRS-1",
                Type = "snapshot",
            },
        });
    
        var preconfigured_images = Genesiscloud.Images.Invoke(new()
        {
            Filter = new Genesiscloud.Inputs.ImagesFilterInputArgs
            {
                Type = "preconfigured",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.genesiscloud.GenesiscloudFunctions;
    import com.pulumi.genesiscloud.inputs.ImagesArgs;
    import com.pulumi.genesiscloud.inputs.ImagesFilterArgs;
    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 cloud-images = GenesiscloudFunctions.Images(ImagesArgs.builder()
                .filter(ImagesFilterArgs.builder()
                    .type("cloud-image")
                    .build())
                .build());
    
            final var snapshots = GenesiscloudFunctions.Images(ImagesArgs.builder()
                .filter(ImagesFilterArgs.builder()
                    .region("NORD-NO-KRS-1")
                    .type("snapshot")
                    .build())
                .build());
    
            final var preconfigured-images = GenesiscloudFunctions.Images(ImagesArgs.builder()
                .filter(ImagesFilterArgs.builder()
                    .type("preconfigured")
                    .build())
                .build());
    
        }
    }
    
    variables:
      cloud-images:
        fn::invoke:
          Function: genesiscloud:Images
          Arguments:
            filter:
              type: cloud-image
      snapshots:
        fn::invoke:
          Function: genesiscloud:Images
          Arguments:
            filter:
              region: NORD-NO-KRS-1
              type: snapshot
      preconfigured-images:
        fn::invoke:
          Function: genesiscloud:Images
          Arguments:
            filter:
              type: preconfigured
    

    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(filter: Optional[ImagesFilter] = None,
               timeouts: Optional[ImagesTimeouts] = None,
               opts: Optional[InvokeOptions] = None) -> ImagesResult
    def images_output(filter: Optional[pulumi.Input[ImagesFilterArgs]] = None,
               timeouts: Optional[pulumi.Input[ImagesTimeoutsArgs]] = 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)
    public static Output<ImagesResult> images(ImagesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: genesiscloud:Images
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Images Result

    The following output properties are available:

    Supporting Types

    ImagesFilter

    Type string
    Filter by the kind of image.

    • The value must be one of: ["cloud-image"].
    Region string
    Filter by the region identifier.

    • The value must be one of: ["EUC-DE-MUC-1" "EUW-GB-MNC-1" "EUW-NL-AMS-1" "NA-CA-FTS-1" "NA-CA-MNZ-1" "NA-CA-PRG-1" "NORD-NO-KRS-1"].
    Type string
    Filter by the kind of image.

    • The value must be one of: ["cloud-image"].
    Region string
    Filter by the region identifier.

    • The value must be one of: ["EUC-DE-MUC-1" "EUW-GB-MNC-1" "EUW-NL-AMS-1" "NA-CA-FTS-1" "NA-CA-MNZ-1" "NA-CA-PRG-1" "NORD-NO-KRS-1"].
    type String
    Filter by the kind of image.

    • The value must be one of: ["cloud-image"].
    region String
    Filter by the region identifier.

    • The value must be one of: ["EUC-DE-MUC-1" "EUW-GB-MNC-1" "EUW-NL-AMS-1" "NA-CA-FTS-1" "NA-CA-MNZ-1" "NA-CA-PRG-1" "NORD-NO-KRS-1"].
    type string
    Filter by the kind of image.

    • The value must be one of: ["cloud-image"].
    region string
    Filter by the region identifier.

    • The value must be one of: ["EUC-DE-MUC-1" "EUW-GB-MNC-1" "EUW-NL-AMS-1" "NA-CA-FTS-1" "NA-CA-MNZ-1" "NA-CA-PRG-1" "NORD-NO-KRS-1"].
    type str
    Filter by the kind of image.

    • The value must be one of: ["cloud-image"].
    region str
    Filter by the region identifier.

    • The value must be one of: ["EUC-DE-MUC-1" "EUW-GB-MNC-1" "EUW-NL-AMS-1" "NA-CA-FTS-1" "NA-CA-MNZ-1" "NA-CA-PRG-1" "NORD-NO-KRS-1"].
    type String
    Filter by the kind of image.

    • The value must be one of: ["cloud-image"].
    region String
    Filter by the region identifier.

    • The value must be one of: ["EUC-DE-MUC-1" "EUW-GB-MNC-1" "EUW-NL-AMS-1" "NA-CA-FTS-1" "NA-CA-MNZ-1" "NA-CA-PRG-1" "NORD-NO-KRS-1"].

    ImagesImage

    CreatedAt string
    The timestamp when this image was created in RFC 3339.
    Id string
    A unique number that can be used to identify and reference a specific image.
    Name string
    The display name that has been given to an image.
    Regions List<string>
    The list of regions in which this image can be used in.
    Slug string
    The image slug.
    Type string
    Describes the kind of image.
    Versions List<string>
    The list of versions if this is a cloud-image otherwise empty.
    CreatedAt string
    The timestamp when this image was created in RFC 3339.
    Id string
    A unique number that can be used to identify and reference a specific image.
    Name string
    The display name that has been given to an image.
    Regions []string
    The list of regions in which this image can be used in.
    Slug string
    The image slug.
    Type string
    Describes the kind of image.
    Versions []string
    The list of versions if this is a cloud-image otherwise empty.
    createdAt String
    The timestamp when this image was created in RFC 3339.
    id String
    A unique number that can be used to identify and reference a specific image.
    name String
    The display name that has been given to an image.
    regions List<String>
    The list of regions in which this image can be used in.
    slug String
    The image slug.
    type String
    Describes the kind of image.
    versions List<String>
    The list of versions if this is a cloud-image otherwise empty.
    createdAt string
    The timestamp when this image was created in RFC 3339.
    id string
    A unique number that can be used to identify and reference a specific image.
    name string
    The display name that has been given to an image.
    regions string[]
    The list of regions in which this image can be used in.
    slug string
    The image slug.
    type string
    Describes the kind of image.
    versions string[]
    The list of versions if this is a cloud-image otherwise empty.
    created_at str
    The timestamp when this image was created in RFC 3339.
    id str
    A unique number that can be used to identify and reference a specific image.
    name str
    The display name that has been given to an image.
    regions Sequence[str]
    The list of regions in which this image can be used in.
    slug str
    The image slug.
    type str
    Describes the kind of image.
    versions Sequence[str]
    The list of versions if this is a cloud-image otherwise empty.
    createdAt String
    The timestamp when this image was created in RFC 3339.
    id String
    A unique number that can be used to identify and reference a specific image.
    name String
    The display name that has been given to an image.
    regions List<String>
    The list of regions in which this image can be used in.
    slug String
    The image slug.
    type String
    Describes the kind of image.
    versions List<String>
    The list of versions if this is a cloud-image otherwise empty.

    ImagesTimeouts

    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Package Details

    Repository
    genesiscloud genesiscloud/pulumi-genesiscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the genesiscloud Terraform Provider.
    genesiscloud logo
    Genesis Cloud v0.0.35 published on Friday, May 16, 2025 by Genesiscloud
      Meet Neo: Your AI Platform Teammate