<div dir="ltr">Satellite 6 is a REST API. <div><br></div><div><a href="https://satellite/api/v2/hosts?per_page=1000">https://satellite/api/v2/hosts?per_page=1000</a> will return you a json-formatted list of the first 1000 of your hosts. Obviously adjust the per_page to meet your needs - the default is 20.<br></div><div><br></div><div>You can probably do it with one curl call :-)</div><div><br></div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 3, 2015 at 2:53 PM, Rick Hornsby <span dir="ltr"><<a href="mailto:richardjhornsby@gmail.com" target="_blank">richardjhornsby@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Sep 3, 2015, at 12:36, Scott McCarty <<a href="mailto:scott.mccarty@gmail.com">scott.mccarty@gmail.com</a>> wrote:<br>
><br>
> You are not missing anything. I have seen this before with other automation I have done. Pretty much anything useful needs a power user. The API is old and just not that soohisticated from an RBAC perspective (Sat6 is much more sophisticated).<br>
><br>
> Long story short, I have historically kept scripts as root only, directly on the Satellite box..<br>
<br>
</span>Thanks, that helps. We'll be moving to Satellite 6 at some point here, but we're not there yet. Hopefully the access controls are better, but (that aside) the API stays this easy to use.<br>
<br>
Seriously - it's basically two lines in perl or ruby - call auth.login to get a session key, and call system.getId to get a list of hosts. It can't get much easier. Despite the scary sounding name XMLRPC, the rest of the API looks basically just as easy.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
colug-432 mailing list<br>
<a href="mailto:colug-432@colug.net">colug-432@colug.net</a><br>
<a href="http://lists.colug.net/mailman/listinfo/colug-432" rel="noreferrer" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a><br>
</div></div></blockquote></div><br></div>