Downloading an Object Storage Object from a Bucket
Download an object from an Object Storage bucket or folder to your computer.
The Download object dialog box appears while the object is downloading, and displays the download status. Use the oci os object get command and required parameters to download an object from a bucket:
oci os object get --bucket-name bucket_name --name object_name --file file_location [OPTIONS]where
file_locationis the destination path for the file being downloaded, such asC:\workspace\Downloads\MyFile.txtor/home/user/Documents/Downloads/MyFile.txt.For example:
oci os object get --bucket-name MyBucket --name MyFile.txt --file c:\workspace\Downloads\MyFile.txtNo information is returned when you run the command. The file is downloaded to the specified destination.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the GetObject operation to download an object from a bucket.
Object Storage prepends the Object Storage namespace string and bucket name to the object name when constructing a URL for use with the API:
/n/object_storage_namespace/b/bucket/o/object_nameThe object name is everything after the
/o/, which could include hierarchy levels and prefix strings.