You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/12/25 09:39:22 UTC

[GitHub] [ozone] ChenSammi commented on pull request #1701: HDDS-4585. Support bucket acl operation in S3g

ChenSammi commented on pull request #1701:
URL: https://github.com/apache/ozone/pull/1701#issuecomment-751221225


   AWS CLI console output with the patch, 
   
   Get ACL
   [root@]# aws s3api --profile root --endpoint-url http://host:9878  get-bucket-acl --bucket ozone
   {
       "Owner": {
           "DisplayName": "root", 
           "ID": "root"
       }, 
       "Grants": [
           {
               "Grantee": {
                   "Type": "CanonicalUser", 
                   "DisplayName": "apple", 
                   "ID": "apple"
               }, 
               "Permission": "FULL_CONTROL"
           }
       ]
   }
   
   Put ACL 
   Form1 
   [root@]#aws s3api --profile root  --endpoint-url http://host:9878 put-bucket-acl --bucket=ozone --grant-read id=one,id=two,id=three --grant-full-control id=tom,id=jerry
   
   Form2 
   [root@]#aws s3api --profile root  --endpoint-url http://host:9878 put-bucket-acl --bucket=ozone --access-control-policy '{"Grants": [ {"Grantee": {"DisplayName": "root", "ID": "root", "Type": "CanonicalUser"},"Permission": "FULL_CONTROL"} ], "Owner": {"DisplayName": "root","ID": "root"}}'
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org