HPE Morpheus VM Essentials
1843955 Members
2051 Online
110226 Solutions
New Discussion

Re: API payload for provisioning an instance using HPE Morpheus VM Essentials

 
VaishnaviPS
New Member

API payload for provisioning an instance using HPE Morpheus VM Essentials

I am encountering an error while passing the network information in the payload while provisioning an instance Using HPE Morpheus VM Essentials. 

 
 
"networkInterfaces": [
        {
          "networkId":  "3",    
          "networkInterfaceTypeId": 10
       
        }
      ] This is the correct format according to the documentation: https://apidocs.morpheusdata.com/reference/addinstance
 
This is the error I am encountering: 
{
    "errors": {
        "networkInterface": "You must choose a network"
    },
    "success": false
 
any leads?
1 REPLY 1
KoreyG
HPE Pro

Re: API payload for provisioning an instance using HPE Morpheus VM Essentials

Try this:

"networkInterfaces": [
    {
      "network": {
        "id": "3"
      },
      "networkInterfaceTypeId": 10
    }
  ]

 
I'm not seeing networkId in this list but I may be missing, other than it should be network.id.  Example from the API documentation page that I used to generate it:

api_config.pngapi_code.png

Hope that helps!