Onebox modules settings – Google Search Appliance Administrative API Developers Guide: .NET User Manual
Page 18

Google Search Appliance: Administrative API Developer’s Guide: .NET
18
Retrieving a List of Connector Managers
Retrieve a list of connector managers as follows:
// Send the request and print the response
GsaFeed myFeed = myService.GetFeed("connectorManager");
foreach(GsaEntry myEntry in myFeed.Entries) {
Console.WriteLine("Status: " + myEntry.GetGsaContent("status"));
Console.WriteLine("Description: " + myEntry.GetGsaContent("description"));
Console.WriteLine("URL: " + myEntry.GetGsaContent("url"));
}
Retrieve an individual connector manager as follows:
// Send the request and print the response
GsaEntry myEntry = myService.GetEntry("connectorManager", "ConnectorManagerOne");
Console.WriteLine("Status: " + myEntry.GetGsaContent("status"));
Console.WriteLine("Description: " + myEntry.GetGsaContent("description"));
Console.WriteLine("URL: " + myEntry.GetGsaContent("url"));
Updating a Connector Manager
Update the description and URL for a connector manager as follows:
// Create an entry to hold the properties to update
GsaEntry updateEntry = new GsaEntry();
// Add properties to updateEntry
updateEntry.AddGsaContent("description", "new description");
updateEntry.AddGsaContent("url", "#new URL");
// Send the request
myService.UpdateEntry("connectorManager", "ConnectorManagerOne", updateEntry);
Deleting a Connector Manager
Delete a connector manager as follows:
myService.DeleteEntry("connectorManager", "ConnectorManagerOne");
OneBox Modules Settings
Retrieve and update OneBox module settings for the search appliance using the config feed.
Retrieving OneBox Module Settings
Retrieve OneBox information for a search appliance as follows:
// Send the request and print the response
GsaEntry myEntry = myService.GetEntry("config", "oneboxSetting");
Console.WriteLine("Max Results: " + myEntry.GetGsaContent("maxResults"));
Console.WriteLine("Timeout: " + myEntry.GetGsaContent("timeout"));