beautypg.com

Retrieving acl rules – Google Search Appliance Policy ACL API Developers Guide User Manual

Page 18

background image

Google Search Appliance: Policy ACL API Developer’s Guide

Policy ACL API Developer’s Guide

18

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


xmlns:gsa=’http://schemas.google.com/gsa/2007’>
http://example.com
user:john group:eng

Retrieving ACL Rules

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

http://Search_Appliance:8000/feeds/
policyAcls[?[query=][matchMode=][startLine=][maxLines=]]

The following example shows a sample result:


xmlns:openSearch=’http://a9.com/-/spec/opensearchrss/1.0/’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
http://gsa.example.com:8000/feeds/policyAcls
2009-04-27T12:57:56.152Z

href=’http://gsa.example.com:8000/feeds/policyAcls’/>

href=’http://gsa.example.com:8000/feeds/policyAcls’/>

Google Search

Appliance

1

http://gsa.example.com:8000/feeds/policyAcls/example.com
example.com
example.com
group:eng user:john


...

To retrieve an ACL rule for a URL pattern, send an authenticated GET request to the following URL:

http://Search_Appliance:8000/feeds/policyAcls/Url_Pattern

The following example shows a sample result:


http://gsa.example.com:8000/feeds/policyAcls/http%3A%2F%2Fexample.com
http%3A%2F%2Fexample.com
http://example.com
group:eng user:john