Google Search Appliance Policy ACL API Developers Guide Manuale Utente Pagina 22

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 24
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 21
Google Search Appliance: Policy ACL API Developer’s Guide Policy ACL API Developer’s Guide 22
Retrieving Group Members
To retrieve all members of a group, use the following
GET
request:
GET http://Search_Appliance:8000/a/feeds/group/2.0/domain/groupId/
member[?[start-index=]]
To retrieve a particular member of a group, use the following
GET
request:
GET http://Search_Appliance:8000/a/feeds/group/2.0/domain/groupId/member/
memberId
Removing Members From a Group
To remove a group member, use the following
DELETE
request:
DELETE http://Search_Appliance:8000/a/feeds/group/2.0/domain/groupId/member/
memberId
Sample MemberEntry Request
The following XML shows a sample request to add a member to a group. The XML uses the
memberId
property to specify the member and the
memberType
property to specify the type of member, which can
be
user
or
group
.
<?xml version="1.0" encoding="UTF-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:apps="http://schemas.google.com/apps/2006"
xmlns:gd="http://schemas.google.com/g/2005">
<apps:property name="memberId" value="susanjones@example.com"/>
<apps:property name="memberType" value="user"/>
</atom:entry>
If
memberType
is not specified and the member being added already exists as a group, then the member
will be added as a group member, as in the following request:
<?xml version="1.0" encoding="UTF-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:apps="http://schemas.google.com/apps/2006"
xmlns:gd=’http://schemas.google.com/g/2005">
<apps:property name="memberId" value="us-sales@example.com"/>
</atom:entry>
Here
us-sales@example.com
already exists as a group.
Sample MemberEntry Response
When you submit a request to add a member to a group, the Group API returns an XML response that
identifies the newly added member. Following a request to add a member to a group, this object does
not serve any purpose except to confirm that the request was successful.
Vedere la pagina 21
1 2 ... 17 18 19 20 21 22 23 24

Commenti su questo manuale

Nessun commento