Let me try this again, I hit send too early.
 
Hi Ryan
 
I don't think the REST API can do this, but  if someone knows of a way they can inject in this discussion.
 
How often are you creating node definitions?There is a sub project off of the xcat2 repo called xcat-inventory that we have been playing with, it's not currently shipped with xcat-core but you can clone and build it, or download the release...
 
If you are moving node definitions you can export to json/yaml and then import on another xCAT MN.
 
The starting idea behind this tool is a way to allow admins to source control xCAT node definitions and osimage definitions and simply import them into xCAT.. so you could have a few node groups defined in source control and then using a regular _expression_ run a mkdef  command... OR create the .yaml files via some scripts and directly import them into xCAT using `xcat-inventory import`
 
 
Victor
 
   
 
 
----- Original message -----
From: Ryan Bowen <ryan_bo...@shi.com>
To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Cc:
Subject: [xcat-user] REST API - Bulk import
Date: Tue, Jan 22, 2019 11:15 AM
 

Does the REST API currently have the capability to create multiple nodes at once with the nodes having different values for the fields using one HTTP request (similar to a stanza import)? Or is the only way to define one per request? I’m looking to move the node definition creation  utilities off the management node but we often define 300+ nodes at a time so I’m afraid of the time amount of time it would take compared to what we use now.

 

Ryan Bowen

Integration Systems Engineer | Integration Services – Data Center

SHI International Corp | Phone: (609)619-2571 | Email: ryan_bo...@shi.com

 

_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
 

_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to