beautypg.com

Policy acl api developer’s guide: .net, Getting started, Getting samples – Google Search Appliance Policy ACL API Developers Guide User Manual

Page 12

background image

Google Search Appliance: Policy ACL API Developer’s Guide

Policy ACL API Developer’s Guide

12

To remove a fully-specified member from a fully-specified group:

service.delete(new URL(
"http://Search_Appliance:8000/a/feeds/group/2.0/domain/testGroup/namespace
/Default/domain/My_domain/caseType/everthing-case-sensitive/member/" + "john"
+ "/memberNamespace/Default/memberDomain/Default/memberCaseType
/everthing-case-sensitive));

Policy ACL API Developer’s Guide: .NET

The sections that follow specify policy ACL rules using .NET.

Getting Started

The google-enterprise-gdata-api (

http://code.google.com/p/google-enterprise-gdata-api)

open source

site provides ZIP files that contain sample C#.NET example files, the .NET client library (DLLs), source
code, and a sample application for your reference.

The information in this section helps you understand how to write your own applications based on the
C#.NET client library and how to run the provided open source sample applications.

You can use the open source sample C# files (

http://code.google.com/p/google-enterprise-gdata-api/

source/browse/#svn/trunk/cs/sample

) as models for your own development.

Before starting, you need the following:

Microsoft Visual C# 2008 Express Edition (

http://www.microsoft.com/exPress/download/

#webInstall

), which includes a free version of Visual Studio so that you can work with the .NET client

library.

The API software in the gsa-admin-api-cs-1.0.0.zip ZIP file (

http://google-enterprise-gdata-

api.googlecode.com/files/gsa-admin-api-cs-1.0.0.zip

), which contains the client library and the

sample application files.

Admin Console user name and password for the search appliance to which you direct your
commands.

Getting Samples

After you download the software and acquire search appliance credentials, get started as follows:

1.

Unzip the API ZIP file and navigate to the cs folder. The client library DLL files are present in the lib
folder and the sample application is present in the sample folder.

2.

Start Microsoft Visual C# 2008 Express Edition and click File > Open Project, browse to the location
where you stored the gsa.sln solution file, and open the solution file, which appears in the
Solution Explorer.

3.

Click Build > Build Solution to build the project. Ensure that the build runs without errors. The
binaries and DLL files are put in the cs\sample\bin\Release folder. The output binary is the
GsaCommandLine.exe executable file in the Release folder.