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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to