Create VM
Creates a virtual machine. if you do not have all of the privileges described as follows: - The resource Folder referenced by the attribute VM.InventoryPlacementSpec.folder requires VirtualMachine.Inventory.Create. - The resource ResourcePool referenced by the attribute VM.ComputePlacementSpec.resource-pool requires Resource.AssignVMToPool. - The resource Datastore referenced by the attribute VM.StoragePlacementSpec.datastore requires Datastore.AllocateSpace. - The resource Network referenced by the attribute Ethernet.BackingSpec.network requires Network.Assign.
Request
URLURL
Header Parameters
Header Parameters
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Request Body
VMCreateRequestBody of type application/json (required){
"spec": {
"guest_OS": "enum",
"placement": {
"datastore": "string",
"folder": "string"
}
}
}
Response
Response BodyResponse Body
ID of newly-created virtual machine. The result will be an identifier for the resource type: VirtualMachine.
{
"value": "string"
}
ID of newly-created virtual machine. The result will be an identifier for the resource type: VirtualMachine.