XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. StephenAOINS
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Groups 0

    StephenAOINS

    @StephenAOINS

    1
    Reputation
    2
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    StephenAOINS Unfollow Follow

    Best posts made by StephenAOINS

    • RE: Getting Error Creating VM Through REST

      Turned out I had a typo. applicaton/json vs application/json.

      Sigh....

      posted in REST API
      S
      StephenAOINS

    Latest posts made by StephenAOINS

    • RE: Rest API Mount CDRom to VM

      Later in the cycle. VM Creation might or might not have a cdrom depending on how we were installing an OS. But the later changes (adding/removing a cdrom to/from the VM) would be needed to do proper Windows Sysprep operations.

      posted in REST API
      S
      StephenAOINS
    • RE: Rest API Mount CDRom to VM

      Really an ISO from the library...

      posted in REST API
      S
      StephenAOINS
    • Rest API Mount CDRom to VM

      I thought I saw an entry on this somewhere, but cannot find it if so. Is there a rest call to mount a CDROM to a VM?

      posted in REST API
      S
      StephenAOINS
    • RE: Getting Error Creating VM Through REST

      Turned out I had a typo. applicaton/json vs application/json.

      Sigh....

      posted in REST API
      S
      StephenAOINS
    • Getting Error Creating VM Through REST

      I am attempting to create a VM through REST with curl.

      I keep getting the following error:

      [
        {
          "instancePath": "",
          "schemaPath": "#/required",
          "keyword": "required",
          "params": {
            "missingProperty": "name_label"
          },
          "message": "must have required property 'name_label'"
        },
        {
          "instancePath": "",
          "schemaPath": "#/required",
          "keyword": "required",
          "params": {
            "missingProperty": "template"
          },
          "message": "must have required property 'template'"
        }
      ]
      

      So far as I can tell, the data I am sending to the XOA is correct:

      {
        "name_label": "AAATestVM001",
        "template": "903c3e42-47f9-189e-3ea7-623e91c0ccd5-905ab443-e415-4d52-bfef-e14b147eac4e",
        "auto_poweron": true,
        "memory": 4294967296,
        "vdis": [
        {
          "size": 85899345920,
          "name_label": "AAATestVM001_1",
          "sr": "839dea70-7c11-a143-bd4f-f2f8426bb469"
        }
        ],
        "vifs": [
        {
         "network": "8af13cf7-c290-0622-19f0-d16d43587ec0"
        }
        ]
      }
      

      Can anyone tell if there appears to be any errors in the data I am sending?
      Thanks.

      posted in REST API
      S
      StephenAOINS