1. Packages
  2. stackit
  3. API Docs
  4. getImage
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    Image datasource schema. Must have a region specified in the provider configuration.

    Example Usage

    data "stackit_image" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      image_id   = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Using getImage

    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 getImage(args: GetImageArgs, opts?: InvokeOptions): Promise<GetImageResult>
    function getImageOutput(args: GetImageOutputArgs, opts?: InvokeOptions): Output<GetImageResult>
    def get_image(image_id: Optional[str] = None,
                  project_id: Optional[str] = None,
                  region: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetImageResult
    def get_image_output(image_id: Optional[pulumi.Input[str]] = None,
                  project_id: Optional[pulumi.Input[str]] = None,
                  region: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetImageResult]
    func LookupImage(ctx *Context, args *LookupImageArgs, opts ...InvokeOption) (*LookupImageResult, error)
    func LookupImageOutput(ctx *Context, args *LookupImageOutputArgs, opts ...InvokeOption) LookupImageResultOutput

    > Note: This function is named LookupImage in the Go SDK.

    public static class GetImage 
    {
        public static Task<GetImageResult> InvokeAsync(GetImageArgs args, InvokeOptions? opts = null)
        public static Output<GetImageResult> Invoke(GetImageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetImageResult> getImage(GetImageArgs args, InvokeOptions options)
    public static Output<GetImageResult> getImage(GetImageArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getImage:getImage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ImageId string
    The image ID.
    ProjectId string
    STACKIT project ID to which the image is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ImageId string
    The image ID.
    ProjectId string
    STACKIT project ID to which the image is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    imageId String
    The image ID.
    projectId String
    STACKIT project ID to which the image is associated.
    region String
    The resource region. If not defined, the provider region is used.
    imageId string
    The image ID.
    projectId string
    STACKIT project ID to which the image is associated.
    region string
    The resource region. If not defined, the provider region is used.
    image_id str
    The image ID.
    project_id str
    STACKIT project ID to which the image is associated.
    region str
    The resource region. If not defined, the provider region is used.
    imageId String
    The image ID.
    projectId String
    STACKIT project ID to which the image is associated.
    region String
    The resource region. If not defined, the provider region is used.

    getImage Result

    The following output properties are available:

    Checksum GetImageChecksum
    Representation of an image checksum.
    Config GetImageConfig
    Properties to set hardware and scheduling settings for an image.
    DiskFormat string
    The disk format of the image.
    Id string
    ImageId string
    The image ID.
    Labels Dictionary<string, string>
    Labels are key-value string pairs which can be attached to a resource container
    MinDiskSize int
    The minimum disk size of the image in GB.
    MinRam int
    The minimum RAM of the image in MB.
    Name string
    The name of the image.
    ProjectId string
    STACKIT project ID to which the image is associated.
    Protected bool
    Whether the image is protected.
    Scope string
    The scope of the image.
    Region string
    The resource region. If not defined, the provider region is used.
    Checksum GetImageChecksum
    Representation of an image checksum.
    Config GetImageConfig
    Properties to set hardware and scheduling settings for an image.
    DiskFormat string
    The disk format of the image.
    Id string
    ImageId string
    The image ID.
    Labels map[string]string
    Labels are key-value string pairs which can be attached to a resource container
    MinDiskSize int
    The minimum disk size of the image in GB.
    MinRam int
    The minimum RAM of the image in MB.
    Name string
    The name of the image.
    ProjectId string
    STACKIT project ID to which the image is associated.
    Protected bool
    Whether the image is protected.
    Scope string
    The scope of the image.
    Region string
    The resource region. If not defined, the provider region is used.
    checksum GetImageChecksum
    Representation of an image checksum.
    config GetImageConfig
    Properties to set hardware and scheduling settings for an image.
    diskFormat String
    The disk format of the image.
    id String
    imageId String
    The image ID.
    labels Map<String,String>
    Labels are key-value string pairs which can be attached to a resource container
    minDiskSize Integer
    The minimum disk size of the image in GB.
    minRam Integer
    The minimum RAM of the image in MB.
    name String
    The name of the image.
    projectId String
    STACKIT project ID to which the image is associated.
    protected_ Boolean
    Whether the image is protected.
    scope String
    The scope of the image.
    region String
    The resource region. If not defined, the provider region is used.
    checksum GetImageChecksum
    Representation of an image checksum.
    config GetImageConfig
    Properties to set hardware and scheduling settings for an image.
    diskFormat string
    The disk format of the image.
    id string
    imageId string
    The image ID.
    labels {[key: string]: string}
    Labels are key-value string pairs which can be attached to a resource container
    minDiskSize number
    The minimum disk size of the image in GB.
    minRam number
    The minimum RAM of the image in MB.
    name string
    The name of the image.
    projectId string
    STACKIT project ID to which the image is associated.
    protected boolean
    Whether the image is protected.
    scope string
    The scope of the image.
    region string
    The resource region. If not defined, the provider region is used.
    checksum GetImageChecksum
    Representation of an image checksum.
    config GetImageConfig
    Properties to set hardware and scheduling settings for an image.
    disk_format str
    The disk format of the image.
    id str
    image_id str
    The image ID.
    labels Mapping[str, str]
    Labels are key-value string pairs which can be attached to a resource container
    min_disk_size int
    The minimum disk size of the image in GB.
    min_ram int
    The minimum RAM of the image in MB.
    name str
    The name of the image.
    project_id str
    STACKIT project ID to which the image is associated.
    protected bool
    Whether the image is protected.
    scope str
    The scope of the image.
    region str
    The resource region. If not defined, the provider region is used.
    checksum Property Map
    Representation of an image checksum.
    config Property Map
    Properties to set hardware and scheduling settings for an image.
    diskFormat String
    The disk format of the image.
    id String
    imageId String
    The image ID.
    labels Map<String>
    Labels are key-value string pairs which can be attached to a resource container
    minDiskSize Number
    The minimum disk size of the image in GB.
    minRam Number
    The minimum RAM of the image in MB.
    name String
    The name of the image.
    projectId String
    STACKIT project ID to which the image is associated.
    protected Boolean
    Whether the image is protected.
    scope String
    The scope of the image.
    region String
    The resource region. If not defined, the provider region is used.

    Supporting Types

    GetImageChecksum

    Algorithm string
    Algorithm for the checksum of the image data.
    Digest string
    Hexdigest of the checksum of the image data.
    Algorithm string
    Algorithm for the checksum of the image data.
    Digest string
    Hexdigest of the checksum of the image data.
    algorithm String
    Algorithm for the checksum of the image data.
    digest String
    Hexdigest of the checksum of the image data.
    algorithm string
    Algorithm for the checksum of the image data.
    digest string
    Hexdigest of the checksum of the image data.
    algorithm str
    Algorithm for the checksum of the image data.
    digest str
    Hexdigest of the checksum of the image data.
    algorithm String
    Algorithm for the checksum of the image data.
    digest String
    Hexdigest of the checksum of the image data.

    GetImageConfig

    BootMenu bool
    Enables the BIOS bootmenu.
    CdromBus string
    Sets CDROM bus controller type.
    DiskBus string
    Sets Disk bus controller type.
    NicModel string
    Sets virtual network interface model.
    OperatingSystem string
    Enables operating system specific optimizations.
    OperatingSystemDistro string
    Operating system distribution.
    OperatingSystemVersion string
    Version of the operating system.
    RescueBus string
    Sets the device bus when the image is used as a rescue image.
    RescueDevice string
    Sets the device when the image is used as a rescue image.
    SecureBoot bool
    Enables Secure Boot.
    Uefi bool
    Enables UEFI boot.
    VideoModel string
    Sets Graphic device model.
    VirtioScsi bool
    Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block.
    BootMenu bool
    Enables the BIOS bootmenu.
    CdromBus string
    Sets CDROM bus controller type.
    DiskBus string
    Sets Disk bus controller type.
    NicModel string
    Sets virtual network interface model.
    OperatingSystem string
    Enables operating system specific optimizations.
    OperatingSystemDistro string
    Operating system distribution.
    OperatingSystemVersion string
    Version of the operating system.
    RescueBus string
    Sets the device bus when the image is used as a rescue image.
    RescueDevice string
    Sets the device when the image is used as a rescue image.
    SecureBoot bool
    Enables Secure Boot.
    Uefi bool
    Enables UEFI boot.
    VideoModel string
    Sets Graphic device model.
    VirtioScsi bool
    Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block.
    bootMenu Boolean
    Enables the BIOS bootmenu.
    cdromBus String
    Sets CDROM bus controller type.
    diskBus String
    Sets Disk bus controller type.
    nicModel String
    Sets virtual network interface model.
    operatingSystem String
    Enables operating system specific optimizations.
    operatingSystemDistro String
    Operating system distribution.
    operatingSystemVersion String
    Version of the operating system.
    rescueBus String
    Sets the device bus when the image is used as a rescue image.
    rescueDevice String
    Sets the device when the image is used as a rescue image.
    secureBoot Boolean
    Enables Secure Boot.
    uefi Boolean
    Enables UEFI boot.
    videoModel String
    Sets Graphic device model.
    virtioScsi Boolean
    Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block.
    bootMenu boolean
    Enables the BIOS bootmenu.
    cdromBus string
    Sets CDROM bus controller type.
    diskBus string
    Sets Disk bus controller type.
    nicModel string
    Sets virtual network interface model.
    operatingSystem string
    Enables operating system specific optimizations.
    operatingSystemDistro string
    Operating system distribution.
    operatingSystemVersion string
    Version of the operating system.
    rescueBus string
    Sets the device bus when the image is used as a rescue image.
    rescueDevice string
    Sets the device when the image is used as a rescue image.
    secureBoot boolean
    Enables Secure Boot.
    uefi boolean
    Enables UEFI boot.
    videoModel string
    Sets Graphic device model.
    virtioScsi boolean
    Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block.
    boot_menu bool
    Enables the BIOS bootmenu.
    cdrom_bus str
    Sets CDROM bus controller type.
    disk_bus str
    Sets Disk bus controller type.
    nic_model str
    Sets virtual network interface model.
    operating_system str
    Enables operating system specific optimizations.
    operating_system_distro str
    Operating system distribution.
    operating_system_version str
    Version of the operating system.
    rescue_bus str
    Sets the device bus when the image is used as a rescue image.
    rescue_device str
    Sets the device when the image is used as a rescue image.
    secure_boot bool
    Enables Secure Boot.
    uefi bool
    Enables UEFI boot.
    video_model str
    Sets Graphic device model.
    virtio_scsi bool
    Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block.
    bootMenu Boolean
    Enables the BIOS bootmenu.
    cdromBus String
    Sets CDROM bus controller type.
    diskBus String
    Sets Disk bus controller type.
    nicModel String
    Sets virtual network interface model.
    operatingSystem String
    Enables operating system specific optimizations.
    operatingSystemDistro String
    Operating system distribution.
    operatingSystemVersion String
    Version of the operating system.
    rescueBus String
    Sets the device bus when the image is used as a rescue image.
    rescueDevice String
    Sets the device when the image is used as a rescue image.
    secureBoot Boolean
    Enables Secure Boot.
    uefi Boolean
    Enables UEFI boot.
    videoModel String
    Sets Graphic device model.
    virtioScsi Boolean
    Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.