Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 204490

Re: How to Set Node's Hostname with REST APIs?

$
0
0

Rags,

 

Thanks very much.  I really appreciate your help.

 

Unfortunately, I can't use the blueprint or deployment profile for setting the hostname because I need to write a script that will allow users to easily deploy blueprints without using the UI.

 

So I created a service that will change the hostname, but I've run into the ran into "node does not exist" problem once again.  Maybe I don't understand how to structure the message correctly..

 

What I did was use the output from the "deploy-props" API as input to "deploy", changing only the hostname.  Is that correct?  Anyway, here is the output from deploy-props

{

    "node": [

        {

            "name": "rhn3",

            "nodeComponent": [

                {

                    "name": "Set_Hostname",

                    "property": [

                        {

                            "key": "new_name",

                            "value": "pierre"

                        }

                    ]

                }

            ]

        }

    ]

}

 

 

and here's the error message:    "The node 'rhn3' does not exist in the current 'deployment profile'."

 

Thanks again for your help.

 

Howard


Viewing all articles
Browse latest Browse all 204490

Trending Articles



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