Oracle VM (OVM) (MOSC)

MOSC Banner

Create VM using REST API in OLVM

edited May 13, 2021 5:03AM in Oracle VM (OVM) (MOSC)

I have added a disk under a storage domain in OLVM and I am trying to attach that disk while creating a VM using "/ovirt-engine/api/vms" with below payload. But I am getting the input payload is syntactically incorrect message:

Can you please provide the sample json to attach a disk while creating VM:

{

   "name": "testVM",

   "cluster": {

      "id": "2f497450-5cc4-11eb-96bc-00163e031da2"

   },

   "host": {

      "id": "61fe16b7-38e5-4c10-8f70-2db01f049d4f"

   },

   "template": {

      "id": "56111010-f76a-40f3-8674-85f3fc9da03a"

   },

   "disk_attachment": [{

      "disk": {

         "id": "55162a35-b9db-468f-9220-cc9fd0775dd8"

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center