Destroying data source feeds, Trusted feed ip addresses – Google Search Appliance Administrative API Developers Guide: Java User Manual
Page 11
![background image](/manuals/552816/11/background.png)
Google Search Appliance: Administrative API Developer’s Guide: Java
11
Destroying Data Source Feeds
After deleting a data source feed, you can destroy the feed so that the feed no longer exists on the
search appliance:
myClient.deleteEntry("feed", FEED_NAME);
Trusted Feed IP Addresses
Retrieve and update trusted feed IP addresses using the feedTrustedIP entry of the config feed.
Retrieve the IP addresses of trusted feeds using the trustedIPs property.
Retrieving Trusted Feed IP Addresses
Retrieve the trusted feed IP addresses as follows:
// Send the request and print the response
GsaEntry myEntry = myClient.getEntry("config ", "feedTrustedIP");
System.out.println("Trusted IP Addresses: " +
myEntry.getGsaContent("trustedIPs"));
Updating Trusted Feed IP Addresses
Update trusted feed IP addresses as follows:
// Create an entry to hold properties to update
GsaEntry updateEntry = new GsaEntry();
// Add a property for the feeds trusted IP addresses
// to updateEntry
updateEntry.addGsaContent("trustedIPs", "127.0.0.1");
// Send the request
myClient.updateEntry("config", "feedTrustedIP", updateEntry);
Property
Description
trustedIPs
Trusted IP addresses. This value is a list of one or more IP addresses. Specify
all to indicate that the search appliance trust all IP addresses. If the value is a
list of IP addresses, separate each IP address with white space.