What the application does
The sample application shown in this section uses the Hitachi API for Amazon S3 to:
- Create a bucket named finance in the context of the tenant named europe (the service point)
- List the buckets for the europe tenant that are owned by the user lgreen
- Add an ACL to the finance bucket
- Store an object named quarterly_rpts/Q4_2019.ppt in the finance bucket, associating custom metadata with the object in the process
- Store an object named quarterly_rpts/Q3_2019.ppt in the finance bucket
- Retrieve the object named quarterly_rpts/Q4_2019.ppt and write its content to a new file on the local file system
- Add an ACL to the object named quarterly_rpts/Q4_2019.ppt
- Check whether the content of the object named quarterly_rpts/Q3_2019.ppt has changed and, if it has, retrieve the object and write its content to a new file on the local file system
- Delete the quarterly_rpts/Q4_2019.ppt and quarterly_rpts/Q3_2019.ppt objects from the finance bucket
- Delete the quarterly_rpts folder from the finance bucket (HCP created this folder automatically when the first object was stored)
- Delete the finance bucket