Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

How to Set Node's Hostname with REST APIs?

$
0
0

I've been trying to set the VM's hostname when I deploy an application, but have been unsuccessful.  The application consists of just the OS - there are no services installed yet  Here's one example of what I used when I deployed the app.  It is based on the output of the "node-info" REST API:for the particular deployment profile.

 

{

  "node":[{

    "name":"VM1",

    "properties":[{

      "hostname":"joe"

    }],

    "nodeComponent":[]

  }]

}

 

But when using the above request I get the error message: "The node 'VM1' does not exist in the current 'deployment profile'." even though "VM1" is the only node in the deployment profile.  I've tried other variants and always get the same error message.

 

Does anyone have any suggestions for how I can set the node's hostname when deploying the application?  Thanks.


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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