Retrieving a collection – Google Search Appliance Administrative API Developers Guide: Protocol User Manual
Page 33
Google Search Appliance: Administrative API Developer’s Guide: Protocol
33
The following example shows a sample result:
<?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/collection</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/collection’/>
<link rel=’self’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/collection’/>
<generator version=’0.5’ uri=’http://gsa:8000/gsa’>
Google Search Appliance</generator>
<openSearch:startIndex>1</openSearch:startIndex>
<entry>
<id>http://gsa:8000/feeds/collection/default_collection</id>
<updated>2008-12-11T08:01:21.253Z</updated>
<link rel=’self’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/collection’/>
<link rel=’edit’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/collection’/>
<gsa:content name=’entryID’>default_collection</gsa:content>
<gsa:content name=’followURLs’>/</gsa:content>
<gsa:content name=’doNotCrawlURLs’></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/collection’/>
<link rel=’edit’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/collection’/>
<gsa:content name=’entryID’>new_collection</gsa:content>
<gsa:content name=’followURLs’>#urls in new collection</gsa:content>
<gsa:content name=’doNotCrawlURLs’></gsa:content>
</entry>
</feed>
Retrieving a Collection
To retrieve an attribute in a single collection, send an authenticated GET request to the following URL:
http://Search_Appliance:8000/feeds/collection/Collection_Name