beautypg.com

Destroying data source feeds, Trusted feed ip addresses – Google Search Appliance Administrative API Developers Guide: .NET User Manual

Page 11

background image

Google Search Appliance: Administrative API Developer’s Guide: .NET

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:

myService.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 = myService.GetEntry("config ", "feedTrustedIP");
Console.WriteLine("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
myService.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.