Downloading an Object Storage Object
Download an object from an Object Storage bucket or folder to your computer.
- Open the navigation menu and click Storage. Under Object Storage & Archive Storage, click Buckets.
- Select the compartment from the list under List Scope. All buckets in that compartment are listed in tabular form.
- Click the bucket whose object you want to download. The bucket's Details page appears.
- Click Objects under Resources. The Objects list appears. All folders and objects are listed in tabular form.
- Click the next to the object you want to download, and 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.