Skip to main content

Build virtual machine

POST 

/organizations/organization/virtual_machines/build

Builds a new virtual machine based on the arguments provided to this endpoint. Virtual machines will be built in the background. This task will return an task object that will allow you to monitor the build process using the appropriate API action. This action only offers a small subset of the full functionality needed when provisioning virtual machines - see the build_from_spec action for a full advanced virtual machine creation method.

Scopes

  • virtual_machines

OAuth2 Scopes

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

Request

Body

    organization

    object

    required

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

    id string
    sub_domain string

    zone

    object

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

    id string
    permalink string

    data_center

    object

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

    id string
    permalink string

    package

    object

    required

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

    id string
    permalink string

    disk_template

    object

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

    id string
    permalink string

    disk_template_options

    object[]

  • Array [

  • key stringrequired
    value string
  • ]

  • disks

    object[]

  • Array [

  • name string
    size_in_gb integerrequired
    initial_file_system FileSystemEnum (string)

    Possible values: [ext4, xfs]

    system boolean

    Default false. Exactly one disk must be marked as the system disk

    io_profile

    object

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

    id string
    permalink string
    storage_speed StorageSpeedEnum (string)

    Possible values: [nvme, ssd]

  • ]

  • network

    object

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

    id string
    permalink string
    hostname string

    annotations

    object[]

  • Array [

  • key stringrequired
    value string
  • ]

Responses

Builds a new virtual machine based on the arguments provided to this endpoint. Virtual machines will be built in the background. This task will return an task object that will allow you to monitor the build process using the appropriate API action. This action only offers a small subset of the full functionality needed when provisioning virtual machines - see the build_from_spec action for a full advanced virtual machine creation method.

Schema

    task

    object

    required

    id string
    name string
    status TaskStatusEnum (string)

    Possible values: [pending, running, completed, failed]

    build

    object

    required

    id string
    state VirtualMachineBuildStateEnum (string)

    Possible values: [draft, failed, pending, complete, building]

    virtual_machine_build

    object

    required

    id string
    state VirtualMachineBuildStateEnum (string)

    Possible values: [draft, failed, pending, complete, building]

    hostname stringrequired

    annotations

    object[]

    required

  • Array [

  • key stringrequired
    value string
  • ]

Loading...