You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`project_id` (String) STACKIT project ID to which the image is associated.
29
53
54
+
### Optional
55
+
56
+
-`filter` (Attributes) Additional filtering options based on image properties. Can be used independently or in conjunction with `name` or `name_regex`. (see [below for nested schema](#nestedatt--filter))
57
+
-`image_id` (String) Image ID to fetch directly
58
+
-`name` (String) Exact image name to match. Optionally applies a `filter` block to further refine results in case multiple images share the same name. The first match is returned, optionally sorted by name in descending order. Cannot be used together with `name_regex`.
59
+
-`name_regex` (String) Regular expression to match against image names. Optionally applies a `filter` block to narrow down results when multiple image names match the regex. The first match is returned, optionally sorted by name in descending order. Cannot be used together with `name`.
60
+
-`sort_descending` (Boolean) If set to `true`, images are sorted in descending lexicographical order by image name before selecting the first match. Defaults to `false` (ascending).
61
+
30
62
### Read-Only
31
63
32
64
-`checksum` (Attributes) Representation of an image checksum. (see [below for nested schema](#nestedatt--checksum))
@@ -36,10 +68,21 @@ data "stackit_image" "example" {
36
68
-`labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
37
69
-`min_disk_size` (Number) The minimum disk size of the image in GB.
38
70
-`min_ram` (Number) The minimum RAM of the image in MB.
39
-
-`name` (String) The name of the image.
40
71
-`protected` (Boolean) Whether the image is protected.
41
72
-`scope` (String) The scope of the image.
42
73
74
+
<aid="nestedatt--filter"></a>
75
+
### Nested Schema for `filter`
76
+
77
+
Optional:
78
+
79
+
-`distro` (String) Filter images by operating system distribution. For example: `ubuntu`, `ubuntu-arm64`, `debian`, `rhel`, etc.
80
+
-`os` (String) Filter images by operating system type, such as `linux` or `windows`.
81
+
-`secure_boot` (Boolean) Filter images with Secure Boot support. Set to `true` to match images that support Secure Boot.
82
+
-`uefi` (Boolean) Filter images based on UEFI support. Set to `true` to match images that support UEFI.
83
+
-`version` (String) Filter images by OS distribution version, such as `22.04`, `11`, or `9.1`.
0 commit comments