Skip to main content

List virtual machine disks

GET 

/virtual_machines/virtual_machine/disks

Return a list of all disks for a given virtual machine

Scopes

  • disks
  • disks:read

OAuth2 Scopes

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

Request

Query Parameters

    virtual_machine[id] string

    The virtual machine to find disks for.

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

    virtual_machine[fqdn] string

    The virtual machine to find disks for.

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

    page integer

    Possible values: >= 1

    Default value: 1

    The page number to request. If not provided, the first page will be returned.

    per_page integer

    Possible values: >= 1

    Default value: 30

    The number of items to return per page. If not provided, the default value will be used.

Responses

Return a list of all disks for a given virtual machine

Schema

    pagination

    object

    required

    current_page integer

    The current page

    total_pages integernullable

    The total number of pages

    total integernullable

    The total number of items across all pages

    per_page integer

    The number of items per page

    large_set boolean

    Is this a large set and therefore the total number of records cannot be returned?

    disks

    object[]

    required

    The list of disks

  • Array [

  • disk

    object

    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
    attach_on_boot boolean
    boot boolean
    state VirtualMachineDiskAttachmentStateEnum (string)

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

  • ]

Loading...