oci cli Doc
https://docs.oracle.com/en-us/iaas/tools/oci-cli/3.47.0/oci_cli_docs/cmdref/os/object.html
Python SDK Doc
https://docs.oracle.com/en-us/iaas/tools/python/2.124.0/api/object_storage.html
List objects. 参数:start,limit,prefix
Apache druid features :
https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/s3compatibleapi.htm
AWS s3 client example:
aws s3 ls –endpoint-url https://cn9wtztyte8w.compat.objectstorage.ap-tokyo-1.oraclecloud.com/ bucket-s3test –recursive
aws s3 cp README.md s3://a/README.md –endpoint-url https://cn9wtztyte8w.compat.objectstorage.ap-tokyo-1.oraclecloud.com/bucket-s3test/
aws s3 cp s3://bucket-s3test/a s3://bucket-s3test/B/ –endpoint-url https://cn9wtztyte8w.compat.objectstorage.ap-tokyo-1.oraclecloud.com/ –recursive
Object bulk upload download delete
批量上传命令:
oci os object bulk-upload -bn hq-oss-1 –src-dir ./oss 上传oss文件夹下的所有文件到 hq-oss-1对象存储里面。
批量下载命令:
oci os object bulk-download -bn hq-oss-1 –download-dir ./download 下载对象存储 hq-oss-1下所有的文件到download文件夹下面。
批量删除命令
oci os object bulk-delete -ns mynamespace -bn mybucket
oci os object bulk-delete -bn mybucket –force