Skip to content

Latest commit

 

History

History
787 lines (430 loc) · 20.8 KB

DefaultApi.md

File metadata and controls

787 lines (430 loc) · 20.8 KB

\DefaultApi

All URIs are relative to http://localhost/api/v1

Method HTTP request Description
boot_vm PUT /vm.boot Boot the previously created VM instance.
create_vm PUT /vm.create Create the cloud-hypervisor Virtual Machine (VM) instance. The instance is not booted, only created.
delete_vm PUT /vm.delete Delete the cloud-hypervisor Virtual Machine (VM) instance.
pause_vm PUT /vm.pause Pause a previously booted VM instance.
power_button_vm PUT /vm.power-button Trigger a power button in the VM
reboot_vm PUT /vm.reboot Reboot the VM instance.
resume_vm PUT /vm.resume Resume a previously paused VM instance.
shutdown_vm PUT /vm.shutdown Shut the VM instance down.
shutdown_vmm PUT /vmm.shutdown Shuts the cloud-hypervisor VMM.
vm_add_device_put PUT /vm.add-device Add a new device to the VM
vm_add_disk_put PUT /vm.add-disk Add a new disk to the VM
vm_add_fs_put PUT /vm.add-fs Add a new virtio-fs device to the VM
vm_add_net_put PUT /vm.add-net Add a new network device to the VM
vm_add_pmem_put PUT /vm.add-pmem Add a new pmem device to the VM
vm_add_user_device_put PUT /vm.add-user-device Add a new userspace device to the VM
vm_add_vdpa_put PUT /vm.add-vdpa Add a new vDPA device to the VM
vm_add_vsock_put PUT /vm.add-vsock Add a new vsock device to the VM
vm_coredump_put PUT /vm.coredump Takes a VM coredump.
vm_counters_get GET /vm.counters Get counters from the VM
vm_info_get GET /vm.info Returns general information about the cloud-hypervisor Virtual Machine (VM) instance.
vm_receive_migration_put PUT /vm.receive-migration Receive a VM migration from URL
vm_remove_device_put PUT /vm.remove-device Remove a device from the VM
vm_resize_put PUT /vm.resize Resize the VM
vm_resize_zone_put PUT /vm.resize-zone Resize a memory zone
vm_restore_put PUT /vm.restore Restore a VM from a snapshot.
vm_send_migration_put PUT /vm.send-migration Send a VM migration to URL
vm_snapshot_put PUT /vm.snapshot Returns a VM snapshot.
vmm_ping_get GET /vmm.ping Ping the VMM to check for API server availability

boot_vm

boot_vm() Boot the previously created VM instance.

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_vm

create_vm(vm_config) Create the cloud-hypervisor Virtual Machine (VM) instance. The instance is not booted, only created.

Parameters

Name Type Description Required Notes
vm_config VmConfig The VM configuration [required]

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_vm

delete_vm() Delete the cloud-hypervisor Virtual Machine (VM) instance.

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pause_vm

pause_vm() Pause a previously booted VM instance.

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

power_button_vm

power_button_vm() Trigger a power button in the VM

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

reboot_vm

reboot_vm() Reboot the VM instance.

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

resume_vm

resume_vm() Resume a previously paused VM instance.

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

shutdown_vm

shutdown_vm() Shut the VM instance down.

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

shutdown_vmm

shutdown_vmm() Shuts the cloud-hypervisor VMM.

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_add_device_put

crate::models::PciDeviceInfo vm_add_device_put(device_config) Add a new device to the VM

Parameters

Name Type Description Required Notes
device_config DeviceConfig The path of the new device [required]

Return type

crate::models::PciDeviceInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_add_disk_put

crate::models::PciDeviceInfo vm_add_disk_put(disk_config) Add a new disk to the VM

Parameters

Name Type Description Required Notes
disk_config DiskConfig The details of the new disk [required]

Return type

crate::models::PciDeviceInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_add_fs_put

