Spectra Logic
1-800-833-1132 : 1-303-449-6400


Access Control Operations : Access Control List Operations : Create Global Bucket ACL for a User

Create Global Bucket ACL for a User
Description
Create an ACL for all buckets, including those already created and those that will be created, granting the specified permission to the specified user.
Note:
Requests
Syntax
POST http[s]://{datapathDNSname}/_rest_/bucket_acl/?permission=LIST|READ|WRITE|DELETE|JOB|OWNER&user_id={string}
Request Parameters 
Values: LIST, READ, WRITE, DELETE, JOB, OWNER
Responses
Response Elements
<Data>
   <BucketId>{
string}</BucketId>
   <GroupId>{string}</GroupId>
   <Id>{string}</Id>
   <Permission>LIST|READ|WRITE|DELETE|JOB|OWNER</Permission>
   <UserId>{string}</UserId>
</Data>
where the response elements are defined as follows:
Values: LIST, READ, WRITE, DELETE, JOB, OWNER
Example
Sample Request
This request creates an ACL for the user with the UUID ceb405c4-aa4e-4b1d-9e93-312c40901671 to be able to list objects in all buckets.
POST http[s]://blackpearl-hostname/_rest_/bucket_acl?permission=list&user_id=ceb405c4-aa4e-4b1d-9e93-312c40901671 HTTP/1.1
Sample Response
HTTP/1.1 201 CREATED
<Data>
   <BucketId/>
   <GroupId/>
   <Id>72475859-6b28-46f8-b105-068cd87347b3</Id>
   <Permission>LIST</Permission>
   <UserId>ceb405c4-aa4e-4b1d-9e93-312c40901671</UserId>
</Data>