beautypg.com

Creating a collection, Retrieving all collections – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 32

background image

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

32

Creating a Collection

To create a new collection, send an authenticated POST request to the following URL:

http://Search_Appliance:8000/feeds/collection

To create a new collection with a default setting, use the following entry:


xmlns:gsa=’http://schemas.google.com/gsa/2007’>
new_collection
default

To specify the settings for a new collection, send the following entry:


xmlns:gsa=’http://schemas.google.com/gsa/2007’>
new_collection
customize
#url in new collection
# url not in new collection

Retrieving All Collections

To retrieve a list of collections, send an authenticated GET request to the following URL:

http://Search_Appliance:8000/feeds/collection