Retrieving all node configurations – Google Search Appliance Administrative API Developers Guide: Protocol User Manual
Page 68

Google Search Appliance: Administrative API Developer’s Guide: Protocol
68
Retrieving All Node Configurations
To retrieve information on all GSA Unification nodes, send an authenticated GET request to the
following URL:
http://Search_Appliance:8000/feeds/federation
The following example shows a sample result for a secondary node:
<?xml version=’1.0’ encoding=’UTF-8’?>
<feed xmlns=’http://www.w3.org/2005/Atom’
xmlns:openSearch=’http://a9.com/-/spec/opensearchrss/1.0/’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://gsa:8000/feeds/federation</id>
<updated>2008-12-11T08:01:21.253Z</updated>
<link rel=’http://schemas.example.com/g/2005#feed’
type=’application/atom+xml’ href=’http://gsa:8000/feeds/federation’/>
<link rel=’self’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/federation’/>
<generator version=’0.5’ uri=’http://gsa:8000/gsa’>
Google Search Appliance
</generator>
<openSearch:startIndex>1</openSearch:startIndex>
<entry>
<id>http://gsa:8000/feeds/federation/ApplianceId1</id>
<updated>2008-12-11T08:01:21.253Z</updated>
<link rel=’self’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/federation’/>
<link rel=’edit’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/federation’/>
<gsa:content name=’entryID’>Appliance_Id1</gsa:content>
<gsa:content name=’nodeType’>SECONDARY</gsa:content>
<gsa:content name=’federationNetworkIP’>10.0.0.2</gsa:content>
<gsa:content name=’secretToken’>token</gsa:content>
<gsa:content name=’hostname’>host1.domain.com</gsa:content>
<gsa:content name=’scoringBias’>20</gsa:content>
<gsa:content name=’remoteFrontend’>remoteFrontend</gsa:content>
<gsa:content name=’slaveTimeout’>100</gsa:content>
</entry>
<entry>
<id>http://gsa:8000/feeds/collection/new2_collection</id>
<updated>2008-12-11T08:01:21.253Z</updated>
<link rel=’self’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/federation’/>
<link rel=’edit’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/federation’/>
<gsa:content name=’entryID’>Appliance_Id</gsa:content>
<gsa:content name=’nodeType’>PRIMARY</gsa:content>
<gsa:content name=’federationNetworkIP’>10.0.0.3</gsa:content>
<gsa:content name=’secretToken’>token1</gsa:content>
<gsa:content name=’hostname’>host2.domain.com</gsa:content>
<gsa:content name=’scoringBias’>40</gsa:content>
<gsa:content name=’secondaryNodes’></gsa:content>
</entry>
</feed>