Viewing docs for stackit v0.0.8
published on Friday, Oct 16, 2026 by stackitcloud
published on Friday, Oct 16, 2026 by stackitcloud
Viewing docs for stackit v0.0.8
published on Friday, Oct 16, 2026 by stackitcloud
published on Friday, Oct 16, 2026 by stackitcloud
Lists all IaaS images in a project and region. Results are sorted by image ID.
This datasource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.
Example Usage
variable "project_id" {
type = string
}
data "stackit_images" "all" {
project_id = var.project_id
}
data "stackit_images" "filtered" {
project_id = var.project_id
filter = {
label_selector = "linux="
}
timeouts = { read = "5m" }
}
output "image_ids" {
value = [for image in data.stackit_images.all.results : image.image_id]
}
# These expressions filter locally in Terraform; they are not API filters.
locals {
exact_name = [for image in data.stackit_images.all.results : image if image.name == "Ubuntu 22.04"]
matching_names = [for image in data.stackit_images.all.results : image if can(regex("Ubuntu.*", image.name))]
ubuntu_images = [for image in data.stackit_images.all.results : image if try(image.config.operating_system_distro, "") == "ubuntu"]
}
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?: InvokeOutputOptions): Output<GetImagesResult>def get_images(filter: Optional[GetImagesFilter] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[GetImagesTimeouts] = None,
opts: Optional[InvokeOptions] = None) -> GetImagesResult
def get_images_output(filter: pulumi.Input[Optional[GetImagesFilterArgs]] = None,
project_id: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
timeouts: pulumi.Input[Optional[GetImagesTimeoutsArgs]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetImagesResult]func LookupImages(ctx *Context, args *LookupImagesArgs, opts ...InvokeOption) (*LookupImagesResult, error)
func LookupImagesOutput(ctx *Context, args *LookupImagesOutputArgs, opts ...InvokeOption) LookupImagesResultOutput> Note: This function is named LookupImages 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 Output<GetImagesResult> Invoke(GetImagesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetImagesResult> getImages(GetImagesArgs args, InvokeOptions options)
public static Output<GetImagesResult> getImages(GetImagesArgs args, InvokeOptions options)
public static Output<GetImagesResult> getImages(GetImagesArgs args, InvokeOutputOptions options)
fn::invoke:
function: stackit:index/getImages:getImages
arguments:
# arguments dictionarydata "stackit_get_images" "name" {
# arguments
}The following arguments are supported:
- Project
Id string - STACKIT project ID.
- Filter
Get
Images Filter - API-side image filtering options.
- Region string
- Region override. Uses the provider region when omitted.
- Timeouts
Get
Images Timeouts
- Project
Id string - STACKIT project ID.
- Filter
Get
Images Filter - API-side image filtering options.
- Region string
- Region override. Uses the provider region when omitted.
- Timeouts
Get
Images Timeouts
- project
Id String - STACKIT project ID.
- filter
Get
Images Filter - API-side image filtering options.
- region String
- Region override. Uses the provider region when omitted.
- timeouts
Get
Images Timeouts
- project
Id string - STACKIT project ID.
- filter
Get
Images Filter - API-side image filtering options.
- region string
- Region override. Uses the provider region when omitted.
- timeouts
Get
Images Timeouts
- project_
id str - STACKIT project ID.
- filter
Get
Images Filter - API-side image filtering options.
- region str
- Region override. Uses the provider region when omitted.
- timeouts
Get
Images Timeouts
- project
Id String - STACKIT project ID.
- filter Property Map
- API-side image filtering options.
- region String
- Region override. Uses the provider region when omitted.
- timeouts Property Map
getImages Result
The following output properties are available:
- Id string
- Stable Terraform ID, structured as "
projectId,region". - Project
Id string - STACKIT project ID.
- Results
List<Get
Images Result> - All matching images, sorted by imageId ascending.
- Filter
Get
Images Filter - API-side image filtering options.
- Region string
- Region override. Uses the provider region when omitted.
- Timeouts
Get
Images Timeouts
- Id string
- Stable Terraform ID, structured as "
projectId,region". - Project
Id string - STACKIT project ID.
- Results
[]Get
Images Result - All matching images, sorted by imageId ascending.
- Filter
Get
Images Filter - API-side image filtering options.
- Region string
- Region override. Uses the provider region when omitted.
- Timeouts
Get
Images Timeouts
- id string
- Stable Terraform ID, structured as "
projectId,region". - project_
id string - STACKIT project ID.
- results list(object)
- All matching images, sorted by imageId ascending.
- filter object
- API-side image filtering options.
- region string
- Region override. Uses the provider region when omitted.
- timeouts object
- id String
- Stable Terraform ID, structured as "
projectId,region". - project
Id String - STACKIT project ID.
- results
List<Get
Images Result> - All matching images, sorted by imageId ascending.
- filter
Get
Images Filter - API-side image filtering options.
- region String
- Region override. Uses the provider region when omitted.
- timeouts
Get
Images Timeouts
- id string
- Stable Terraform ID, structured as "
projectId,region". - project
Id string - STACKIT project ID.
- results
Get
Images Result[] - All matching images, sorted by imageId ascending.
- filter
Get
Images Filter - API-side image filtering options.
- region string
- Region override. Uses the provider region when omitted.
- timeouts
Get
Images Timeouts
- id str
- Stable Terraform ID, structured as "
projectId,region". - project_
id str - STACKIT project ID.
- results
Sequence[Get
Images Result] - All matching images, sorted by imageId ascending.
- filter
Get
Images Filter - API-side image filtering options.
- region str
- Region override. Uses the provider region when omitted.
- timeouts
Get
Images Timeouts
- id String
- Stable Terraform ID, structured as "
projectId,region". - project
Id String - STACKIT project ID.
- results List<Property Map>
- All matching images, sorted by imageId ascending.
- filter Property Map
- API-side image filtering options.
- region String
- Region override. Uses the provider region when omitted.
- timeouts Property Map
Supporting Types
GetImagesFilter
- Label
Selector string - Experimental: API label selector passed directly to the image-list endpoint.
- Label
Selector string - Experimental: API label selector passed directly to the image-list endpoint.
- label_
selector string - Experimental: API label selector passed directly to the image-list endpoint.
- label
Selector String - Experimental: API label selector passed directly to the image-list endpoint.
- label
Selector string - Experimental: API label selector passed directly to the image-list endpoint.
- label_
selector str - Experimental: API label selector passed directly to the image-list endpoint.
- label
Selector String - Experimental: API label selector passed directly to the image-list endpoint.
GetImagesResult
- Checksum
Get
Images Result Checksum - Image checksum.
- Config
Get
Images Result Config - Image hardware and operating-system configuration.
- Disk
Format string - Image disk format.
- Image
Id string - Image ID.
- Labels Dictionary<string, string>
- Image labels.
- Min
Disk intSize - Minimum disk size in GB.
- Min
Ram int - Minimum RAM in MB.
- Name string
- Image name.
- Protected bool
- Whether the image is protected.
- Scope string
- Image scope.
- Status string
- Image status.
- Checksum
Get
Images Result Checksum - Image checksum.
- Config
Get
Images Result Config - Image hardware and operating-system configuration.
- Disk
Format string - Image disk format.
- Image
Id string - Image ID.
- Labels map[string]string
- Image labels.
- Min
Disk intSize - Minimum disk size in GB.
- Min
Ram int - Minimum RAM in MB.
- Name string
- Image name.
- Protected bool
- Whether the image is protected.
- Scope string
- Image scope.
- Status string
- Image status.
- checksum object
- Image checksum.
- config object
- Image hardware and operating-system configuration.
- disk_
format string - Image disk format.
- image_
id string - Image ID.
- labels map(string)
- Image labels.
- min_
disk_ numbersize - Minimum disk size in GB.
- min_
ram number - Minimum RAM in MB.
- name string
- Image name.
- protected bool
- Whether the image is protected.
- scope string
- Image scope.
- status string
- Image status.
- checksum
Get
Images Result Checksum - Image checksum.
- config
Get
Images Result Config - Image hardware and operating-system configuration.
- disk
Format String - Image disk format.
- image
Id String - Image ID.
- labels Map<String,String>
- Image labels.
- min
Disk IntegerSize - Minimum disk size in GB.
- min
Ram Integer - Minimum RAM in MB.
- name String
- Image name.
- protected_ Boolean
- Whether the image is protected.
- scope String
- Image scope.
- status String
- Image status.
- checksum
Get
Images Result Checksum - Image checksum.
- config
Get
Images Result Config - Image hardware and operating-system configuration.
- disk
Format string - Image disk format.
- image
Id string - Image ID.
- labels {[key: string]: string}
- Image labels.
- min
Disk numberSize - Minimum disk size in GB.
- min
Ram number - Minimum RAM in MB.
- name string
- Image name.
- protected boolean
- Whether the image is protected.
- scope string
- Image scope.
- status string
- Image status.
- checksum
Get
Images Result Checksum - Image checksum.
- config
Get
Images Result Config - Image hardware and operating-system configuration.
- disk_
format str - Image disk format.
- image_
id str - Image ID.
- labels Mapping[str, str]
- Image labels.
- min_
disk_ intsize - Minimum disk size in GB.
- min_
ram int - Minimum RAM in MB.
- name str
- Image name.
- protected bool
- Whether the image is protected.
- scope str
- Image scope.
- status str
- Image status.
- checksum Property Map
- Image checksum.
- config Property Map
- Image hardware and operating-system configuration.
- disk
Format String - Image disk format.
- image
Id String - Image ID.
- labels Map<String>
- Image labels.
- min
Disk NumberSize - Minimum disk size in GB.
- min
Ram Number - Minimum RAM in MB.
- name String
- Image name.
- protected Boolean
- Whether the image is protected.
- scope String
- Image scope.
- status String
- Image status.
GetImagesResultChecksum
GetImagesResultConfig
- bool
- Cdrom
Bus string - Disk
Bus string - Nic
Model string - Operating
System string - Operating
System stringDistro - Operating
System stringVersion - Rescue
Bus string - Rescue
Device string - Secure
Boot bool - Uefi bool
- Video
Model string - Virtio
Scsi bool
- bool
- Cdrom
Bus string - Disk
Bus string - Nic
Model string - Operating
System string - Operating
System stringDistro - Operating
System stringVersion - Rescue
Bus string - Rescue
Device string - Secure
Boot bool - Uefi bool
- Video
Model string - Virtio
Scsi bool
- bool
- cdrom_
bus string - disk_
bus string - nic_
model string - operating_
system string - operating_
system_ stringdistro - operating_
system_ stringversion - rescue_
bus string - rescue_
device string - secure_
boot bool - uefi bool
- video_
model string - virtio_
scsi bool
- Boolean
- cdrom
Bus String - disk
Bus String - nic
Model String - operating
System String - operating
System StringDistro - operating
System StringVersion - rescue
Bus String - rescue
Device String - secure
Boot Boolean - uefi Boolean
- video
Model String - virtio
Scsi Boolean
- boolean
- cdrom
Bus string - disk
Bus string - nic
Model string - operating
System string - operating
System stringDistro - operating
System stringVersion - rescue
Bus string - rescue
Device string - secure
Boot boolean - uefi boolean
- video
Model string - virtio
Scsi boolean
- bool
- cdrom_
bus str - disk_
bus str - nic_
model str - operating_
system str - operating_
system_ strdistro - operating_
system_ strversion - rescue_
bus str - rescue_
device str - secure_
boot bool - uefi bool
- video_
model str - virtio_
scsi bool
- Boolean
- cdrom
Bus String - disk
Bus String - nic
Model String - operating
System String - operating
System StringDistro - operating
System StringVersion - rescue
Bus String - rescue
Device String - secure
Boot Boolean - uefi Boolean
- video
Model String - virtio
Scsi Boolean
GetImagesTimeouts
- 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 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
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
Viewing docs for stackit v0.0.8
published on Friday, Oct 16, 2026 by stackitcloud
published on Friday, Oct 16, 2026 by stackitcloud