Downloading an Object Storage Object
Download an object from an Object Storage bucket or folder to your computer.
- On the Buckets list page, select the Object Storage bucket that you want to work with. If you need help finding the list page or the Object Storage bucket, see Listing Buckets.
- On the details page, select Objects.
- From the Actions menu for the object you want, select Download.
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_location
is the destination path for the file being downloaded, such asC:\workspace\Downloads\MyFile.txt
or/home/user/Documents/Downloads/MyFile.txt
.For example:
oci os object get --bucket-name MyBucket --name MyFile.txt --file c:\workspace\Downloads\MyFile.txt
No 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_name
The object name is everything after the
/o/
, which could include hierarchy levels and prefix strings.