Skip to main content

Update disk

PATCH 

/disks/disk

Update a disk for a given organization.

Scopes

  • disks

OAuth2 Scopes

When using OAuth2 authentication, scopes are prefixed with api.katapult.io/core/v1/.

Request

Body

    disk

    object

    required

    id string

    properties

    object

    required

    name string
    bus_type DiskBusEnum (string)

    Possible values: [scsi, virtio]

    data_center

    object

    All 'data_center[]' params are mutually exclusive, only one can be provided.

    id string
    permalink string
    size_in_gb integer

    Only available when creating disk. Existing disks must use the resize endpoint.

    io_profile

    object

    All 'io_profile[]' params are mutually exclusive, only one can be provided.

    id string
    permalink string
    initial_file_system FileSystemEnum (string)

    Possible values: [ext4, xfs]

    storage_speed StorageSpeedEnum (string)

    Possible values: [nvme, ssd]

    virtual_machine_disk

    object

    boot boolean
    attach_on_boot boolean

    Attach the disk during virtual machine start up. Default is true.

    attach boolean

    Attach the disk once built. If the virtual machine is not running the disk will attach when started. Only available when creating disk, existing disks must use the attach endpoint.

    virtual_machine

    object

    All 'virtual_machine[]' params are mutually exclusive, only one can be provided.

    id string
    fqdn string

    annotations

    object[]

  • Array [

  • key stringrequired
    value string
  • ]

Responses

Update a disk for a given organization.

Schema

    disk

    object

    required

    id string
    name string
    size_in_gb integer
    wwn string
    state DiskStateEnum (string)

    Possible values: [not_built, failed, built, building, installing, restoring, formatting, resizing, configuring, importing]

    created_at integer
    storage_speed StorageSpeedEnum (string)

    Possible values: [nvme, ssd]

    io_profile

    object

    nullable

    id string
    name string
    permalink string
    speed_in_mb integernullable
    iops integernullable
    bus_type DiskBusEnum (string)nullable

    Possible values: [scsi, virtio]

    data_center

    object

    id string
    name string
    permalink string

    virtual_machine_disk

    object

    nullable

    virtual_machine

    object

    id string
    fqdn string
    attach_on_boot boolean
    boot boolean
    state VirtualMachineDiskAttachmentStateEnum (string)

    Possible values: [detached, failed, attached, attaching, detaching]

    installation

    object

    nullable

    id string

    disk_template_version

    object

    id string
    number integer
    stable boolean
    size_in_gb integer

    disk_template

    object

    id string
    name string
    description stringnullable
    permalink string
    universal boolean
    size_in_gb integernullable
    latest_version nullable

    operating_system

    object

    nullable

    id string
    name string

    badge

    object

    nullable

    url string
    file_name string
    file_type string
    file_size integer
    digest string
    token string

    attributes

    object[]

  • Array [

  • key string
    label string
    value stringnullable
    description stringnullable
    protect boolean
  • ]

  • annotations

    object[]

    required

    Annotations for this disk

  • Array [

  • key stringrequired
    value string
  • ]

Loading...