Skip to main content

CreateVolumeBody

Type Alias CreateVolumeBody 

Source
pub type CreateVolumeBody = VolumeCreateRequestInput;

Aliased Type§

pub struct CreateVolumeBody {
    pub performance: Option<VolumePerformanceRequestInput>,
    pub name: String,
    pub description: Option<String>,
    pub tags: Option<BTreeMap<String, String>>,
    pub volume_type: CreatableVolumeTypeNameInput,
    pub size_gb: i64,
    pub architecture: Option<String>,
    pub source_image: Option<String>,
    pub source_snapshot: Option<String>,
    pub bootable: Option<bool>,
}

Fields§

§performance: Option<VolumePerformanceRequestInput>§name: String

Resource names must not start with the literal crn: prefix or be UUIDs (canonical, compact, braced, or urn:uuid: forms, in either case).

§description: Option<String>§tags: Option<BTreeMap<String, String>>§volume_type: CreatableVolumeTypeNameInput§size_gb: i64§architecture: Option<String>

Architecture used for source_image name resolution. A full image CRN pins its own architecture.

§source_image: Option<String>

Image UUID, name, name:version, or full CRN image/<name>/architecture/<arch>/version/<version>. Names resolve in the caller account first, then tagged platform catalog images, using architecture (default amd64). Mutually exclusive with source_snapshot. Image tags are not accepted.

§source_snapshot: Option<String>

Clone from an available account-owned snapshot UUID or nested CRN volume/<volume-name>/snapshot/<snapshot-name>. Bare snapshot names are rejected because this request has no fixed source volume. Mutually exclusive with source_image; size_gb must be at least the snapshot’s frozen size.

§bootable: Option<bool>