How to grant anonymous access to an ONTAP S3 bucket?
Applies to
- ONTAP 9
- ONTAP S3
Answer
Via CLI:
vserver object-store-server bucket policy statement create
or
vserver object-store-server bucket policy statement modify
vserver object-store-server bucket policy statement create
or
vserver object-store-server bucket policy statement modify
To add anonymous access, a principal must be configured as *
Via System Manager:
- Click Storage.
- Click Buckets.
- Select a bucket.
- Click Edit.
- Set principal users. Options include All users of the SVM (default), All public and anonymous users, and individual users associated with the SVM.
- Set effect. Options include Allow (default) and Deny.
- Set actions.
- Set resources. bucket-name and bucket-name/* are used by default. NAS directories/folder paths can also be used.
- Set conditions.
- Add conditions. Up to 10 conditional statements can be added. Each conditional statement is composed of a key, an operator, and one or more values