Group and member api – Google Search Appliance Policy ACL API Developers Guide User Manual

Page 19

Advertising
background image

Google Search Appliance: Policy ACL API Developer’s Guide

Policy ACL API Developer’s Guide

19

Updating an ACL Rule

To update an attribute in an ACL rule for a URL pattern, send an authenticated PUT request to the
following URL:

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

The following example entry updates the ACL 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=’urlPattern’>http://example.com</gsa:content>
<gsa:content name=’acl’>user:john group:eng</gsa:content>

</entry>

Deleting an ACL Rule

To delete an ACL rule from a search appliance, send an authenticated DELETE request to the following
URL:

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

Group and Member API

The code in the sections that follow specifies which users and groups can access a URL pattern for the
ACL rule.

Creating a Group

To create a group, use the following POST request:

POST http://Search_Appliance:8000/a/feeds/group/2.0/domain

Retrieving Groups

To retrieve all groups in a particular domain, use the following GET request:

GET http://Search_Appliance:8000/a/feeds/group/2.0/domain[?[start-index=]]

Deleting Members of a Group

To delete members of a group, use the following DELETE request:

DELETE http://Search_Appliance:8000/a/feeds/group/2.0/domain/groupId

Take note that this request only deletes members of a group, it does not delete the empty group.

Advertising