Terraform-ProviderReferenzDatenquellen
odinex_image
Looks up an image (system, app, snapshot or backup) by ID, by name, or by type and label selector. With several matches, set most_recent = true to pick the newest one.
Diese Referenz wird aus dem Schema des Terraform-Providers erzeugt; die Beschreibungen der Argumente und Attribute sind auf Englisch.
Looks up an image (system, app, snapshot or backup) by ID, by name, or by type and label selector. With several matches, set most_recent = true to pick the newest one.
Beispiel
data "odinex_image" "ubuntu" {
name = "ubuntu-24.04"
}
# Newest snapshot with a label.
data "odinex_image" "golden" {
with_type = "snapshot"
with_selector = "image=golden"
most_recent = true
}Schema
Optional
id(Number) ID of the image.include_deprecated(Boolean) Also consider deprecated images.location(String) Only images available in this location.most_recent(Boolean) Pick the newest image when several match.name(String) Name of the image, e.g.ubuntu-24.04.with_architecture(String) Only images of this architecture, e.g.x86.with_selector(String) Label selector, e.g.env=prod,role.with_status(List of String) Only images with one of these statuses, e.g.["available"].with_type(String) Only images of this type:system,app,snapshotorbackup.
Nur lesbar
architecture(String) Architecture, e.g.x86.created(String) Creation date (RFC 3339).created_from(Number) Server the snapshot or backup was made from.deprecated(String) Deprecation date (RFC 3339), empty if not deprecated.description(String) Description.disk_size(Number) Minimum disk size in GB.image_size(Number) Size in GB (snapshots).labels(Map of String) Labels.locations(List of String) Locations where the image can be used.os_flavor(String) OS flavor, e.g.ubuntu.os_version(String) OS version.status(String) Status of the image.type(String)system,app,snapshotorbackup.