Deleting a data source feed – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 15

Advertising
background image

Google Search Appliance: Administrative API Developer’s Guide: Protocol

15

Note: To get information about all feeds, specify a query to get the feedDataSource value. Alternatively,
you can get all the feeds if you do not supply a query. Whether or not you supply a query, you can get
information about at most five feeds for each feedDataSource value.

To get information about individual feeds from a search appliance, send an authenticated GET request
to the feed feed URL:

http://Search_Appliance:8000/feeds/feed/Feed_File_ID

The result is an entry that includes current values for an individual feed:

<?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/feed/Feed_ID</id>
<updated>2008-12-12T13:03:27.434Z</updated>
<link rel=’self’ type=’application/atom+xml’

href=’http://gsa:8000/feeds/feed/Feed_ID’>

<link rel=’edit’ type=’application/atom+xml’

href=’http://gsa:8000/feeds/feed/Feed_ID/’>

<gsa:content name=’entryID’>

sample_feed_20081212_005123_000000_FULL_FEED_0

</gsa:content>
<gsa:content name=’toLine’>1</gsa:content>
<gsa:content name=’errorRecords’>1</gsa:content>
<gsa:content name=’successRecords’>0</gsa:content>
<gsa:content name=’logContent’>

ProcessNode: Not match URL patterns, skipping record with URL:
http://www.sample_feed.com/sample_data.html

</gsa:content>
<gsa:content name=’feedType’>0</gsa:content>
<gsa:content name=’fromLine’>1</gsa:content>
<gsa:content name=’totalLines’>1</gsa:content>
<gsa:content name=’feedDataSource’>sample_feed</gsa:content>
<gsa:content name=’feedState’>4</gsa:content>
<gsa:content name=’feedTime’>1229071883000</gsa:content>

</entry>

Note: The feed log of each data source feed can only be retrieved as an individual feed.

Deleting a Data Source Feed

To delete a data source feed from a search appliance, you must delete one of its individual feed files by
sending an authenticated PUT request to the feed feed URL:

http://Search_Appliance:8000/feeds/feed/Feed_File_ID

The Feed_File_ID used in this command corresponds to an entryID, as shown in “Retrieving Data
Source Feed Information.”
To delete a data source, you must delete one of its feed files.

Use the following XML for the PUT request:

<?xml version='1.0' encoding='UTF-8'?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gsa="http://
schemas.google.com/gsa/2007">
<gsa:content name="updateMethod">delete</gsa:content>
</atom:entry>

Note: You can only delete full or incremental feed types. After deleting, the deleted feed name continues
to exist, but has a feed type of DELETED. To remove a feed from existence use the destroy option.

Advertising