Getting Status Code 500 when trying to create a vm through api

proxlegend

New Member
Feb 9, 2023
3
0
1
"POST",
f"/api2/json/nodes/{node}/qemu",
data = {"node": node, "vmid": vmid, "memory": ram, "cores": cores, "scsi0": size, "storage": storage, "ide2": os_location, "ostype": ostype, "net0": net0}

("ORD2", 123, 2048, 2, "OneTBSSD:vm-123-disk-0,size=20G", "OneTBSSD", "local:iso/ubuntu-18.04.6-live-server-amd64.iso,media=cdrom", "l26", "virtio,bridge=vmbr0")

This shows what that im posting. The line above shows the params for the data. For example, node is equal to "ORD2"