
Google Search Appliance: Administrative API Developer’s Guide: Protocol 19
Inserting a Crawler Access Rule
To insert a new crawl access rule, send an authenticated
POST
request to the following URL:
http://Search_Appliance:8000/feeds/crawlAccessNTLM
The following example inserts a new crawler access rule:
<?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’>
#URL pattern for the new crawler access rule
</gsa:content>
<gsa:content name=’domain’>domainone</gsa:content>
<gsa:content name=’isPublic’>1</gsa:content>
<gsa:content name=’username’>username</gsa:content>
<gsa:content name=’password’>password</gsa:content>
</entry>
Retrieving Crawler Access Rules
To retrieve a list of crawl access rules, send an authenticated
GET
request to the following URL:
http://Search_Appliance:8000/feeds/crawlAccessNTLM
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/crawlAccessNTLM</id>
<updated>2009-03-22T06:33:40.471Z</updated>
<link rel=’http://schemas.google.com/g/2005#feed’
type=’application/atom+xml’ href=’http://gsa:8000/feeds/crawlAccessNTLM’/>\
<link rel=’self’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/crawlAccessNTLM’/>
<generator version=’0.5’ uri=’http://gsa:8000/gsa’>
Google Search Appliance
</generator>
<openSearch:startIndex>1</openSearch:startIndex>
order
The entries in crawler access rules are sequential rules. The order indicates
the sequence. The order is an integer value starting from
1
.
password
Password for authentication.
urlPattern
URL pattern that matches files with secure content.
username
User name for authentication.
Property Description
Comentarios a estos manuales