Retrieving a search report – Google Search Appliance Administrative API Developers Guide: Protocol User Manual
Page 58

Google Search Appliance: Administrative API Developer’s Guide: Protocol
58
An example request with content is:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<gsa:content name=’reportName’>bbb</gsa:content>
<gsa:content name=’collectionName’>default_collection</gsa:content>
<gsa:content name=’reportDate’>month_3_2009</gsa:content>
<gsa:content name=’withResults’>true</gsa:content>
<gsa:content name=’topCount’>100</gsa:content>
</entry>
A new search report entry is generated and returned:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://gsa:8000/feeds/searchReport</id>
<updated>2009-03-26T07:22:25.162Z</updated>
<app:edited xmlns:app=’http://purl.org/atom/app#’>
2009-03-26T07:22:25.162Z
</app:edited>
<link rel=’self’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/searchReport’/>
<link rel=’edit’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/searchReport’/>
<gsa:content name=’entryID’>bbb@default_collection</gsa:content>
<gsa:content name=’diagnosticTerms’></gsa:content>
<gsa:content name=’reportState’>1</gsa:content>
<gsa:content name=’reportCreationDate’>
March 26, 2009 12:22:25 AM PDT
</gsa:content>
<gsa:content name=’reportDate’>month_3_2009</gsa:content>
<gsa:content name=’withResults’>true</gsa:content>
<gsa:content name=’topCount’>100</gsa:content>
<gsa:content name=’isFinal’>false</gsa:content>
</entry>
Retrieving a Search Report
To check search report status and retrieve search log content, send an authenticated GET request to a
search report entry of the searchReport feed.
http://Search_Appliance:8000/feeds/searchReport/aaa@default_collection
Year
year
_year
Date range
range
_month_day_year_month_day_year
Purpose
Format