Retrieving connector managers – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 25

Advertising
background image

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

25

The following example inserts a new connector manager:

<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’

xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<gsa:content name=’entryID’>ConnectorManagerOne</gsa:content>
<gsa:content name=’description’>Connector Manager One Description</gsa:content>
<gsa:content name=’url’>http://example.com:port/</gsa:content>

</entry>

Retrieving Connector Managers

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

http://Search_Appliance:8000/feeds/connectorManager

The following example shows a sample result:

<?xml version=’1.0’ encoding=’UTF-8’?>
<feed xmlns=’http://www.w3.org/2005/Atom’

xmlns:openSearch=’http://a9.com/-/spec/opensearchrss/1.0/’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://gsa:8000/feeds/connectorManager</id>
<updated>2009-03-22T06:31:15.357Z</updated>
<link rel=’http://schemas.google.com/g/2005#feed’

type=’application/atom+xml’ href=’http://gsa:8000/feeds/connectorManager’/>

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

href=’http://gsa:8000/feeds/connectorManager’/>

<generator version=’0.5’ uri=’http://gsa:8000/gsa’>

Google Search Appliance

</generator>
<openSearch:startIndex>1</openSearch:startIndex>

<entry>

<id>http://gsa:8000/feeds/connectorManager/ConnectorManagerOne</id>
<updated>2009-03-22T06:31:15.357Z</updated>
<link rel=’self’ type=’application/atom+xml’

href=’http://gsa:8000/feeds/connectorManager’/>

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

href=’http://gsa:8000/feeds/connectorManager’/>

<gsa:content name=’entryID’>ConnectorManagerOne</gsa:content>
<gsa:content name=’status’>Disconnected</gsa:content>
<gsa:content name=’description’>

Connector Manager One Description</gsa:content>

<gsa:content name=’url’>http://example.com:port/</gsa:content>

</entry>

Advertising