crate::models::PciDeviceInfo vm_add_fs_put(fs_config) Add a new virtio-fs device to the VM

Parameters

Name Type Description Required Notes
fs_config FsConfig The details of the new virtio-fs [required]

Return type

crate::models::PciDeviceInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_add_net_put

crate::models::PciDeviceInfo vm_add_net_put(net_config) Add a new network device to the VM

Parameters

Name Type Description Required Notes
net_config NetConfig The details of the new network device [required]

Return type

crate::models::PciDeviceInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_add_pmem_put

crate::models::PciDeviceInfo vm_add_pmem_put(pmem_config) Add a new pmem device to the VM

Parameters

Name Type Description Required Notes
pmem_config PmemConfig The details of the new pmem device [required]

Return type

crate::models::PciDeviceInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_add_user_device_put

crate::models::PciDeviceInfo vm_add_user_device_put(vm_add_user_device) Add a new userspace device to the VM

Parameters

Name Type Description Required Notes
vm_add_user_device VmAddUserDevice The path of the new device [required]

Return type

crate::models::PciDeviceInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_add_vdpa_put

crate::models::PciDeviceInfo vm_add_vdpa_put(vdpa_config) Add a new vDPA device to the VM

Parameters

Name Type Description Required Notes
vdpa_config VdpaConfig The details of the new vDPA device [required]

Return type

crate::models::PciDeviceInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_add_vsock_put

crate::models::PciDeviceInfo vm_add_vsock_put(vsock_config) Add a new vsock device to the VM

Parameters

Name Type Description Required Notes
vsock_config VsockConfig The details of the new vsock device [required]

Return type

crate::models::PciDeviceInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_coredump_put

vm_coredump_put(vm_coredump_data) Takes a VM coredump.

Parameters

Name Type Description Required Notes
vm_coredump_data VmCoredumpData The coredump configuration [required]

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_counters_get

::std::collections::HashMap<String, ::std::collections::HashMap<String, i64>> vm_counters_get() Get counters from the VM

Parameters

This endpoint does not need any parameter.

Return type

::std::collections::HashMap<String, ::std::collections::HashMap<String, i64>>

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_info_get

crate::models::VmInfo vm_info_get() Returns general information about the cloud-hypervisor Virtual Machine (VM) instance.

Parameters

This endpoint does not need any parameter.

Return type

crate::models::VmInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_receive_migration_put

vm_receive_migration_put(receive_migration_data) Receive a VM migration from URL

Parameters

Name Type Description Required Notes
receive_migration_data ReceiveMigrationData The URL for the reception of migration state [required]

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_remove_device_put

vm_remove_device_put(vm_remove_device) Remove a device from the VM

Parameters

Name Type Description Required Notes
vm_remove_device VmRemoveDevice The identifier of the device [required]

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_resize_put

vm_resize_put(vm_resize) Resize the VM

Parameters

Name Type Description Required Notes
vm_resize VmResize The target size for the VM [required]

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_resize_zone_put

vm_resize_zone_put(vm_resize_zone) Resize a memory zone

Parameters

Name Type Description Required Notes
vm_resize_zone VmResizeZone The target size for the memory zone [required]

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_restore_put

vm_restore_put(restore_config) Restore a VM from a snapshot.

Parameters

Name Type Description Required Notes
restore_config RestoreConfig The restore configuration [required]

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_send_migration_put

vm_send_migration_put(send_migration_data) Send a VM migration to URL

Parameters

Name Type Description Required Notes
send_migration_data SendMigrationData The URL for sending the migration state [required]

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vm_snapshot_put

vm_snapshot_put(vm_snapshot_config) Returns a VM snapshot.

Parameters

Name Type Description Required Notes
vm_snapshot_config VmSnapshotConfig The snapshot configuration [required]

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

vmm_ping_get

crate::models::VmmPingResponse vmm_ping_get() Ping the VMM to check for API server availability

Parameters

This endpoint does not need any parameter.

Return type

crate::models::VmmPingResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]