It's http://host/computer/api/json or you can use one of the libraries like 
python-jenkins and there's a get_nodes() method that will also retrieve 
that info.


On Tuesday, August 4, 2015 at 6:12:46 PM UTC-7, Eric Wang wrote:
>
> I second this question! 
>
> On Friday, April 3, 2015 at 5:09:23 AM UTC-7, preeti k wrote:
>>
>> How can the hostname and ip information of all the slave nodes be 
>> retrieved using Jenkins Python Rest API?
>>
>> The only way I have got the host name is by hitting the URL 
>> http://<jenkins url>/computer/<slave node>/config.xml. 
>>
>> But how do I get the list of all hostnames in one go in Python?
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7f2bcc6e-1e9d-40ca-9d03-2e4c744199b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to