Object Storage

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

https://idwjcipo3d1u.objectstorage.ap-seoul-1.oci.customer-oci.com/p/6ak9Gxqml9Tm8LIycjDNIpEdu5jVmFxy66XtuuGoI-LkXcJvpeNHBCD_17h5d8-1/n/idwjcipo3d1u/b/oss-01/o/?limit=10&prefix=image/20240304&start=image/20240304/17095174949765908.jpg

Apache druid features :

https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/s3compatibleapi.htm

https://support.imply.io/hc/en-us/articles/360013262174-Using-Oracle-Cloud-S3-compatible-Object-Storage-as-a-deep-storage-for-Druid

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

Print Friendly, PDF & Email

Leave a Reply

Your email address will not be published. Required fields are marked *