Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Import Unmanaged VM via REST API

$
0
0

Hi,

 

Lately we had the need to import unmanaged vm's to vRA BG's.

We were able to do so with CloudClient but we want to automate this process.

 

vRA supporting REST API calls so we found a method for registering unmanaged VM's to vRA :

https://vRA-FQDN/iaas-proxy-provider/api/machines/register

 

This is the body of the POST:

{

  "owner": "string",

  "virtualMachineId": "string",

  "requestingUser": "string",

  "componentId": "string",

  "machineProperties": [

    {

      "virtualMachineId": "string",

      "isEncrypted": false,

      "name": "string",

      "id": "string",

      "value": "string",

      "isRuntime": false,

      "isHidden": false

    }

  ],

  "compositeBlueprintId": "string",

  "deploymentName": "string",

  "hostReservationId": "string",

  "templateId": "string",

  "hostStorageReservationId": "string"

}

 

We filled those properties as needed but the error we are getting back is:

"Data serialization error.

Could not read message [acceptableTypes: [application/*+json, application/json]]"

 

Can someone help with this error ?

 

Thanks.


Viewing all articles
Browse latest Browse all 175326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>