The sample application shown in this section uses the Hitachi API for Amazon S3 to:
1.Create a bucket named finance in the context of the tenant named europe (the service point)
2.List the buckets for the europe tenant that are owned by the user lgreen
3.Add an ACL to the finance bucket
4.Store an object named quarterly_rpts/Q4_2019.ppt in the finance bucket, associating custom metadata with the object in the process
5.Store an object named quarterly_rpts/Q3_2019.ppt in the finance bucket
6.Retrieve the object named quarterly_rpts/Q4_2019.ppt and write its content to a new file on the local file system
7.Add an ACL to the object named quarterly_rpts/Q4_2019.ppt
8.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
9.Delete the quarterly_rpts/Q4_2019.ppt and quarterly_rpts/Q3_2019.ppt objects from the finance bucket
10.Delete the quarterly_rpts folder from the finance bucket (HCP created this folder automatically when the first object was stored)
11.Delete the finance bucket
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.