Feat/implement advanced image search options (#967)
* feat: implement advanced search options for images Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud> * review changes Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud> --------- Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
This commit is contained in:
parent
01fb599ccc
commit
9ac92b7ddc
8 changed files with 1471 additions and 5 deletions
28
examples/data-sources/stackit_image_v2/data-source.tf
Normal file
28
examples/data-sources/stackit_image_v2/data-source.tf
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
data "stackit_image_v2" "default" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
image_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
|
||||
data "stackit_image_v2" "name_match" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "Ubuntu 22.04"
|
||||
}
|
||||
|
||||
data "stackit_image_v2" "name_regex_latest" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name_regex = "^Ubuntu .*"
|
||||
}
|
||||
|
||||
data "stackit_image_v2" "name_regex_oldest" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name_regex = "^Ubuntu .*"
|
||||
sort_ascending = true
|
||||
}
|
||||
|
||||
data "stackit_image_v2" "filter_distro_version" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
filter = {
|
||||
distro = "debian"
|
||||
version = "11"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue