Migrate virtual machines

post/virtualization/v1beta1/virtual-machines/migrate

Migrate virtual machines to another cluster or datastore

Securitybearer
Request
query Parameters
parameter-type
string^(vms|sourceDataStoreIDs)$

Type of the query parameter (vms or sourceDataStoreIDs)

vms
Array of strings

A list of VM IDs to migrate or a list of SourceDatastoreIDs. If you specify the list of SourceDatastoreIDs, all VMs within the specified datastores are migrated. If you specify a list of VM IDs, only those VMs are migrated.

Request Body schema: application/json
required
hypervisorManagerId
required
string

An identifier for the Hypervisor Manager.

targetDatastoreId
required
string

Target Datastore ID to which VMs will be migrated.

targetHypervisorClusterId
required
string

An identifier for the target Hypervisor cluster.

Responses
202

Accepted

400

Bad request

401

Unauthorized request

403

Forbidden

500

Internal / unexpected error

Request samples
application/json
{
  • "hypervisorManagerId": "string",
  • "targetDatastoreId": "string",
  • "targetHypervisorClusterId": "string"
}
Response samples
application/json
{ }