pub type CreateImageBody = ImageCreateRequestInput;Aliased Type§
pub struct CreateImageBody {Show 13 fields
pub name: String,
pub source_url: String,
pub description: Option<String>,
pub os: Option<ImageCreateRequestInputOs>,
pub os_version: Option<String>,
pub architecture: Option<ImageCreateRequestInputArchitecture>,
pub version: Option<String>,
pub current: Option<bool>,
pub eol_date: Option<String>,
pub min_disk_gb: Option<i64>,
pub min_ram_mb: Option<i64>,
pub tags: Option<BTreeMap<String, String>>,
pub attributes: Option<BTreeMap<String, String>>,
}Fields§
§name: StringImmutable image name (e.g. debian-13) whose current-version pointer can move; the new image becomes its current version. Names are shared across a tag’s builds — one build is identified by owner, name, architecture and version. Resource names must not start with the literal crn: prefix or be UUIDs (canonical, compact, braced, or urn:uuid: forms, in either case).
source_url: StringPresigned https GET URL to the disk in an object store you control. Fetched once by the import worker (which rejects private/link-local targets). The worker detects qcow2, raw, vmdk, vhd, vhdx or vdi and converts it to raw storage. Unreadable or unsupported sources and images declaring backing files fail asynchronously with status error and an active conversion fault. Not retained after import.
description: Option<String>§os: Option<ImageCreateRequestInputOs>Operating system distribution. Use linux for another or generic Linux distribution; os_version specifies the release separately.
os_version: Option<String>§architecture: Option<ImageCreateRequestInputArchitecture>CPU architecture of the source image. Only amd64 (x86-64) is supported.
version: Option<String>Identifies this build within name, and must be unique there — re-publishing a version that a tag already carries is a 409. Omit it and the server stamps a UTC timestamp, so every build is addressable as name:version whether or not you labelled it.
current: Option<bool>Make this the current version for its (name, architecture) once active.
eol_date: Option<String>The day this release stops receiving free security updates. Omit it and the image inherits the date the name’s current version carries, so re-publishing a tag can’t quietly stop tracking its release.
min_disk_gb: Option<i64>§min_ram_mb: Option<i64>§attributes: Option<BTreeMap<String, String>>